node | memory | cpu |
v0.10.29 | 8.59 GB | Intel(R) Core(TM) i5-2500S CPU @ 2.70GHz |
parseInt | 9,184,589 ops/sec ±13.77% (31 runs sampled) |
parseInt(a,10) | 11,674,691 ops/sec ±14.14% (32 runs sampled) |
Math#floor | 7,764,731 ops/sec ±8.72% (37 runs sampled) |
+a | 9,562,769 ops/sec ±9.50% (46 runs sampled) |
~~a | 12,326,211 ops/sec ±5.75% (59 runs sampled) |
a | 0 | 18,688,268 ops/sec ±2.94% (85 runs sampled) |
a * 1 | 19,446,036 ops/sec ±1.38% (87 runs sampled) |
a / 1 | 19,590,574 ops/sec ±0.76% (85 runs sampled) |
a % Infinity | 12,761,617 ops/sec ±0.98% (88 runs sampled) |
a >> 0 | 19,984,794 ops/sec ±1.49% (89 runs sampled) |
eval(a) | 4,989,277 ops/sec ±1.23% (87 runs sampled) |
a ^ 0 | 22,343,161 ops/sec ±1.52% (86 runs sampled) |
Notes:
- Fastest is a ^ 0
node | memory | cpu |
v0.10.30 | 519 MB | QEMU Virtual CPU version 1.0 |
parseInt | 870,026 ops/sec ±3.34% (18 runs sampled) |
parseInt(a,10) | 933,740 ops/sec ±8.65% (16 runs sampled) |
Math#floor | 983,956 ops/sec ±8.62% (11 runs sampled) |
+a | 941,656 ops/sec ±4.09% (70 runs sampled) |
~~a | 1,510,401 ops/sec ±3.85% (70 runs sampled) |
a | 0 | 2,418,026 ops/sec ±5.34% (27 runs sampled) |
a * 1 | 2,433,107 ops/sec ±1.34% (33 runs sampled) |
a / 1 | 2,823,054 ops/sec ±9.40% (52 runs sampled) |
a % Infinity | 1,931,787 ops/sec ±1.21% (37 runs sampled) |
a >> 0 | 5,929,692 ops/sec ±6.81% (66 runs sampled) |
eval(a) | 1,664,703 ops/sec ±2.07% (57 runs sampled) |
a ^ 0 | 8,585,034 ops/sec ±2.24% (83 runs sampled) |
Notes:
- Fastest is a ^ 0
node | memory | cpu |
v0.10.29 | 8.30 GB | Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz |
parseInt | 6,866,085 ops/sec ±13.70% (26 runs sampled) |
parseInt(a,10) | 8,743,924 ops/sec ±13.95% (32 runs sampled) |
Math#floor | 6,618,107 ops/sec ±14.00% (30 runs sampled) |
+a | 6,462,128 ops/sec ±12.14% (36 runs sampled) |
~~a | 11,422,895 ops/sec ±7.74% (52 runs sampled) |
a | 0 | 16,014,535 ops/sec ±5.73% (65 runs sampled) |
a * 1 | 16,255,316 ops/sec ±4.92% (69 runs sampled) |
a / 1 | 22,254,029 ops/sec ±3.53% (79 runs sampled) |
a % Infinity | 12,138,840 ops/sec ±2.24% (83 runs sampled) |
a >> 0 | 19,542,820 ops/sec ±4.67% (80 runs sampled) |
eval(a) | 4,255,968 ops/sec ±5.78% (81 runs sampled) |
a ^ 0 | 22,728,892 ops/sec ±3.54% (92 runs sampled) |
Notes:
- Fastest is a ^ 0
node | memory | cpu |
v0.11.13 | 4.29 GB | Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz |
parseInt | 13,364,106 ops/sec ±9.89% (40 runs sampled) |
parseInt(a,10) | 15,778,920 ops/sec ±9.74% (41 runs sampled) |
Math#floor | 34,115,459 ops/sec ±7.78% (53 runs sampled) |
+a | 10,257,211 ops/sec ±5.46% (54 runs sampled) |
~~a | 15,367,718 ops/sec ±4.34% (77 runs sampled) |
a | 0 | 18,399,973 ops/sec ±2.73% (86 runs sampled) |
a * 1 | 18,300,395 ops/sec ±1.74% (90 runs sampled) |
a / 1 | 18,492,224 ops/sec ±1.45% (84 runs sampled) |
a % Infinity | 11,598,186 ops/sec ±1.61% (86 runs sampled) |
a >> 0 | 19,363,211 ops/sec ±2.81% (87 runs sampled) |
eval(a) | 4,523,361 ops/sec ±1.30% (97 runs sampled) |
a ^ 0 | 18,466,651 ops/sec ±1.05% (90 runs sampled) |
Notes:
- Fastest is Math#floor
node | memory | cpu |
v0.11.13 | 8.59 GB | Intel(R) Core(TM) i5-2500S CPU @ 2.70GHz |
parseInt | 8,838,559 ops/sec ±9.68% (25 runs sampled) |
parseInt(a,10) | 11,572,331 ops/sec ±14.90% (28 runs sampled) |
Math#floor | 28,261,144 ops/sec ±9.00% (36 runs sampled) |
+a | 7,341,922 ops/sec ±5.99% (38 runs sampled) |
~~a | 12,434,735 ops/sec ±5.91% (58 runs sampled) |
a | 0 | 19,657,720 ops/sec ±1.26% (89 runs sampled) |
a * 1 | 19,044,796 ops/sec ±1.33% (91 runs sampled) |
a / 1 | 19,195,258 ops/sec ±1.52% (87 runs sampled) |
a % Infinity | 12,327,515 ops/sec ±1.32% (89 runs sampled) |
a >> 0 | 21,777,601 ops/sec ±0.81% (95 runs sampled) |
eval(a) | 4,834,266 ops/sec ±1.56% (90 runs sampled) |
a ^ 0 | 22,231,844 ops/sec ±0.49% (99 runs sampled) |
Notes:
- Fastest is Math#floor
node | memory | cpu |
v0.10.31 | 8.59 GB | Intel(R) Core(TM) i5-2500S CPU @ 2.70GHz |
parseInt | 9,391,319 ops/sec ±18.33% (29 runs sampled) |
parseInt(a,10) | 12,178,917 ops/sec ±17.79% (34 runs sampled) |
Math#floor | 7,696,113 ops/sec ±14.88% (31 runs sampled) |
+a | 8,313,776 ops/sec ±16.10% (44 runs sampled) |
~~a | 14,648,558 ops/sec ±6.26% (74 runs sampled) |
a | 0 | 20,461,426 ops/sec ±3.58% (81 runs sampled) |
a * 1 | 20,523,858 ops/sec ±1.20% (89 runs sampled) |
a / 1 | 20,566,561 ops/sec ±0.82% (90 runs sampled) |
a % Infinity | 13,778,324 ops/sec ±0.80% (92 runs sampled) |
a >> 0 | 21,977,779 ops/sec ±1.34% (89 runs sampled) |
eval(a) | 5,175,205 ops/sec ±0.94% (92 runs sampled) |
a ^ 0 | 23,706,561 ops/sec ±1.21% (89 runs sampled) |
Notes:
- Fastest is a ^ 0