New tutorial on ActionScript 3 performance testing

I just finished uploading a new tutorial showing how you can test the performance of your ActionScript 3 code. Grant Skinner recently released a great library called PerformanceTest which makes it easy to test out your code. In the tutorial I show how to use the library to test individual functions as well as a whole suite of functions. Always test out your code to be sure you’re using the fastest techniques.

Lee

Comments

  1. J
    October 22nd, 2009 | 1:39 am

    Excellent ! Thanks :)

  2. October 22nd, 2009 | 8:47 am

    Very good tutorial. I will do the performance test! Thank you

  3. October 22nd, 2009 | 9:14 am

    Hi Lee,
    Great tutorial again. I was just wondering if you are using a new snippet tool for Eclipse. I saw it allowed for you to put in the variable via a pop up box. Thats something I might be interested in.
    Thanks,
    Troy J

  4. October 22nd, 2009 | 12:04 pm

    Perfect. Thanks !!

  5. P
    October 22nd, 2009 | 12:07 pm

    Been needing something like this recently. Thank you!

  6. jared
    October 22nd, 2009 | 6:51 pm

    regarding optimization:

    Couldn’t many of the optimization tips going around be handled within the flash player when it’s compiled? i.e. if multiplication is faster than division in the fp, can’t all width/2 code be rewritten to width*.5?

    Hoping you can shed some light on this…

  7. Offset26
    October 23rd, 2009 | 4:31 am

    Do you know any Flash Component that can load Picture and Video with simple loading Image and Playe Video ? like as cooliris.com work

  8. October 23rd, 2009 | 6:58 am

    I used this class to test the performance of augmented reality and make a comparison between Away3D and Pv3d and away3d is a lot, a lot of better than pv3d, is amazing the difference between this two 3d class, and the performance class is a good a class to test the performance of your sites… i like it!

  9. October 23rd, 2009 | 11:16 am

    Jared,
    Yes, this is possible and something like this is being done by a developer named Joa Ebert. He has lots of classes, tools, and utilities for post-compilation optimization of swfs, as well as some things involving inline bytecode optimizations and what not.

    http://blog.joa-ebert.com/

    Btw, doesn’t ASUnit also time all it’s tests? I feel like this is kind of redundant, unless you just -don’t- wanna use tests but still need benchmarks.

  10. Rob
    October 26th, 2009 | 3:51 am

    Great tutorial, thanks!

  11. Ivan
    October 26th, 2009 | 7:34 am

    Hi guys,

    I was looking at the documentation of the PerformanceTest class.
    And the template of the documentation is the same one Flash is using.

    So my question is:
    Can I use the same template that adobe is using, for my documentation?

    And if so, is there a tool to create this?

  12. daganev
    October 29th, 2009 | 3:26 pm

    What are you using/shortcut are you typing to replace the pf with a function name?

  13. Wouter
    November 10th, 2009 | 4:03 am

    Great tutorial, however the links seems to be broken?
    I would really like to do the tutorial again, can this maybe be fixed?

    Thanks in advance, and excuse my crappy english,

    Wouter

  14. paddy
    November 10th, 2009 | 5:56 am

    hi lee,
    Is the video still up? I get a 404 trying to load:
    http://adobe.edgeboss.net/download/adobe/adobetv/gotoandlearn/pt.mov

    looking forward to seeing the tut ;)

  15. Eric
    November 14th, 2009 | 9:57 am

    Not tested the mov-file yet but the flash vid for this one doesn’t seem to work :\

  16. November 16th, 2009 | 8:40 am

    Hi Lee! Could you please fix the broken link for the video file: http://adobe.edgeboss.net/download/adobe/adobetv/gotoandlearn/pt.mov ? Looking forward to see your tutorial!

    /Martin

  17. Jonatas
    November 17th, 2009 | 7:01 pm

    Where is the video? =\
    i realy want to see it..
    cya

  18. lee
    November 20th, 2009 | 11:20 am

    The video is fixed now. Sorry about that.

Leave a reply