ffs constructors
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
function make(parm) {
return {
parm: function() {
return parm + 2
}
};
};
function Make(p) {
this.parm = function() {
return p + 2
};
}
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
crockford |
|
pending… |
this |
|
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 Peter Hamberg
- Revision 2: published by Peter Hamberg
- Revision 4: published by Peter Hamberg
- Revision 5: published by Peter Hamberg
- Revision 7: published by Scott Sauyet
- Revision 8: published
0 comments