pi.js

pi.js


Joining the ranks of other pi calculation benchmarks on Android Market, pi.js offers a different twist. Instead of a native or Java-based benchmark, pi.js's pi calculation algorithm is implemented entirely in javascript. Mozilla's Rhino javascript engine provides the interpreter to execute the javascript code.

pi.js performs a van Wijngaarden transformation to calculate pi to 15 digits and reports execution time, while averaging multiple executions.

pi.js benchmarks your device's computational performance, actual hardware as well as Android's own execution efficiency, as well as the Rhino javascript engine itself. Because changes in code may happen between versions, only execution times from the same version should be compared.

Recent changes:
1.1.1 - Removed overlooked debug output.
1.1 - Javascript code tweaked. Digit calculation increased from 13 to 15. Main calculation now implemented in 4 threads, allowing multicore devices to achieve faster speeds.
1.0 - Initial version. Codebase forked from LuaPi.
Add to list
Free
64
3.2
User ratings
10
Installs
1,000+
Concerns
0
File size
578 kb
Screenshots
Screenshot of pi.js Screenshot of pi.js Screenshot of pi.js

About pi.js
Joining the ranks of other pi calculation benchmarks on Android Market, pi.js offers a different twist. Instead of a native or Java-based benchmark, pi.js's pi calculation algorithm is implemented entirely in javascript. Mozilla's Rhino javascript engine provides the interpreter to execute the javascript code.

pi.js performs a van Wijngaarden transformation to calculate pi to 15 digits and reports execution time, while averaging multiple executions.

pi.js benchmarks your device's computational performance, actual hardware as well as Android's own execution efficiency, as well as the Rhino javascript engine itself. Because changes in code may happen between versions, only execution times from the same version should be compared.

Recent changes:
1.1.1 - Removed overlooked debug output.
1.1 - Javascript code tweaked. Digit calculation increased from 13 to 15. Main calculation now implemented in 4 threads, allowing multicore devices to achieve faster speeds.
1.0 - Initial version. Codebase forked from LuaPi.
User reviews of pi.js
Write the first review for this app!
Android Market Comments
A Google User
Sep 15, 2012
Karthik Happy
A Google User
Sep 15, 2012
Karthik Happy
karthikeya
Sep 15, 2012
Karthik Happy