chaining mehods
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
var e;
(function(d){d.prototype.prop1=function(a,c,b){if(void 0!==c)this[a]=c;else for(b in a)this[b]=a[b];return this}})(Element);
(function(a,b,c){a.prototype.prop2=function(){b=arguments;if(1 in b)this[b[0]]=b[1];else{b=b[0];for(c in b)this[c]=b[c]}return this}})(Element);
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Test | Ops/sec | |
---|---|---|
william malo method
|
|
pending… |
thingsinjars method
|
|
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.
- Revision 1: published william malo
- Revision 2: published william malo
0 Comments