Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Zig version for libsodium #271

Merged
merged 2 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 19 additions & 16 deletions benchmarks/all.suite
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,34 @@
# | sort -z \
# | xargs -r0 -i -L 1 echo \
# | tee -a all.suite

blake3-scalar/benchmark.wasm
blake3-simd/benchmark.wasm
blind-sig/benchmark.wasm
bz2/benchmark.wasm
hex-simd/benchmark.wasm
# image-classification/image-classification-benchmark.wasm
intgemm-simd/benchmark.wasm
libsodium/libsodium-aead_aes256gcm2.wasm
libsodium/libsodium-aead_aegis128l.wasm
libsodium/libsodium-aead_aegis256.wasm
libsodium/libsodium-aead_aes256gcm.wasm
libsodium/libsodium-aead_chacha20poly13052.wasm
libsodium/libsodium-aead_aes256gcm2.wasm
libsodium/libsodium-aead_chacha20poly1305.wasm
libsodium/libsodium-aead_chacha20poly13052.wasm
libsodium/libsodium-aead_xchacha20poly1305.wasm
libsodium/libsodium-auth.wasm
libsodium/libsodium-auth2.wasm
libsodium/libsodium-auth3.wasm
libsodium/libsodium-auth5.wasm
libsodium/libsodium-auth6.wasm
libsodium/libsodium-auth7.wasm
libsodium/libsodium-auth.wasm
libsodium/libsodium-box.wasm
libsodium/libsodium-box2.wasm
libsodium/libsodium-box7.wasm
libsodium/libsodium-box8.wasm
libsodium/libsodium-box_easy2.wasm
libsodium/libsodium-box_easy.wasm
libsodium/libsodium-box_easy2.wasm
libsodium/libsodium-box_seal.wasm
libsodium/libsodium-box_seed.wasm
libsodium/libsodium-box.wasm
libsodium/libsodium-chacha20.wasm
libsodium/libsodium-codecs.wasm
libsodium/libsodium-core1.wasm
Expand All @@ -43,51 +44,53 @@ libsodium/libsodium-core6.wasm
libsodium/libsodium-core_ed25519.wasm
libsodium/libsodium-core_ristretto255.wasm
libsodium/libsodium-ed25519_convert.wasm
libsodium/libsodium-generichash.wasm
libsodium/libsodium-generichash2.wasm
libsodium/libsodium-generichash3.wasm
libsodium/libsodium-generichash.wasm
libsodium/libsodium-hash3.wasm
libsodium/libsodium-hash.wasm
libsodium/libsodium-hash3.wasm
libsodium/libsodium-kdf.wasm
libsodium/libsodium-kdf_hkdf.wasm
libsodium/libsodium-keygen.wasm
libsodium/libsodium-kx.wasm
libsodium/libsodium-metamorphic.wasm
libsodium/libsodium-misuse.wasm
libsodium/libsodium-onetimeauth.wasm
libsodium/libsodium-onetimeauth2.wasm
libsodium/libsodium-onetimeauth7.wasm
libsodium/libsodium-onetimeauth.wasm
libsodium/libsodium-pwhash_argon2id.wasm
libsodium/libsodium-pwhash_argon2i.wasm
libsodium/libsodium-pwhash_scrypt_ll.wasm
libsodium/libsodium-pwhash_argon2id.wasm
libsodium/libsodium-pwhash_scrypt.wasm
libsodium/libsodium-pwhash_scrypt_ll.wasm
libsodium/libsodium-randombytes.wasm
libsodium/libsodium-scalarmult.wasm
libsodium/libsodium-scalarmult2.wasm
libsodium/libsodium-scalarmult5.wasm
libsodium/libsodium-scalarmult6.wasm
libsodium/libsodium-scalarmult7.wasm
libsodium/libsodium-scalarmult8.wasm
libsodium/libsodium-scalarmult_ed25519.wasm
libsodium/libsodium-scalarmult_ristretto255.wasm
libsodium/libsodium-scalarmult.wasm
libsodium/libsodium-secretbox.wasm
libsodium/libsodium-secretbox2.wasm
libsodium/libsodium-secretbox7.wasm
libsodium/libsodium-secretbox8.wasm
libsodium/libsodium-secretbox_easy2.wasm
libsodium/libsodium-secretbox_easy.wasm
libsodium/libsodium-secretbox.wasm
libsodium/libsodium-secretbox_easy2.wasm
libsodium/libsodium-secretstream.wasm
libsodium/libsodium-secretstream_xchacha20poly1305.wasm
libsodium/libsodium-shorthash.wasm
libsodium/libsodium-sign.wasm
libsodium/libsodium-siphashx24.wasm
libsodium/libsodium-sodium_core.wasm
libsodium/libsodium-sodium_utils.wasm
libsodium/libsodium-sodium_utils2.wasm
libsodium/libsodium-sodium_utils3.wasm
libsodium/libsodium-sodium_utils.wasm
libsodium/libsodium-sodium_version.wasm
libsodium/libsodium-stream.wasm
libsodium/libsodium-stream2.wasm
libsodium/libsodium-stream3.wasm
libsodium/libsodium-stream4.wasm
libsodium/libsodium-stream.wasm
libsodium/libsodium-verify1.wasm
libsodium/libsodium-xchacha20.wasm
meshoptimizer/benchmark.wasm
Expand Down
8 changes: 4 additions & 4 deletions benchmarks/libsodium/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ RUN apt update && apt install -y wget xz-utils unzip git
# Download and extract the latest stable version of Zig and retrieve the
# `stable` branch of libsodium that can be built by it.
WORKDIR /
RUN wget https://ziglang.org/download/0.10.1/zig-linux-x86_64-0.10.1.tar.xz
RUN tar --extract --verbose --file=zig-linux-x86_64-0.10.1.tar.xz
ENV PATH="${PATH}:/zig-linux-x86_64-0.10.1"
RUN wget https://ziglang.org/download/0.11.0/zig-linux-x86_64-0.11.0.tar.xz
RUN tar --extract --verbose --file=zig-linux-x86_64-0.11.0.tar.xz
ENV PATH="${PATH}:/zig-linux-x86_64-0.11.0"
RUN echo "zig version = $(zig version)"
RUN wget https://github.com/jedisct1/libsodium/archive/stable.zip
RUN unzip stable.zip
Expand All @@ -22,7 +22,7 @@ COPY sightglass.h src/libsodium/include/
COPY add-bench-calls.diff .
RUN git apply add-bench-calls.diff
RUN zig build -Dtarget=wasm32-wasi \
-Drelease-fast -Dcpu=generic+bulk_memory+simd128 \
-Doptimize=ReleaseFast -Dcpu=generic+bulk_memory+simd128 \
-Denable_benchmarks=true -Diterations=1

# Place all of the WebAssembly benchmarks in `/benchmark`. Some benchmarks lose
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-aead_aes256gcm.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-aead_aes256gcm2.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-aead_chacha20poly1305.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-aead_chacha20poly13052.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-aead_xchacha20poly1305.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-auth.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-auth2.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-auth3.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-auth5.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-auth6.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-auth7.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-box.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-box2.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-box7.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-box8.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-box_easy.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-box_easy2.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-box_seal.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-box_seed.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-chacha20.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-codecs.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-core1.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-core2.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-core3.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-core4.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-core5.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-core6.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-core_ed25519.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-core_ristretto255.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-ed25519_convert.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-generichash.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-generichash2.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-generichash3.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-hash.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-hash3.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-kdf.wasm
Binary file not shown.
Binary file added benchmarks/libsodium/libsodium-kdf_hkdf.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-keygen.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-kx.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-metamorphic.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-misuse.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-onetimeauth.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-onetimeauth2.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-onetimeauth7.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-pwhash_argon2i.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-pwhash_argon2id.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-pwhash_scrypt.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-pwhash_scrypt_ll.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-randombytes.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-scalarmult.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-scalarmult2.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-scalarmult5.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-scalarmult6.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-scalarmult7.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-scalarmult8.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-scalarmult_ed25519.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-scalarmult_ristretto255.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-secretbox.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-secretbox2.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-secretbox7.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-secretbox8.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-secretbox_easy.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-secretbox_easy2.wasm
Binary file not shown.
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-shorthash.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-sign.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-siphashx24.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-sodium_core.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-sodium_utils.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-sodium_version.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-stream.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-stream2.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-stream3.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-stream4.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-verify1.wasm
Binary file not shown.
Binary file modified benchmarks/libsodium/libsodium-xchacha20.wasm
Binary file not shown.
Loading