aa
JavaScript performance comparison
Test case created
Preparation code
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Testing in unknown unknown
| Test |
Ops/sec |
1 |
$.Config = { myValue: 'My Value 1' } $.Test_1 = function() {} $.Test_1.myFunction = function() { alert('My Function 1'); } $.Test_1.access = function() { alert($.Config.myValue); } $.Test_1.access();
|
pending… |
2 |
$.Test_2 = { Config: { myValue: 'My Value 2' },
myFunction: function() { alert('My Function 2'); },
access: function() { alert(this.Config.myValue); } } $.Test_2.access();
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
Compare results of other browsers
0 comments