eval test (v2)

Revision 2 of this benchmark created by Praneet Loke on


Preparation HTML

//javascript libraries go here (ex: jquery, prototype etc)

Setup

//variable declarations go here...
    
    var a = [];
    var x ='2/3';

Test runner

Ready to run.

Testing in
TestOps/sec
eval
x = eval(x);
ready
NOT eval
a = x.split("/");
x = parseInt(a[0], 10) / parseInt(a[1], 10);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by JP Grace on
  • Revision 2: published by Praneet Loke on
  • Revision 3: published by G3z on