summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authork8s-merge-robot <k8s.production.user@gmail.com>2016-01-29 20:47:43 -0800
committerk8s-merge-robot <k8s.production.user@gmail.com>2016-01-29 20:47:43 -0800
commit9074f0d2a20a940234ac2f91c3ce138a9a9bd27f (patch)
treeed19be4cbccb16abd884ca4c758f4ae9e11633dc
parent7816368e07cbb396873223947ae5b9d7d26c96ff (diff)
parent52c6c3c1ada6aaff5a3d37b5cff2bec4999c5c4c (diff)
Merge pull request #19582 from smarterclayton/benchmark_watch
Auto commit by PR queue bot
-rw-r--r--development.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/development.md b/development.md
index 95dccaa9..06aa870a 100644
--- a/development.md
+++ b/development.md
@@ -374,6 +374,15 @@ See [conformance-test.sh](http://releases.k8s.io/HEAD/hack/conformance-test.sh).
[Instructions here](flaky-tests.md)
+## Benchmarking
+
+To run benchmark tests, you'll typically use something like:
+
+ $ godep go test ./pkg/apiserver -benchmem -run=XXX -bench=BenchmarkWatch
+
+The `-run=XXX` prevents normal unit tests for running, while `-bench` is a regexp for selecting which benchmarks to run.
+See `go test -h` for more instructions on generating profiles from benchmarks.
+
## Regenerating the CLI documentation
```sh