|
|
|
|
|
by olliej
5942 days ago
|
|
One question i have regarding these is how fair are the tests, a very quick look at the tests shows for "pidigits" the lua code has the line: require"c-gmp"(g, aux) Implying that it is using the GNU Multiprecision Library for it's big integer support, whereas the JS code has: load('/home/dunham/shootout/bench/Include/javascript/biginteger.js'); Which is apparently a big integer library implemented in javascript http://www-cs-students.stanford.edu/~tjw/jsbn/ In other words, in at least one of the tests a comparison is being made between javascript and C/C++, not javascript and Lua. |
|
> For pidigits I'm comparing the pure JS and Lua programs, not the GMP bindings.
I'm comparing these two:
http://shootout.alioth.debian.org/u32/program.php?test=pidig...
http://shootout.alioth.debian.org/u32/program.php?test=pidig...
Both are written in pure Lua and JavaScript and do not use a C binding.