Interesting, yes, I also see the bulk memory path as slower. By just a
little, though, after I changed the benchmark to run 10x more iterations in
the html and added -O3 to the emcc command (hoping to reduce noise that
way, and enable maximum opts). I see a 2-5% slowdown.

Talking to tlively, the difference might be that with bulk memory we depend
on the browser for doing memmove etc., and perhaps the implementation there
is not yet as optimized as what the toolchain was emitting inside the wasm
(which was heavily optimized over time). But we're not sure.

The wasm binary is around 2% smaller with bulk memory though, which is nice
(20,839 bytes).


On Fri, Jul 12, 2019 at 9:38 AM Lilit Darbinyan <[email protected]>
wrote:

> oops typo - it's twice as slow WITH the flag.
>
> On Friday, July 12, 2019 at 5:37:52 PM UTC+1, Lilit Darbinyan wrote:
>>
>> Thanks!
>>
>> Interestingly it's twice as slow without the flag. It's now 40ms instead
>> of the 20ms. To summarize:
>>
>> Fastcomp                  80ms
>> LLVM                      20ms
>> LLVM with -mbulk-memory   40ms
>>
>> The profiler now shows this as the hot path instead of memmove:
>>
>> std::__2::vector<double, std::__2::allocator<double>
>> >::insert(std::__2::__wrap_iter<double const*>, unsigned long, double
>> const&)
>>
>> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/7cf8a87b-bf54-49ea-96a1-cb337c903546%40googlegroups.com
> <https://groups.google.com/d/msgid/emscripten-discuss/7cf8a87b-bf54-49ea-96a1-cb337c903546%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpQqPk%2BnYoT1g9W2b-FByJoEshBbrqe8CGaHEm0LcQ5JVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to