- Merge upstream main branch - Partially merge https://github.com/WebKit/JetStream/pull/167/ to display sub-times Change-Id: I9f30772ff2d6d068b09e43df3cb57da35b231ca2 Reviewed-on: https://chromium-review.googlesource.com/c/external/github.com/WebKit/JetStream/+/6911418 Reviewed-by: Victor Gomes <victorgomes@chromium.org>
26 lines
912 B
Bash
Executable file
26 lines
912 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eo pipefail
|
|
|
|
# Cleanup old files.
|
|
rm -rf wasm_gc_benchmarks/
|
|
rm -rf build/
|
|
|
|
BUILD_LOG="$(realpath build.log)"
|
|
echo -e "Built on $(date)" | tee "$BUILD_LOG"
|
|
|
|
git clone https://github.com/mkustermann/wasm_gc_benchmarks 2>&1 | tee -a "$BUILD_LOG"
|
|
pushd wasm_gc_benchmarks/
|
|
git log -1 --oneline | tee -a "$BUILD_LOG"
|
|
popd
|
|
|
|
echo "Copying files from wasm_gc_benchmarks/ into build/" | tee -a "$BUILD_LOG"
|
|
mkdir -p build/ | tee -a "$BUILD_LOG"
|
|
# Two Flute benchmark applications: complex and todomvc
|
|
cp wasm_gc_benchmarks/benchmarks-out/flute.complex.dart2wasm.{mjs,wasm} build/ | tee -a "$BUILD_LOG"
|
|
cp wasm_gc_benchmarks/benchmarks-out/flute.todomvc.dart2wasm.{mjs,wasm} build/ | tee -a "$BUILD_LOG"
|
|
|
|
echo "Build success" | tee -a "$BUILD_LOG"
|
|
|
|
# TODO: We could actually build the application/benchmark from Dart sources with
|
|
# the dart2wasm compiler / Dart SDK. See `wasm_gc_benchmarks/compile.sh`
|