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.

27 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. Your blog was too good. i really appreciate with your blog.Thanks for sharing.
    Australia vs India 2016 Schedule
    ICC T20 World Cup 2016 Schedule

    ReplyDelete
  3. I have read your blog its very attractive and impressive. I like it your blog.

    Java Training in Chennai Java Training in Chennai | Core Java Training in Chennai

    Online Java Training Online Java Training | Java EE Training Institute in Chennai

    ReplyDelete
  4. 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
  5. 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
  6. Cricket could be a bat-and-ball game vie between 2 groups of 11 players every on a cricket field, at the centre of that could be a rectangular 22-yard-long (20 metres) pitch with a target at every finish referred to as the wicket (a set of 3 picket stumps upon that 2 bails sit).
    ipl live score
    free ipl score
    ipl live stream
    ipl final 2018
    ipl live streaming
    ipl final score
    ipl live stream 2018
    ipl live score 2018
    ipl 2018 Schedule match
    watch ipl online live

    ReplyDelete
  7. Cricket could be a bat-and-ball game vie between 2 groups of 11 players every on a
    cricket field, at the centre of that could be a rectangular 22-yard-long (20 metres)
    pitch with a target at every finish referred to as the wicket (a set of 3 picket stumps
    upon that 2 bails sit).
    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 2018 Schedule match
    watch ipl online live

    ReplyDelete
  8. 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