Calculate Pi

Benchmark Pi Calculation

Comparing the fastest interpreters: OE, Phix, and LuaJIT.

Testing on a 32bit atom netbook.

Language Time in Seconds
OE Interpreter 10
OE Compiled 2.1
Phix Interpreter 6
Phix Compiled 4.7
LuaJIT Interpreter 17

Testing on a 64bit i5 netbook:

Language Time in Seconds
OE Interpreter 3.1
OE Compiled 0.25
Phix Interpreter 1.4
Phix Compiled 1.3
LuaJIT Interpreter 2.5

Sources

The Lua algorithm found at Rosetta Code is used as a test case. P Lomax converted it to Phix, and I converted Pete's version to OE.

Search



Quick Links

User menu

Not signed in.

Misc Menu