Re: Pi Benchmark Game

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu