Skip to content

Commit 3b27cc8

Browse files
Hardanish-Singhaduh95
authored andcommitted
doc: clean up writing-and-running-benchmarks.md
PR-URL: #61345 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
1 parent 3e4255d commit 3b27cc8

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

doc/contributing/writing-and-running-benchmarks.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,29 @@ By default, `wrk` will be used as the benchmarker. If it is not available,
4343
`autocannon` will be used in its place. When creating an HTTP benchmark, the
4444
benchmarker to be used should be specified by providing it as an argument:
4545

46-
`node benchmark/run.js --set benchmarker=autocannon http`
47-
48-
`node benchmark/http/simple.js benchmarker=autocannon`
46+
```bash
47+
node benchmark/run.js --set benchmarker=autocannon http
48+
node benchmark/http/simple.js benchmarker=autocannon
49+
```
4950

5051
#### HTTPS benchmark requirements
5152

5253
To run the `https` benchmarks, one of `autocannon` or `wrk` benchmarkers must
5354
be used.
5455

55-
`node benchmark/https/simple.js benchmarker=autocannon`
56+
```bash
57+
node benchmark/https/simple.js benchmarker=autocannon
58+
```
5659

5760
#### HTTP/2 benchmark requirements
5861

5962
To run the `http2` benchmarks, the `h2load` benchmarker must be used. The
6063
`h2load` tool is a component of the `nghttp2` project and may be installed
6164
from [nghttp2.org][] or built from source.
6265

63-
`node benchmark/http2/simple.js benchmarker=h2load`
66+
```bash
67+
node benchmark/http2/simple.js benchmarker=h2load
68+
```
6469

6570
### Benchmark analysis requirements
6671

0 commit comments

Comments
 (0)