Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A report that compares runs #50

Open
marcrasi opened this issue Jun 22, 2020 · 1 comment
Open

A report that compares runs #50

marcrasi opened this issue Jun 22, 2020 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@marcrasi
Copy link
Contributor

It would be useful to get a report of the relative difference between two runs.

Some existing tools:

  • google/benchmark's compare.py. (I tried running this on the json from swift-benchmark but it didn't print anything. I guess the format is a bit different.)
  • The Swift compiler's benchmark report. Example.
@shabalind
Copy link
Collaborator

I've had at a look at google/benchmark's compare.py and it looks like it's not flexible enough to support our user-defined columns.

So we should do our own comparison script:

  • It takes a list of json or csv files that represent individual runs. First one is used as a baseline.
  • It takes an optional list of columns to compare --columns column1,column2,....
  • It takes an optional --format $format where format is console, json, csv.

The console output will look like:

$ compare before.json after.json --columns time

name   column  before  after   relative
---------------------------------------
bench1 time    100 ns  200 ns  2.0x

It would probably nice to do it in Swift as well, because we can reuse table and format reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants