Skip to content

Commit de1b61e

Browse files
committed
Merge pull request #42 from jbuberel/patch-1
Adding a brief Usage section
2 parents 9ad26b3 + 4856ee6 commit de1b61e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,3 +371,17 @@ Denco and its predecessor Kocha-urlrouter seem to have great performance, but ar
371371
Currently no router can beat the performance of the [HttpRouter](https://github.com/julienschmidt/httprouter) package, which currently dominates nearly all benchmarks.
372372

373373
In the end, performance can not be the (only) criterion for choosing a router. Play around a bit with some of the routers, and choose the one you like best.
374+
375+
## Usage
376+
377+
If you'd like to run these benchmarks locally, you'll need to install the packge first:
378+
379+
```bash
380+
go get github.com/julienschmidt/go-http-routing-benchmark
381+
```
382+
This may take a while due to the large number of dependencies that need to be downloaded. Once that command completes, you can run the full set of benchmarks like this:
383+
384+
```bash
385+
cd $GOPATH/src/github.com/julienschmidt/go-http-routing-benchmark
386+
go test -bench=.
387+
```

0 commit comments

Comments
 (0)