ChainSafe / blst-ts

Typescript wrapper for https://github.com/supranational/blst native bindings, a highly performant BLS12-381 signature library
Other
18 stars 13 forks source link

feat: add MultiplyBy #118

Closed matthewkeil closed 7 months ago

matthewkeil commented 7 months ago

Perf Results

  multithreading perf - addVerificationRandomness true
    ✓ libuv multithreading - napi - addVerificationRandomness true       0.2730140 ops/s    3.662816  s/op        -         12 runs   47.7 s
    ✓ worker multithreading - swig - addVerificationRandomness true      0.2128583 ops/s    4.697962  s/op        -         12 runs   61.0 s
{ libuvPoolSize: 9, workerPoolSize: 9 }

  multithreading perf - addVerificationRandomness false
    ✓ libuv multithreading - napi - addVerificationRandomness false      0.2842713 ops/s    3.517767  s/op        -         12 runs   45.7 s
    ✓ worker multithreading - swig - addVerificationRandomness false     0.2274196 ops/s    4.397158  s/op        -         12 runs   57.2 s
{ libuvPoolSize: 9, workerPoolSize: 9 }
matthewkeil commented 7 months ago

Metrics on this looked good. Posted in chainsafe/lodestar#6462 Merging in and will get another review by @LesnyRumcajs in #119 now for code quality.