valhooks vs val
JavaScript performance comparison
Info
Compares the performance of the newest valHooks proposal versus the old val.
Preparation code
<script src="//code.jquery.com/jquery-1.5.2.js"></script>
<script>
var newVal = jQuery.noConflict();
</script>
<script src="//code.jquery.com/jquery-1.6.js"></script>
<input id="one" type="text" value="foo">
<input id="two" type="text" value="foo">
<script>
var $foo = $('#one'),
$newFoo = newVal('#two');
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
get |
|
pending… |
set |
|
pending… |
new get |
|
pending… |
new set |
|
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 timmywil
- Revision 2: published by timmywil and last updated
- Revision 3: published
- Revision 4: published
- Revision 5: published
- Revision 6: published by Justin
0 comments