89884

ActionScript 2 vs ActionScript 3 performance

Any <strong>benchmarks</strong> of Integer, Array, Function, Class, etc, <strong>performance</strong> in these 2 languages (compilers)?

Comparisons would also be helpful.

Answer1:

Since AS3 runs in a different virtual machine (AVM2) than AS2 (AVM) there have been made significant performance improvements with the introduction of AS3. In general, opcode executed by AVM2 runs about 10x faster than similar opcode running in the old AVM. This of course does not mean that everything in AS3 is 10x times faster than with AS2. With the introduction of AS3 all the display functions, or all the typical Flash API's, haven't increased in speed only the logic and arithmetic part of the code execution process. E.g. applying a blur filter on a visual element is just as fast with AS2 as it is with AS3 however, doing 3D transformations is much faster with AS3. AS3 introduces also some new data types which can increase performance as well (all though that doesn't necessarily always be the case).

Here are some links with information about AS3 performance:

    <li>Avoid ints in AS3</li> <li>Types in AS3</li> <li>AS3 Performance Tests</li> <li>Flash AS3 and AVM2: Performance Tuning</li> </ul>

    Answer2:

    i think you have to be more specific in what exactly are you looking for, i doubt anyone benchmarked and compared everything. also, AS is only the language, but there are speed differences between player versions, platform and browsers too.

    but as a general rule, AS3 is almost always faster, sometimes with orders of magnitude.

Recommend

  • Unable to read the selected drop down list value on page load after pressing browser back button
  • Copy Access database query into Excel spreadsheet
  • cd vs !cd vs %cd in IPython
  • Unpickling mid-stream (python)
  • Node.js - Socket.io - Issue with “maximum concurrent connections”
  • Send data to server whenever internet connection is available iOS
  • How to Fire Windows Service stop event on System restart?
  • twisted.internet.error.ConnectError when run scrapy spider
  • What is RSL (Runtime shared library ) used for in flash?
  • Meteor.. accounts- password— Create account on client without login
  • Thread synchronization with syncwarp
  • Are there any side effects from calling SQLAlchemy flush() within code?
  • How can I run DataNucleus Bytecode Enhancer from SBT?
  • Jquery Knockout: ko.computed() vs classic function?
  • Center align outputs in ipython notebook
  • Is it possible to open regedit and navigate to straight to a specific key using process.start?
  • RxJava debounce by arbitrary value
  • Android Google Maps API v2 start navigation
  • Position: fixed nav does not stay fixed
  • How can I speed up CURL tasks?
  • how to avoid repetitive constructor in children
  • onBackPressed() not being executed
  • How to run “Deployd” on port 80 instead of port 5000 in webserver.
  • Atlas images wrong size on iPad iOS 9
  • Spark fat jar to run multiple versions on YARN
  • Asynchronous UI Testing in Xcode With Swift
  • NetLogo BehaviorSpace - Measure runs using reporters
  • Is my CUDA kernel really runs on device or is being mistekenly executed by host in emulation?
  • TFS: Get latest causes slow project reloading
  • Submit form in a displaytag pagination
  • How can I use Kendo UI with Razor?
  • To display the title for the current loaction in map in iphone
  • How can I estimate amount of memory left with calling System.gc()?
  • Apache 2.4 - remove | delete | uninstall
  • Traverse Array and Display in markup
  • json Serialization in asp
  • How to set the response of a form post action to a iframe source?
  • What are the advantages and disadvantages of reading an entire file into a single String as opposed
  • Why joiner is not used after Sequence generator or Update statergy
  • java string with new operator and a literal