Test case name | Result |
---|---|
split + map + instance | |
for .. in 1 | |
for .. in 2 | |
classical loop | |
classical loop 2 | |
for .. in loop 2 | |
split+forEach | |
for .. in loop 3 | |
for .. of loop 2 | |
from | |
from + split | |
TextEncoder |
Test name | Executions per second |
---|---|
split + map + instance | 724890.5 Ops/sec |
for .. in 1 | 131956.3 Ops/sec |
for .. in 2 | 127467.5 Ops/sec |
classical loop | 2565191.5 Ops/sec |
classical loop 2 | 9882512.0 Ops/sec |
for .. in loop 2 | 105923.1 Ops/sec |
split+forEach | 1427314.5 Ops/sec |
for .. in loop 3 | 105692.0 Ops/sec |
for .. of loop 2 | 842994.2 Ops/sec |
from | 672054.6 Ops/sec |
from + split | 438502.0 Ops/sec |
TextEncoder | 2529049.2 Ops/sec |