Create Account
|
Sign In
Browse All Bookmarks
JavaScript Benchmark
0(*_*)0
Cycles:
Code:
// this code will be eval()'d immediately before // benchmarking. put any general setup/definitions here. // this code will be executed before the timer starts. // code() - called at each iteration of the benchmark. // put the code you want to benchmark iterations of in here. // this method and code it calls is what we're timing. var code = function() { // do nothing. } // define any other functions you need in like this. // these definitions also take place before the timer starts. var otherfunc = function() { // blah blah blah ... } // you may also put general definitions down here. // they'll be executed before the timer starts. // internal variables have been prefixed with benchmark_ // to avoid collisions with your code.