Last active
August 29, 2015 14:14
-
-
Save indutny/1b6fd543046c73af4957 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Benchmarking: create-10 | |
bn.js#create-10 x 1,967,120 ops/sec ±1.65% (9 runs sampled) | |
bignum#create-10 x 642,220 ops/sec ±0.80% (8 runs sampled) | |
------------------------ | |
Fastest is bn.js#create-10 | |
======================== | |
Benchmarking: create-hex | |
bn.js#create-hex x 2,610,191 ops/sec ±0.85% (9 runs sampled) | |
bignum#create-hex x 614,238 ops/sec ±2.36% (9 runs sampled) | |
------------------------ | |
Fastest is bn.js#create-hex | |
======================== | |
Benchmarking: toString-10 | |
bn.js#toString-10 x 914,313 ops/sec ±0.73% (9 runs sampled) | |
bignum#toString-10 x 621,158 ops/sec ±0.92% (8 runs sampled) | |
------------------------ | |
Fastest is bn.js#toString-10 | |
======================== | |
Benchmarking: toString-hex | |
bn.js#toString-hex x 666,395 ops/sec ±2.98% (8 runs sampled) | |
bignum#toString-hex x 4,572,403 ops/sec ±2.92% (9 runs sampled) | |
------------------------ | |
Fastest is bignum#toString-hex | |
======================== | |
Benchmarking: add | |
bn.js#add x 11,894,655 ops/sec ±0.94% (8 runs sampled) | |
bignum#add x 928,802 ops/sec ±1.82% (9 runs sampled) | |
------------------------ | |
Fastest is bn.js#add | |
======================== | |
Benchmarking: sub | |
bn.js#sub x 9,939,177 ops/sec ±0.89% (8 runs sampled) | |
bignum#sub x 928,887 ops/sec ±2.11% (9 runs sampled) | |
------------------------ | |
Fastest is bn.js#sub | |
======================== | |
Benchmarking: mul | |
bn.js#mul x 3,078,227 ops/sec ±0.37% (9 runs sampled) | |
bignum#mul x 377,478 ops/sec ±12.73% (8 runs sampled) | |
------------------------ | |
Fastest is bn.js#mul | |
======================== | |
Benchmarking: sqr | |
bn.js#sqr x 3,048,020 ops/sec ±0.74% (9 runs sampled) | |
bignum#sqr x 436,886 ops/sec ±6.19% (8 runs sampled) | |
------------------------ | |
Fastest is bn.js#sqr | |
======================== | |
Benchmarking: div | |
bn.js#div x 525,620 ops/sec ±0.38% (9 runs sampled) | |
bignum#div x 297,086 ops/sec ±4.91% (8 runs sampled) | |
------------------------ | |
Fastest is bn.js#div | |
======================== | |
Benchmarking: mod | |
bn.js#mod x 537,513 ops/sec ±0.52% (8 runs sampled) | |
bignum#mod x 458,246 ops/sec ±1.33% (9 runs sampled) | |
------------------------ | |
Fastest is bn.js#mod | |
======================== | |
Benchmarking: mul-mod k256 | |
bn.js#mul-mod k256 x 1,488,285 ops/sec ±1.39% (8 runs sampled) | |
------------------------ | |
Fastest is bn.js#mul-mod k256 | |
======================== | |
Benchmarking: pow k256 | |
bn.js#pow k256 x 1,767 ops/sec ±1.07% (8 runs sampled) | |
bignum#pow k256 x 53,293 ops/sec ±1.58% (9 runs sampled) | |
------------------------ | |
Fastest is bignum#pow k256 | |
======================== | |
Benchmarking: invm k256 | |
bn.js#invm k256 x 8,109 ops/sec ±2.18% (9 runs sampled) | |
------------------------ | |
Fastest is bn.js#invm k256 | |
======================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
just pow and toString(16) left! niiiiice