Playscript benchmark

Zynga recently released Playscript compiler, which can compile Actionscript 3 code for Mono runtime (GitHub).

I did very basic benchmark test for Vector access, to see the difference in performance between the app produce with “native” compiler and Playscript compiler. Both apps was compiled to run on iOS device.

“Native” compilation:

  • AIR 3.6
  • ASC2
  • ad-hoc build

Playscript compilation:

  • App Store release build

Here is Actionscript 3 portion of code:

ResultsĀ (rounded, tested on iPad 3):

“Native”:

  • Total amount of iterations: 2 000 000;
  • Vector (of int(s)) access – 50 milliseconds

Playscript:

  • Total amount of iterations: 2 000 000;
  • Vector (of int(s)) access – 150 milliseconds

Leave a Comment