Author vstinner
Recipients brett.cannon, florin.papa, pitrou, vstinner
Date 2015-11-25.10:23:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448447023.2.0.0858235389828.issue25721@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for your bug report.

I fixed the issue differently, by adding a base class to benchmark result classes. I also implemented the format output format for pybench.

By the way, perf.py badly handles errors :-/ CSV output and table output fail to handle errors.

pybench output with my change:
*******************
$ ./perf.py -f -r -b pybench python2.7 python2.7 
(...)

### pybench ###
Min: 285 -> 284: 1.00x faster
Avg: 289 -> 292: 1.01x slower


$ ./perf.py -f --csv=pybench.csv -r -b pybench python2.7 python2.7 
(...)

### pybench ###
Min: 283 -> 286: 1.01x slower
Avg: 287 -> 290: 1.01x slower


$ cat pybench.csv
Benchmark,Base,Changed
pybench,283.000000,286.000000


$ ./perf.py -f -O table -r -b pybench python2.7 python2.7 
(...)
+-----------+-----------+-----------+--------------+
| Benchmark | python2.7 | python2.7 | Change       |
+===========+===========+===========+==============+
| pybench   | 288.0     | 289.0     | 1.00x slower |
+-----------+-----------+-----------+--------------+
*******************
History
Date User Action Args
2015-11-25 10:23:43vstinnersetrecipients: + vstinner, brett.cannon, pitrou, florin.papa
2015-11-25 10:23:43vstinnersetmessageid: <1448447023.2.0.0858235389828.issue25721@psf.upfronthosting.co.za>
2015-11-25 10:23:43vstinnerlinkissue25721 messages
2015-11-25 10:23:42vstinnercreate