Skip to content

Commit

Permalink
Update --table example
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Apr 10, 2024
1 parent a128ab1 commit 06afb33
Showing 1 changed file with 12 additions and 6 deletions.
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

0 comments on commit 06afb33

Please sign in to comment.