Popup creation
JavaScript performance comparison
Info
How quickly are popups created
Preparation code
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://babulina.go-nix.ca:8080/nix/jqm/popup.js"></script>
<link rel="stylesheet" href="http://babulina.go-nix.ca:8080/nix/jqm/css/themes/default/jquery.mobile.css" />
<div data-role="popup" id="thePopup">
<p>This is a popup</p>
</div>
<script>
Benchmark.prototype.teardown = function() {
$( ":mobile-popup" ).popup( "destroy" );
$( ":mobile-popup2" ).popup2( "destroy" );
$( ":mobile-popup3" ).popup3( "destroy" );
$( ":mobile-popup4" ).popup4( "destroy" );
};
</script>
Preparation code output
This is a popup
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
1. Replaced option-setting loop with _setOptions() |
|
pending… |
2. using uiTemplate |
|
pending… |
3. JS ops in building widget |
|
pending… |
4. Original Popup |
|
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 Gabriel Schulhof
- Revision 2: published by Gabriel Schulhof
- Revision 3: published by Gabriel Schulhof
- Revision 4: published by Alexander Schmitz
- Revision 5: published by Alexander Schmitz
- Revision 6: published by Gabriel Schulhof
- Revision 7: published by Gabriel Schulhof
- Revision 8: published by Gabriel Schulhof
0 comments