Skip to content

Commit

Permalink
Update benchmark comparison instructions (#766) (#766)
Browse files Browse the repository at this point in the history
Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
  • Loading branch information
adlarkin committed Apr 14, 2021
1 parent dfb43a0 commit 33b37c5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@

Given a set of changes to the codebase, it is often useful to see the difference in performance.

Once two (or more) benchmarks have been executed, compare the results with:
Once two (or more) benchmarks have been executed, compare the results by downloading the [benchmark tools](https://github.com/google/benchmark/tree/master/tools), and then run the following command:

```
# From the build folder
../test/gbenchmark/tools/compare.py benchmarks baseline.json contender.json
```
```
# From the downloaded "tools" folder
./compare.py benchmarks baseline.json contender.json
```

### CPU Scaling Warnings

Note: If you receive warnings about CPU scaling, you can change the CPU governor with:

```
sudo cpupower frequency-set --governor performance
```
```
sudo cpupower frequency-set --governor performance
```

The previous setting can be restored with:

```
sudo cpupower frequency-set --governor powersave
```
```
sudo cpupower frequency-set --governor powersave
```

0 comments on commit 33b37c5

Please sign in to comment.