Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Rename benchmark labels
  • Loading branch information
arhadthedev committed Jul 7, 2022
commit aa267019cb9c7a37bb525f13bd7350603dc8544e
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
def benchmark_pprint(runner):
# Support CPython before 3.10 and non-CPython implementations
if hasattr(p, '_safe_repr'):
runner.bench_func('_safe_repr', p._safe_repr, printable, {}, None, 0)
runner.bench_func('pformat', p.pformat, printable)
runner.bench_func('pprint_safe_repr', p._safe_repr, printable,
{}, None, 0)
runner.bench_func('pprint_pformat', p.pformat, printable)


if __name__ == "__main__":
Expand Down