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

Implement 'faster on x% of runs' #118

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sweeneyde
Copy link

Based on #22:

Example:

py -m pyperf compare_to ..\cpython\floatbench.json ..\multiply\floatbench.json --table --win_percentage
+----------------+----------------------------+-----------------------------------------------+
| Benchmark      | ..\cpython\floatbench.json | ..\multiply\floatbench.json                   |
+================+============================+===============================================+
| int: x*x       | 28.5 ns                    | 27.7 ns: 1.03x faster (faster on 88% of runs) |
+----------------+----------------------------+-----------------------------------------------+
| float: x*x     | 28.4 ns                    | 27.9 ns: 1.02x faster (faster on 80% of runs) |
+----------------+----------------------------+-----------------------------------------------+
| int: x*...*x   | 262 ms                     | 220 ms: 1.19x faster (faster on 100% of runs) |
+----------------+----------------------------+-----------------------------------------------+
| float: x*...*x | 260 ms                     | 253 ms: 1.03x faster (faster on 90% of runs)  |
+----------------+----------------------------+-----------------------------------------------+
| Geometric mean | (ref)                      | 1.06x faster                                  |
+----------------+----------------------------+-----------------------------------------------+

I've not worked with this code before, so let me know what needs fixing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant