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


Commentary

  1. J says:

    Excellent ! Thanks :)

  2. Giulio says:

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

  3. Troy says:

    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. Tahir Ahmed says:

    Perfect. Thanks !!

  5. P says:

    Been needing something like this recently. Thank you!

  6. jared says:

    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 says:

    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. 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. Will says:

    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 says:

    Great tutorial, thanks!

  11. Ivan says:

    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 says:

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

  13. Wouter says:

    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 says:

    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 says:

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

  16. Martin says:

    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 says:

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

  18. lee says:

    The video is fixed now. Sorry about that.

  19. Tahir Alvi says:

    Very nice, but i think it is need to more precise in terms of performance

Leave a Comment