Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@ryansg.com>2019-12-04 09:57:08 -0500
committerMike Gerwitz <mike.gerwitz@ryansg.com>2020-02-24 14:56:28 -0500
commit0147cb7cb4972405a683fed581533d3508c23a07 (patch)
tree5243b67f7647d697438b51f6eddddea29ed80eb8 /tamer/README.md
parent0acc21f16f098b2784b1382b82816889d694f91a (diff)
downloadtame-0147cb7cb4972405a683fed581533d3508c23a07.tar.gz
tame-0147cb7cb4972405a683fed581533d3508c23a07.tar.bz2
tame-0147cb7cb4972405a683fed581533d3508c23a07.zip
Makefile.am (bench): New target
The configure script will determine if nightly is required for running benchmarks, because `test` is currently an unstable feature.
Diffstat (limited to 'tamer/README.md')
-rw-r--r--tamer/README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/tamer/README.md b/tamer/README.md
index 2d14ef4..4f602f0 100644
--- a/tamer/README.md
+++ b/tamer/README.md
@@ -78,3 +78,20 @@ If you want to automatically fix formatting errors and then run tests:
```sh
$ make fmt check
```
+
+
+## Benchmarking
+Benchmarks serve two purposes: external integration tests (which are subject
+to module visibility constraints) and actual benchmarking. To run
+benchmarks, invoke `make bench`.
+
+Note that link-time optimizations (LTO) are performed on the binary for
+benchmarking so that its performance reflects release builds that will be
+used in production.
+
+The `configure` script will automatically detect whether the `test` feature
+is unstable (as it was as of the time of writing) and, if so, will
+automatically fall back to invoking nightly (by running `cargo +nightly
+bench`).
+
+If you do not have nightly, run you install it via `rustup install nightly`.