Skip to content
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
2 changes: 1 addition & 1 deletion benchmarks/Dockerfile.emscripten
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM emscripten/emsdk:2.0.8
FROM emscripten/emsdk:4.0.10

WORKDIR /
COPY benchmark.c .
Expand Down
8 changes: 4 additions & 4 deletions benchmarks/Dockerfile.rust
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM rust:1.70
RUN rustup target add wasm32-wasi
FROM rust:1.87
RUN rustup target add wasm32-wasip1
WORKDIR /usr/src
ADD rust-benchmark rust-benchmark
WORKDIR /usr/src/rust-benchmark
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN cargo build --release --target wasm32-wasi
RUN cargo build --release --target wasm32-wasip1
RUN mkdir /benchmark
RUN cp target/wasm32-wasi/release/*benchmark.wasm /benchmark/
RUN cp target/wasm32-wasip1/release/*benchmark.wasm /benchmark/
# We output the Wasm file to the `/benchmark` directory, where the client
# expects it.
Binary file modified benchmarks/blake3-scalar/benchmark.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions benchmarks/blake3-simd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM emscripten/emsdk:2.0.8
FROM emscripten/emsdk:4.0.10

WORKDIR /usr/src
RUN git clone https://github.com/BLAKE3-team/BLAKE3.git
Expand All @@ -14,7 +14,7 @@ RUN emcc -O3 -s STANDALONE_WASM=1 \
-s INITIAL_MEMORY=1048576 -s MAXIMUM_MEMORY=16777216 \
-s ALLOW_MEMORY_GROWTH=1 -s TOTAL_STACK=131072 \
-s "EXPORTED_FUNCTIONS=['_main']" \
-msimd128 -msse2 -msse3 -msse4.1 -msse4.2 \
-msimd128 -msse4.1 -msse4.2 \
-DBLAKE3_NO_SSE41 -DBLAKE3_NO_AVX2 -DBLAKE3_NO_AVX512 \
-o /benchmark/benchmark.wasm \
blake3.c blake3_sse2.c blake3_dispatch.c \
Expand Down
Binary file modified benchmarks/blake3-simd/benchmark.wasm
Binary file not shown.
Binary file modified benchmarks/blind-sig/benchmark.wasm
Binary file not shown.
Binary file modified benchmarks/hex-simd/benchmark.wasm
Binary file not shown.
Binary file not shown.
3 changes: 1 addition & 2 deletions benchmarks/intgemm-simd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM emscripten/emsdk:2.0.8
FROM emscripten/emsdk:4.0.10

WORKDIR /usr/src
RUN git clone https://github.com/kpu/intgemm.git
Expand All @@ -23,7 +23,6 @@ RUN emcc -O3 -s STANDALONE_WASM=1 \
-s INITIAL_MEMORY=33554432 -s MAXIMUM_MEMORY=33554432 \
-s ALLOW_MEMORY_GROWTH=0 -s TOTAL_STACK=2097152 \
-msimd128 -mssse3 -O3 -Ibuild \
-s "EXPORTED_FUNCTIONS=['_main']" \
-o /benchmark/benchmark.wasm \
benchmark.cpp build/libintgemm.a
# We output the Wasm file to the `/benchmark` directory, where the client
Expand Down
Binary file modified benchmarks/intgemm-simd/benchmark.wasm
Binary file not shown.
Binary file modified benchmarks/noop/benchmark.wasm
Binary file not shown.
Binary file modified benchmarks/pulldown-cmark/benchmark.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion benchmarks/regex/Dockerfile.native
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.70
FROM rust:1.87

# Copy in the `src` directory.
ENV SRC=/usr/src/regex/
Expand Down
Binary file modified benchmarks/regex/benchmark.wasm
Binary file not shown.
8 changes: 4 additions & 4 deletions benchmarks/tract-onnx-image-classification/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM rust:1.75
RUN rustup target add wasm32-wasi
FROM rust:1.87
RUN rustup target add wasm32-wasip1
WORKDIR /usr/src
ADD rust-benchmark rust-benchmark
ADD assets assets
ADD setup.sh setup.sh
RUN ./setup.sh
WORKDIR /usr/src/rust-benchmark
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
RUN cargo build --release --target wasm32-wasi
RUN cargo build --release --target wasm32-wasip1
RUN mkdir /benchmark
RUN cp target/wasm32-wasi/release/benchmark.wasm /benchmark/
RUN cp target/wasm32-wasip1/release/benchmark.wasm /benchmark/
# We output the Wasm file to the `/benchmark` directory, where the client
# expects it.
Binary file modified benchmarks/tract-onnx-image-classification/benchmark.wasm
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ fn classify(image: &[u8]) -> Result<Vec<Classification>, anyhow::Error> {
.map(|(score, i)| Classification {
label: LABELS[*i as usize].to_string(),
score: format!("{:.*}", 2, **score).parse().unwrap(),
// score: (**score * 100.0).round() / 100.0,
})
.collect();
Ok(labels)
Expand Down