Are you able to run the page on the main thread to profile in Firefox Gecko profiler add-on? I find that tool to be most excellent for showing performance bottleneck.
Does running on main thread show the same performance as running in a worker, or is there a disparity? 2017-02-27 10:31 GMT-08:00 Gaurav Dewan <gauravdewan...@gmail.com>: > I am profiling asm.js WebWorker in Chrome (without automatic compilation > to wasm) with --profiling-funcs option. > I noticed that for my application, "Record Allocation Profile"(memory > allocation from JS functions) shows similar bottleneck as "Record JS CPU > profile". > How to interpret "Allocation Profile" of Webworker as reported by Chrome ? > Because in asm.js memory should have been allocated at start-up time. > > Does it mean that that those functions are causing JS engine to get commit > page memory from OS for some reasons: > (1)Size of those functions may be large taking up large memory to compile > (in chrome) ? > (2) Too much local variables in those functions or memory allocation in > asm.js > (3) TypedArray (and arraybuffer) memory was not committed at time of > startup but only when that page is touched in those function (heap access) > - so that is being shown in profile as hotspot > > I still have to profile behavior in firefox where I can profile asm.js in > only the main thread (and there will be little noise from DOM functions). > Does the above pattern sound familiar ? Is there a pattern which can > prevent asm.js from reaching close to 2.5X performance(slower) of native > like large functions, inlining llvm opts, or long switch case or something > else which hurt JS performance? > > -- > 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-discuss+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.