mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-27 13:00:57 +00:00

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.
21 lines
391 B
Bash
Executable File
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'
|