Low Level Optimizations
JavaScript performance comparison
Info
This jsperf uses optimizations that a compiler can do with compiled languages like C/C++.
When working with animations (canvas, webgl), we need to calculate a lot of positions, triangles and things like this. This types of calculations occur many times per second, so would be great to see performance improvements in this area.
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
inline |
|
pending… |
procedural |
|
pending… |
procedural with global values |
|
pending… |
procedural with object |
|
pending… |
object oriented |
|
pending… |
object oriented with prototype |
|
pending… |
inline TypedArray |
|
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 Daniel Martins
- Revision 2: published
0 comments