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.