test same func call
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
var function_a = function() {
return {
say: function() {
return 'hello'
},
hello: function() {
return 'hello'
},
nice: function() {
return 'hello'
}
}
}
var object1 = (function() {
return {
test: function_a(),
getTest: function() {
return this.test;
}
}
})();
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
1 |
|
pending… |
2 |
|
pending… |
Compare results of other browsers
Revisions
You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:
- Revision 1: published by test
- Revision 2: published
0 comments