AS3 Animation Benchmarking Utility, TweenBencher
Moses Gunesch the creator of FuseKit created a very nice open-source tool called TweenBencher. The utility can be used to chart animation performance through the Flash Player’s framerate over the time of the animation. This is a really nice tool and goes a long way to helping developers figure out which animation package to use and for what reasons.
My results showed that the top performers were (in order):
- Simple AS3 Tween
(could not find a link for this one) - TweenLite
- Tweener
Here is the output of my tests for every animation framework that is listed in the demo application.
note: I ran this test on my MacBook Pro, 2,4 GHz Intel Core 2 Duo with 2GB of SDRAM.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | Benchmark results: Simple AS3 Tween ------------------ 125 Sprites :: Start Lag: 0 seconds :: FPS: 54 250 Sprites :: Start Lag: 0 seconds :: FPS: 52 500 Sprites :: Start Lag: 0 seconds :: FPS: 52 1000 Sprites :: Start Lag: 0 seconds :: FPS: 51 2000 Sprites :: Start Lag: 0.01 seconds :: FPS: 47 4000 Sprites :: Start Lag: 0.01 seconds :: FPS: 42 8000 Sprites :: Start Lag: 0.02 seconds :: FPS: 33 16000 Sprites :: Start Lag: 0.03 seconds :: FPS: 15 Benchmark results: TweenLite ------------------ 125 Sprites :: Start Lag: 0.01 seconds :: FPS: 49 250 Sprites :: Start Lag: 0 seconds :: FPS: 47 500 Sprites :: Start Lag: 0.01 seconds :: FPS: 45 1000 Sprites :: Start Lag: 0.01 seconds :: FPS: 41 2000 Sprites :: Start Lag: 0.04 seconds :: FPS: 36 4000 Sprites :: Start Lag: 0.1 seconds :: FPS: 28 8000 Sprites :: Start Lag: 0.22 seconds :: FPS: 17 16000 Sprites :: Start Lag: 0.22 seconds :: FPS: 9 Benchmark results: Tweener ------------------ 125 Sprites :: Start Lag: 0.01 seconds :: FPS: 49 250 Sprites :: Start Lag: 0.02 seconds :: FPS: 47 500 Sprites :: Start Lag: 0.04 seconds :: FPS: 43 1000 Sprites :: Start Lag: 0.11 seconds :: FPS: 37 2000 Sprites :: Start Lag: 0.41 seconds :: FPS: 28 4000 Sprites :: Start Lag: 1.49 seconds :: FPS: 16 8000 Sprites :: Start Lag: 5.52 seconds :: FPS: 0 16000 Sprites :: Start Lag: Unknown :: FPS: 0 Benchmark results: fl.transitions.Tween ------------------ 125 Sprites :: Start Lag: 0.01 seconds :: FPS: 46 250 Sprites :: Start Lag: 0.01 seconds :: FPS: 43 500 Sprites :: Start Lag: 0.03 seconds :: FPS: 37 1000 Sprites :: Start Lag: 0.06 seconds :: FPS: 29 2000 Sprites :: Start Lag: 0.13 seconds :: FPS: 20 4000 Sprites :: Start Lag: 0.4 seconds :: FPS: 10 8000 Sprites :: Start Lag: 1.22 seconds :: FPS: 4 16000 Sprites :: Start Lag: 4.88 seconds :: FPS: 0 Benchmark results: AnimationPackage 3 Beta ------------------ 125 Sprites :: Start Lag: 0.02 seconds :: FPS: 50 250 Sprites :: Start Lag: 0.02 seconds :: FPS: 45 500 Sprites :: Start Lag: 0.04 seconds :: FPS: 47 1000 Sprites :: Start Lag: 0.09 seconds :: FPS: 43 2000 Sprites :: Start Lag: 0.16 seconds :: FPS: 32 4000 Sprites :: Start Lag: 0.33 seconds :: FPS: 17 Benchmark results: fl.motion.Animator ------------------ 125 Sprites :: Start Lag: 0.06 seconds :: FPS: 23 250 Sprites :: Start Lag: 0.03 seconds :: FPS: 14 500 Sprites :: Start Lag: 0.05 seconds :: FPS: 7 1000 Sprites :: Start Lag: 0.14 seconds :: FPS: 4 2000 Sprites :: Start Lag: 0.26 seconds :: FPS: 2 Benchmark results: (Boostworthy) AS3 Animation System ------------------ 125 Sprites :: Start Lag: 0.01 seconds :: FPS: 44 250 Sprites :: Start Lag: 0.02 seconds :: FPS: 13 |
Check it out TweenBencher.
4 Comments so far
Leave a reply
You might also want to check out the speed test at http://blog.greensock.com/tweening-speed-test
And I’d love to hear if you get a link to that Simple AS3 Tween engine. I can’t seem to find it either.
Unfortunately I haven’t been able to find that tween engine. If any knows how to find it please drop a link!…
Hey Larry,
I’m not sure if you’ve found this yet, but I THINK this is the link:
http://as3s.org/tween/
I’ve been playing with all of these, and I’m not sure if the link above is the Simple AS3 Tween or not but it by far is outperforming the others for my situation. I wish there were more options, but its still great. Thanks for the link Jeremy.