raphael.js transform & animate performance testing
JavaScript performance comparison
Preparation code
<script src="http://github.com/DmitryBaranovskiy/raphael/raw/master/raphael-min.js"></script>
<div id="canvas" style="width:300px;height:300px;"></div>
<script>
var paper = Raphael("canvas", 300, 300);
var f = paper.getFont("Times", 800);
var text, print, rect, circ, path;
var toggle = true, newTransform = "0,0";
print = paper.print(0, 0, "hello world", f , 30);
text = paper.text( 0, 0, "hello world" );
rect = paper.rect( 0, 0, 100, 100 );
circ = paper.circle( 0, 0, 10 );
path = paper.path( "M10,20L30,40" );
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
print |
|
pending… |
text |
|
pending… |
rect |
|
pending… |
circle |
|
pending… |
path |
|
pending… |
print animate |
|
pending… |
text animate |
|
pending… |
rect animate |
|
pending… |
circle animate |
|
pending… |
path animate |
|
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 2: published
0 comments