René Kijewski 98cb4233e2 Make derive optional
This is the same as in e.g. `serde` with the feature of the same name.
If you manually depend on `rinja_derive`, then you can make better use
of your multi-core setup.
2025-02-09 17:47:17 +01:00

21 lines
391 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
mkdir -p target
hyperfine \
--runs=3 \
--warmup=1 \
--prepare='rm -r target' \
'cargo run --features=derive' \
'cargo run'
echo
echo ----------
echo
hyperfine \
--runs=3 \
--warmup=1 \
--prepare='rm -r target' \
'cargo run --release --features=derive' \
'cargo run --release'