Add libsodium benchmark (#2025)

This commit is contained in:
Wenyong Huang
2023-03-15 08:24:08 +08:00
committed by GitHub
parent bab2402b6e
commit 05d7ec30b1
9 changed files with 131 additions and 7 deletions

View File

@ -8,7 +8,7 @@
Please build iwasm and wamrc, refer to:
- [Build iwasm on Linux](../../../doc/build_wamr.md#linux), or [Build iwasm on MacOS](../../../doc/build_wamr.md#macos)
- [build wamrc AOT compiler](../../../README.md#build-wamrc-aot-compiler)
- [Build wamrc AOT compiler](../../../README.md#build-wamrc-aot-compiler)
And install WASI SDK, please download the [wasi-sdk release](https://github.com/CraneStation/wasi-sdk/releases) and extract the archive to default path `/opt/wasi-sdk`.

View File

@ -13,7 +13,7 @@ cd coremark
echo "Build coremark with gcc .."
gcc -O3 -Iposix -I. -DFLAGS_STR=\""-O3 -DPERFORMANCE_RUN=1 -lrt"\" \
-DITERATIONS=0 -DPERFORMANCE_RUN=1 \
-DITERATIONS=400000 -DSEED_METHOD=SEED_VOLATILE -DPERFORMANCE_RUN=1 \
core_list_join.c core_main.c core_matrix.c core_state.c \
core_util.c posix/core_portme.c \
-o ../coremark.exe -lrt
@ -21,7 +21,7 @@ gcc -O3 -Iposix -I. -DFLAGS_STR=\""-O3 -DPERFORMANCE_RUN=1 -lrt"\" \
echo "Build coremark with wasi-sdk .."
/opt/wasi-sdk/bin/clang -O3 -Iposix -I. -DFLAGS_STR=\""-O3 -DPERFORMANCE_RUN=1"\" \
-Wl,--export=main \
-DITERATIONS=0 -DPERFORMANCE_RUN=1 \
-DITERATIONS=400000 -DSEED_METHOD=SEED_VOLATILE -DPERFORMANCE_RUN=1 \
-Wl,--allow-undefined \
core_list_join.c core_main.c core_matrix.c core_state.c \
core_util.c posix/core_portme.c \