On Fri, Jun 5, 2020 at 7:40 AM MEENA N SUBBIAH <[email protected]> wrote:
> I finally found out why my build is slower. > > I build the wasm on a windows subsystem for linux, it was slower. > The when I build the same on a mac machine it is faster. > > Is this expected behaviour? > > No, you should get identical builds regardless of the build machine. If you can show a different output for the same emsdk version on different operating systems that could be a bug. steps to build - > 1. clone the code from https://github.com/ankh-g/libvpx/tree/wartc > (branch 'wartc') > 2. sh wasm.sh > > On Sunday, May 31, 2020 at 10:12:41 PM UTC+5:30, Alon Zakai wrote: >> >> For LTO you also need to pass -flto during the compile step (and during >> link, and you don't need `--llvm-lto 3` any more, which was for the old >> backend). >> >> If that's not it, I'd suggest comparing profiles between the builds to >> find what is actually slower in your build. >> >> On Sat, May 30, 2020 at 10:04 AM MEENA N SUBBIAH <[email protected]> >> wrote: >> >>> I am trying to compile the libvpx module to wasm. >>> But I am facing huge performance issues. >>> >>> The wasm I build takes an average encode time of 1300+ milliseconds. >>> But I found another livpx.wasm >>> https://github.com/webrtc/apprtc/tree/wartc/src/web_app/wasm/libvpx >>> which takes average encode time of 250+ milliseconds. >>> Can anyone help me, Where am I going wrong. >>> >>> here are the compilation setting I use, >>> >>> to build *libvpx,* >>> >>> >>> *emconfigure ../node_modules/libvpx/configure --enable-postproc >>> --enable-multi-res-encoding --enable-temporal-denoising --enable-libyuv >>> --size-limit=16384x16384 --enable-multithread --enable-realtime-only >>> --disable-install-docs --disable-unit-tests --disable-vp9-decoder >>> --disable-vp9-encoder --target=generic-gnu --extra-cxxflags="-O3 -s WASM=1 >>> -DWASM -I`dirname \`which emcc\``/system/lib/libcxxabi/include"* >>> *emmake make* >>> >>> to build *libyuv,* >>> >>> >>> *emcmake cmake -DCMAKE_BUILD_TYPE=Release ../node_modules/libyuvemmake >>> make* >>> >>> *Final compilation,* >>> >>> >>> *emcc -O3 -DWASM --bind -s STRICT=1 -s ALLOW_MEMORY_GROWTH=1 -s >>> ASSERTIONS=0 -s NO_EXIT_RUNTIME=1 -s MALLOC=emmalloc -s MODULARIZE=1 -s >>> FILESYSTEM=0 -s EXPORT_ES6=1 --std=c++11 -o ./my-module.js -x c++ -I >>> ./node_modules/libvpx -I ./node_modules/libyuv/include -I build-vpx >>> src/zcon_ss.cpp src/Utility/ZvpxCodecInst.cpp src/Utility/zvpx_encoder.cpp >>> src/Utility/zvpx_decoder.cpp build-vpx/libvpx.a build-yuv/libyuv.a >>> --no-entry --closure 0 --llvm-lto 3 -g0* >>> >>> >>> -- >>> 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/e47d2054-9a4a-4cc5-86f9-bf0072f55258%40googlegroups.com >>> <https://groups.google.com/d/msgid/emscripten-discuss/e47d2054-9a4a-4cc5-86f9-bf0072f55258%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > 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/c177907a-af0b-43b2-ae31-1f53db84cca5o%40googlegroups.com > <https://groups.google.com/d/msgid/emscripten-discuss/c177907a-af0b-43b2-ae31-1f53db84cca5o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAL_va286d2JKmcm%3DYJmmayHdwbhPgk52ExsTmd_cMdXpkqRrKQ%40mail.gmail.com.
