Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Latest commit

 

History

History

foreach-for

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Benchmark

for
Raw:
 > 13.618677042801556
 > 13.712047012732615
 > 13.579049466537342
 > 14.662756598240469
Average (mean) 13.893132530077995

forEach
Raw:
 > 0.831946755407654
 > 0.6418485237483954
 > 0.8183306055646481
 > 0.7818608287724785
Average (mean) 0.768496678373294

Winner: for
Compared with next highest (forEach), it's:
94.47% faster
18.08 times as fast
1.26 order(s) of magnitude faster
A LOT FASTER

Benchmark 2


forEach x 811 ops/sec ±1.13% (85 runs sampled)
for x 14,327 ops/sec ±1.66% (84 runs sampled)
Fastest is: for