# The wasm32-wasip2 build of the integer decoder (made on the build host) under wasmtime on x86_64 host A. set -euo pipefail R=$HOME/wai-build/det1; W=$R/work; X=$W/xplat; S=$R/wasm-shards cd $R [ -x wasmtime-v49.0.3-x86_64-linux/wasmtime ] || { curl -sSfL -o wt.tar.xz https://github.com/bytecodealliance/wasmtime/releases/download/v49.0.3/wasmtime-v49.0.3-x86_64-linux.tar.xz && tar xf wt.tar.xz; } WT=$R/wasmtime-v49.0.3-x86_64-linux/wasmtime rm -rf $S; mkdir -p $S awk "{print > (\"$S/jobs.\" (NR-1)%16)}" $W/jobs.dash.tsv for f in $S/jobs.*; do nice -n 10 $WT run --dir $W::$W --dir $S::$S $R/wai_det_cost.wasm decode $f > $f.out & done; wait cat $S/jobs.*.out > $X/wasm32-wasip2-x86_64.tsv printf '{"system": "Linux %s", "hardware": "x86_64 SoC, 16 cores, 32 threads, AVX-512", "target": "wasm32-wasip2", "fabric": "CPU, WebAssembly", "kernels": "fast", "threads": "1 (sixteen decoder processes side by side)", "rustc": "1.98.0", "runtime": "%s, the build host'"'"'s .wasm"}\n' "$(uname -r)" "$($WT --version | cut -d' ' -f1-2)" > $X/wasm32-wasip2-x86_64.json wc -l $X/wasm32-wasip2-x86_64.tsv