node | memory | cpu |
v0.10.29 | 8.59 GB | Intel(R) Core(TM) i5-2500S CPU @ 2.70GHz |
if else | 13,533,087 ops/sec ±11.50% (33 runs sampled) |
switch | 5,858,068 ops/sec ±11.01% (31 runs sampled) |
lookup table | 11,290,067 ops/sec ±10.24% (41 runs sampled) |
Notes:
- Fastest is if else
node | memory | cpu |
v0.10.30 | 519 MB | QEMU Virtual CPU version 1.0 |
if else | 1,096,334 ops/sec ±5.38% (59 runs sampled) |
switch | 468,797 ops/sec ±13.07% (60 runs sampled) |
lookup table | 1,234,662 ops/sec ±4.67% (25 runs sampled) |
Notes:
- Fastest is lookup table
node | memory | cpu |
v0.10.29 | 8.30 GB | Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz |
if else | 8,652,776 ops/sec ±15.31% (28 runs sampled) |
switch | 3,515,121 ops/sec ±13.77% (25 runs sampled) |
lookup table | 9,019,769 ops/sec ±15.23% (31 runs sampled) |
Notes:
- Fastest is lookup table,if else
node | memory | cpu |
v0.11.13 | 4.29 GB | Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz |
if else | 31,263,817 ops/sec ±11.10% (45 runs sampled) |
switch | 32,227,559 ops/sec ±9.25% (42 runs sampled) |
lookup table | 17,833,511 ops/sec ±7.22% (53 runs sampled) |
Notes:
- Fastest is switch,if else
node | memory | cpu |
v0.11.13 | 8.59 GB | Intel(R) Core(TM) i5-2500S CPU @ 2.70GHz |
if else | 18,819,577 ops/sec ±11.12% (25 runs sampled) |
switch | 19,971,338 ops/sec ±12.56% (26 runs sampled) |
lookup table | 10,489,793 ops/sec ±11.43% (34 runs sampled) |
Notes:
- Fastest is switch,if else
node | memory | cpu |
v0.10.31 | 8.59 GB | Intel(R) Core(TM) i5-2500S CPU @ 2.70GHz |
if else | 14,418,388 ops/sec ±20.75% (30 runs sampled) |
switch | 5,415,693 ops/sec ±19.19% (27 runs sampled) |
lookup table | 9,930,633 ops/sec ±15.73% (35 runs sampled) |
Notes:
- Fastest is if else