Monday, December 2, 2013

Benchmarking asm.js using real-world code (zlib.js)

In response to a chatter between Japanese developers on Twitter about how asm.js would perform on web browsers other than Firefox, @y_imaya has written a benchmark between zlib.js that he develops and maintains vs. zlib-asm written by @ukyo by inflating (e.g. decompressing) Canterbury Corpus (a well-known set of files used for benchmarking compressor/decompressors).

His blog post can be found here but I could not hesitate to take my own benchmark on mobile devices since I use zlib.js at work, and may want to switch to zlib-asm if it runs faster than that.

So here are the numbers (his benchmark is ready to run here). The numbers on the charts show the milliseconds that took for decompressing the whole corpus.


First of all, asm.js running on Firefox is clearly the performance winner among all, showing the technical advantage of the approach. On the other hand, the asm.js-version is roughly 2x slower on other web browsers compared to the hand-written JavaScript variant. So for the time being, it seems that using a well-written JavaScript library would be preferable on browsers other than Firefox.

Anyways qudos to @y_imaya and @ukyo for their great work. I hope to see more benchmarks based on code that is actually used, so that we could understand more about the benefits of asm.js.

EDIT: It would be great if someone could add a benchmark of PNaCl running on Chrome as well.

13 comments:

  1. Learning new technolgoy would help oneself at hard part of their career. And staying updated is the only way to survive in current position. Your content tells the same. Thanks for sharing this information in here. Keep blogging like this.

    JAVA J2EE Training in Chennai | JAVA Training in Chennai | Hadoop training in chennai

    ReplyDelete
  2. really you have posted an informative blog. it will be really helpful to many peoples. thank you for sharing such kind of an interesting blog.
    hadoop training in chennai

    ReplyDelete
  3. really you have posted an informative blog. it will be really helpful to many peoples. so keep on sharing such kind of an interesting blogs.
    java training in chennai

    ReplyDelete
  4. You guys are really doing great work. I am sure you're doing research to provide such kind of stuff to us. Feeling proud that people like you still exist in the world.
    IPL live score
    free ipl score
    ipl final live streaming
    ipl final 2018
    IPL live streaming
    ipl final score
    ipl live stream 2018
    ipl live score 2018
    ipl Schedule 2018
    watch ipl online live
    IPL opening ceremony

    ReplyDelete
  5. vshare
    vshare download
    vshare market
    vshare apk
    vshare helper
    vshare ios
    Investors sentiment increased to 1.02 in 2018 Q2. Its up 0.14, from 0.88 in 2018Q1. It is positive, as 39 investors sold.

    ReplyDelete

Note: Only a member of this blog may post a comment.