testJ
JavaScript performance comparison
Info
test
Preparation code
<script>
Benchmark.prototype.setup = function() {
function print(text) {
document.write(this.value + ' - ' + text + '<br>');
}
};
Benchmark.prototype.teardown = function() {
var a = {
value: 10,
print: print
};
var b = {
value: 20,
print: print
};
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
call |
|
pending… |
apply |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments