Asynchronous Google Analytics snippets
JavaScript performance comparison
Info
Test case which measures the speed difference between the default asynchronous Google Analytics snippet and the optimized version.
Note that I commented out the s.parentNode.insertBefore(g, s); line in both scripts, since otherwise the <script> element gets inserted a few thousand times every time you run the tests. Since this code is the same in both scripts, it shouldn’t have an influence on the results.
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
Default snippet |
|
pending… |
Optimized snippet |
|
pending… |
my |
|
pending… |
another test |
|
pending… |
min |
|
pending… |
min (w protocol check) |
|
pending… |
min (w push) |
|
pending… |
min (w push) 2 |
|
pending… |
min (w push) 3 |
|
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 Mathias Bynens and last updated
- Revision 2: published by Mathias Bynens
- Revision 3: published
- Revision 4: published
- Revision 7: published
- Revision 8: published
- Revision 9: published by Shidhin
- Revision 10: published
0 comments