Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example output from a full benchmark of faster.js on Node v8.16.1 on a 15-inch 2018 Macbook Pro.
array-every small
✓ native x 8,939,865 ops/sec ±0.58% (60 runs sampled)
✓ faster.js x 21,832,523 ops/sec ±0.58% (60 runs sampled)
faster.js is 144.2% faster (0.066μs) than native
array-every medium
✓ native x 3,373,344 ops/sec ±0.59% (57 runs sampled)
✓ faster.js x 16,161,960 ops/sec ±0.83% (57 runs sampled)
faster.js is 379.1% faster (0.235μs) than native
array-every large
✓ native x 2,957,801 ops/sec ±0.40% (57 runs sampled)
✓ faster.js x 14,493,388 ops/sec ±0.54% (60 runs sampled)
faster.js is 390.0% faster (0.269μs) than native
array-filter small
✓ native x 2,800,660 ops/sec ±1.41% (57 runs sampled)
✓ faster.js x 16,547,345 ops/sec ±1.15% (55 runs sampled)
faster.js is 490.8% faster (0.297μs) than native
array-filter medium
✓ native x 1,320,058 ops/sec ±1.74% (55 runs sampled)
✓ faster.js x 7,377,989 ops/sec ±1.81% (52 runs sampled)
faster.js is 458.9% faster (0.622μs) than native
array-filter large
✓ native x 232,063 ops/sec ±0.36% (58 runs sampled)
✓ faster.js x 1,083,695 ops/sec ±0.58% (57 runs sampled)
faster.js is 367.0% faster (3.386μs) than native
array-forEach small
✓ native x 5,004,287 ops/sec ±3.50% (50 runs sampled)
✓ faster.js x 10,253,475 ops/sec ±1.12% (55 runs sampled)
faster.js is 104.9% faster (0.102μs) than native
array-forEach medium
✓ native x 1,456,856 ops/sec ±0.90% (50 runs sampled)
✓ faster.js x 2,144,003 ops/sec ±1.45% (57 runs sampled)
faster.js is 47.2% faster (0.220μs) than native
array-forEach large
✓ native x 178,038 ops/sec ±1.33% (55 runs sampled)
✓ faster.js x 234,957 ops/sec ±1.19% (53 runs sampled)
faster.js is 32.0% faster (1.361μs) than native
array-map small
✓ native x 5,434,499 ops/sec ±1.33% (56 runs sampled)
✓ faster.js x 16,870,464 ops/sec ±1.33% (54 runs sampled)
faster.js is 210.4% faster (0.125μs) than native
array-map medium
✓ native x 1,577,582 ops/sec ±0.59% (56 runs sampled)
✓ faster.js x 8,948,900 ops/sec ±1.02% (58 runs sampled)
faster.js is 467.3% faster (0.522μs) than native
array-map large
✓ native x 223,896 ops/sec ±1.10% (58 runs sampled)
✓ faster.js x 1,726,376 ops/sec ±1.13% (60 runs sampled)
faster.js is 671.1% faster (3.887μs) than native
array-reduce small
✓ native x 8,013,106 ops/sec ±1.45% (55 runs sampled)
✓ faster.js x 23,244,145 ops/sec ±0.63% (55 runs sampled)
faster.js is 190.1% faster (0.082μs) than native
array-reduce medium
✓ native x 1,818,838 ops/sec ±1.18% (56 runs sampled)
✓ faster.js x 9,363,046 ops/sec ±0.77% (59 runs sampled)
faster.js is 414.8% faster (0.443μs) than native
array-reduce large
✓ native x 268,919 ops/sec ±0.41% (57 runs sampled)
✓ faster.js x 1,621,540 ops/sec ±0.80% (57 runs sampled)
faster.js is 503.0% faster (3.102μs) than native
array-reduceRight small
✓ native x 3,610,595 ops/sec ±1.21% (53 runs sampled)
✓ faster.js x 21,318,349 ops/sec ±1.43% (57 runs sampled)
faster.js is 490.4% faster (0.230μs) than native
array-reduceRight medium
✓ native x 530,868 ops/sec ±1.15% (54 runs sampled)
✓ faster.js x 9,192,238 ops/sec ±1.34% (56 runs sampled)
faster.js is 1631.5% faster (1.775μs) than native
array-reduceRight large
✓ native x 68,671 ops/sec ±0.92% (53 runs sampled)
✓ faster.js x 1,571,918 ops/sec ±1.16% (57 runs sampled)
faster.js is 2189.1% faster (13.926μs) than native
array-some small
✓ native x 8,327,383 ops/sec ±1.36% (56 runs sampled)
✓ faster.js x 21,016,014 ops/sec ±2.15% (49 runs sampled)
faster.js is 152.4% faster (0.073μs) than native
array-some medium
✓ native x 3,182,851 ops/sec ±1.01% (53 runs sampled)
✓ faster.js x 15,553,663 ops/sec ±1.33% (53 runs sampled)
faster.js is 388.7% faster (0.250μs) than native
array-some large
✓ native x 2,871,868 ops/sec ±0.49% (56 runs sampled)
✓ faster.js x 13,873,296 ops/sec ±0.75% (57 runs sampled)
faster.js is 383.1% faster (0.276μs) than native
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.