Performance of pdfium.js

526 views
Skip to first unread message

Lu Wang

unread,
Jul 23, 2014, 1:06:37 AM7/23/14
to emscripten-discuss
Hi all,

   This doc shows the performance of pdfium.js and pdf.js:

   https://docs.google.com/spreadsheets/d/1s90JhBjpcbc8FoGruLFzKxaQ-cpKT8qmHgBUsCH9PXY/edit?usp=sharing

  The input file is the one used in the PDF.js demo (tracemonkey paper).
  And the test pages are

http://coolwanglu.github.io/PDFium.js/
http://coolwanglu.github.io/PDFium.js/pdfjs.html

  I didn't use the PDF.js demo to avoid some overhead on UI. Also to be fair, text layer is disabled.

  In the figure we can see that PDFium.js with asm.js is very fast (except for page 9, no idea about the reason), the other two without asm.js were old versions, just for comparison.

  Alon: previously asm.js was disabled in order to allow memory growth, it actually makes much difference.


  regards,
  - Lu

 

Alon Zakai

unread,
Jul 23, 2014, 2:47:07 PM7/23/14
to emscripte...@googlegroups.com
Interesting, I'm surprised asm.js makes that much of a difference. Can you perhaps profile to see why?

- Alon



--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

王璐

unread,
Jul 24, 2014, 12:43:28 AM7/24/14
to emscripte...@googlegroups.com
I've updated the google doc with more combination of compilation flags.


regards,
- Lu
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.

王璐

unread,
Jul 24, 2014, 12:50:31 AM7/24/14
to emscripte...@googlegroups.com
Seems that -Oz w/ asmjs and --llvm-lto is the best overall

Jukka Jylänki

unread,
Jul 24, 2014, 4:19:38 AM7/24/14
to emscripte...@googlegroups.com
Nice google doc page with the charts - that gave a good executive summary very quickly!

I'm very surprised that -Oz is faster than -O3, and also that in asm.js cases, that lto can make the performance worse. If you find any insight as to why those could be, that'd be extremely valuable.


2014-07-24 7:50 GMT+03:00 王璐 <coolw...@gmail.com>:
Seems that -Oz w/ asmjs and --llvm-lto is the best overall

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.

Alon Zakai

unread,
Jul 24, 2014, 3:22:34 PM7/24/14
to emscripte...@googlegroups.com
A fix for the firefox profiler bug on asm.js is almost landed, which would make that easier to figure out, will show all function times. https://bugzilla.mozilla.org/show_bug.cgi?id=1040390

- Alon


Reply all
Reply to author
Forward
0 new messages