benchmark/README.md
raw| 1 | # Benchmarking logr |
| 2 | |
| 3 | Any major changes to the logr library must be benchmarked before and after the |
| 4 | change. |
| 5 | |
| 6 | ## Running the benchmark |
| 7 | |
| 8 | ``` |
| 9 | $ go test -bench='.' -test.benchmem ./benchmark/ |
| 10 | ``` |
| 11 | |
| 12 | ## Fixing the benchmark |
| 13 | |
| 14 | If you think this benchmark can be improved, you are probably correct! PRs are |
| 15 | very welcome. |