Re: Pi Benchmark Game
- Posted by irv Aug 23, 2018
- 1626 views
Pirx said...
OK. These numbers make sense.
Going back to the original code, but changing to 10000 digits:
EUI: 39.460000 EUC: 14.360000 LUAJIT: 51.620000
So, the choice of algorithm makes all the difference. It's always possible to choose one that runs slower (or faster) in one language than another.
For example, if you take out the needless creation of a new sequence for k2 every time thru the loop in your version:
EUI: 13.140000 EUC: 2.540000 LUAJIT: 0.900000
EUI: 13.090000 EUC: 2.160000 LUAJIT: 0.890000