Skip to content

Benchmark AWS Crypto JS checksum implementation vs ones provided by AWS CRT

License

Notifications You must be signed in to change notification settings

trivikr/benchmark-aws-crt-crc32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

benchmark-aws-crt-crc32

Benchmark AWS Crypto JS checksum implementation vs ones provided by AWS CRT vs Node.js built-in.

Pre-requisites

  • Install Node.js
  • Run corepack enable.
  • Run yarn to install dependencies.

Results

$ yarn bench

Benchmark for buffer of size 16 KB:
@aws-crypto/[email protected] x 5,699 ops/sec ±0.44% (92 runs sampled)
[email protected] x 389,210 ops/sec ±1.02% (89 runs sampled)
[email protected] x 567,192 ops/sec ±6.27% (81 runs sampled)
Fastest is [email protected]

Benchmark for buffer of size 64 KB:
@aws-crypto/[email protected] x 780 ops/sec ±5.67% (91 runs sampled)
[email protected] x 112,347 ops/sec ±1.81% (90 runs sampled)
[email protected] x 282,874 ops/sec ±3.52% (80 runs sampled)
Fastest is [email protected]

Benchmark for buffer of size 256 KB:
@aws-crypto/[email protected] x 267 ops/sec ±1.13% (86 runs sampled)
[email protected] x 30,813 ops/sec ±1.07% (91 runs sampled)
[email protected] x 91,469 ops/sec ±1.14% (94 runs sampled)
Fastest is [email protected]

Benchmark for buffer of size 1024 KB:
@aws-crypto/[email protected] x 63.13 ops/sec ±0.69% (67 runs sampled)
[email protected] x 7,908 ops/sec ±0.46% (97 runs sampled)
[email protected] x 23,446 ops/sec ±2.88% (96 runs sampled)
Fastest is [email protected]

About

Benchmark AWS Crypto JS checksum implementation vs ones provided by AWS CRT

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published