You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: acceptance/README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,19 @@ Any file starting with "LOG" will be logged to test log (visible with go test -v
22
22
23
23
See [selftest](./selftest) for more examples.
24
24
25
+
## Benchmarks
26
+
27
+
Benchmarks are regular acceptance test that log measurements in certain format. The output can be fed to `tools/bench_parse.py` to print a summary table.
28
+
29
+
Test runner recognizes benchmark as having "benchmark" anywhere in the path. For these tests parallel execution is disabled if and only if BENCHMARK\_PARAMS variable is set.
30
+
31
+
The benchmarks make use of two scripts:
32
+
33
+
-`gen_config.py —jobs N` to generate a config with N jobs
34
+
-`benchmark.py` command to run command a few times and log the time measurements.
35
+
36
+
The default number of runs in benchmark.py depends on BENCHMARK\_PARAMS variable. If it’s set, the default number is 5. Otherwise it is 1.
37
+
25
38
## Running acceptance tests on Windows
26
39
27
40
To run the acceptance tests from a terminal on Windows (eg. Git Bash from VS Code),
0 commit comments