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

Update --table example #178

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions doc/analyze.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,15 @@ two-sample, two-tailed t-test

Render a table using ``--table`` option::

$ python3 -m pyperf compare_to py36.json py38.json --table
+-----------+---------+------------------------------+
| Benchmark | py36 | py38 |
+===========+=========+==============================+
| timeit | 4.70 us | 4.22 us: 1.11x faster (-10%) |
+-----------+---------+------------------------------+
$ python3 -m pyperf compare_to mult_list_py36.json mult_list_py38.json --table
+----------------+----------------+-----------------------+
| Benchmark | mult_list_py36 | mult_list_py38 |
+================+================+=======================+
| [1,2]*1000 | 3.70 us | 3.18 us: 1.16x faster |
+----------------+----------------+-----------------------+
| [1,2,3]*1000 | 4.61 us | 4.17 us: 1.11x faster |
+----------------+----------------+-----------------------+
| Geometric mean | (ref) | 1.09x faster |
+----------------+----------------+-----------------------+

Benchmark hidden because not significant (1): [1]*1000
Loading