Suite of Python microbenchmarks written for CPython
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
pybench
.gitignore
.travis.yml
COPYING
README.rst
TODO.rst
bench_call_method.py
bench_call_method_slots.py
bench_call_method_unknown.py
bench_call_simple.py
bench_fastcall_builtins.py
bench_fastcall_bytes_join.py
bench_fastcall_c_method.py
bench_fastcall_call_pyinit_kwargs.py
bench_fastcall_deque_methods.py
bench_fastcall_dict_methods.py
bench_fastcall_partial.py
bench_fastcall_slots.py
bench_fastcall_str_methods.py
bench_fastcall_struct.py
bench_ignore_warn.py
bench_logging_silent.py
bench_str_format.py
bench_str_format_keywords.py
run_tests.py
setup.py
tox.ini

README.rst

pymicrobench

Build status of pymicrobench on Travis CI

My collection of Python microbenchmarks written for CPython.

Benchmarks were written to make sure that a change makes CPython faster.

The code is distributed under the MIT license: see the COPYING file.

Benchmarks were written in 2016, and so mostly for CPython 3.6.

The Python perf module is needed by benchmarks. Install perf using:

python3 -m pip install -U perf

Read perf documentation to see how to run stable benchmarks (ex: tune your system for benchmarking).