Skip to content

Commit 6c0c6ab

Browse files
committed
📝 doc about benchmark
Signed-off-by: moznion <moznion@mail.moznion.net>
1 parent d2412c7 commit 6c0c6ab

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ Manual making the translation layer between the object and DynamoDB's Record is
1515
- To do automatic generation of the [DynamoDB attribute data type](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html) code that is recognizable by [aws-sdk-js-v3](https://github.com/aws/aws-sdk-js-v3), with type safety.
1616
- Performance. This uses TypeScript Compiler API, so it generates/determine the DynamoDB attribute code at the compiling timing. This means the logic doesn't have to do a reflection on the fly so this contributes to a good performance.
1717

18+
### Benchmark
19+
20+
The benchmark result between this project and [kayomarz/dynamodb-data-types](https://github.com/kayomarz/dynamodb-data-types) is the following:
21+
22+
```
23+
node version: v16.17.0
24+
dynamodb-data-types marshalling x 3,475,450 ops/sec ±0.45% (96 runs sampled)
25+
ts-dynamodb-attributes-transformer marshalling x 13,405,409 ops/sec ±0.43% (91 runs sampled)
26+
Fastest is ts-dynamodb-attributes-transformer marshalling
27+
```
28+
29+
Please see also [benchmark](./examples/benchmark) project.
30+
1831
## Synopsis
1932

2033
```ts

0 commit comments

Comments
 (0)