Skip to content

Latest commit

 

History

History
108 lines (104 loc) · 6.52 KB

summary-microbenchmarks.md

File metadata and controls

108 lines (104 loc) · 6.52 KB

Mypyc benchmark summary (microbenchmarks)

Note: Microbenchmarks don't reflect real-world performance and can be noisy. They are mostly used for identifying bottlenecks, and detecting major performance improvements or regressions.

Performance is relative to interpreted Python.

Environment: CPython 3.8.10, Ubuntu 20.04.2 LTS and Intel Core i5-1145G7 (64-bit).

Benchmark Current perf Change in 3 months
enums 77.25x
min_max_pair 63.04x
attrs_attr_access 49.44x
dataclass_attr_access 48.63x
super_method_alt 46.95x
attrs_method 36.66x
dataclass_method 36.26x
super_method 35.20x
bytes_indexing 33.70x +23.2%
int_to_float 32.00x
int_bitwise_ops 25.72x
sum_tree_singledispatch 20.24x
unpack_namedtuple 16.16x
alloc_short_lived_simple 15.07x
alloc_short_lived_linked 14.44x
tuple_from_iterable 13.96x
int_list 13.66x
str_call 10.57x
get_namedtuple_item 10.38x
tuple_equality 10.04x
sieve 9.77x
float_abs 9.31x
matrix_multiply 9.13x
multiple_assignment 8.33x
nested_func_escape 7.49x
list_comprehension 6.95x
dict_clear 6.77x
nested_func 6.48x
list_append_small 6.21x
list_for_reversed 5.89x
list_from_tuple 4.94x
list_insert 4.80x
method_object 4.78x
dict_to_list 4.49x
list_append_large 4.40x
bytes_format 4.39x
str_format 4.39x
bytes_slicing 4.31x
ord_builtin 4.17x +114.1%
bytes_call 3.98x
dict_set_default 3.84x
generators 3.78x
alloc_long_lived_linked 3.69x
str_slicing 3.67x
in_tuple 3.63x
set_literal_iteration 3.58x
in_list 3.38x
list_index 3.11x
alloc_long_lived_simple 3.05x
tuple_slicing 3.02x
int_divmod 2.93x
bytes_concat 2.77x
dict_call_generator 2.69x
dict_iteration 2.61x
encode_decode 2.61x +28.3%
str_methods 2.54x
list_slicing 2.39x
str_to_float 2.26x
list_remove 2.19x
list_concatenate 2.13x
map_builtin 2.04x
list_add_in_place 1.95x
dict_copy 1.93x
split_and_join 1.87x
list_from_range 1.85x
dict_del_item 1.84x
sorted_with_key 1.80x
dict_call_keywords 1.73x
positional_args_from_interpreted 1.67x
readline 1.67x
call_method_from_interpreted 1.66x
list_copy 1.65x
bytes_split_and_join 1.57x
call_type_from_interpreted 1.56x
str_searching 1.55x
create_attrs 1.52x
keyword_args_from_interpreted 1.51x
create_dataclass 1.47x
read_write_chars 1.45x
in_set 1.44x
bytes_methods 1.40x
int_long_bitwise_ops 1.34x
min_max_sequence 1.31x
str_methods_2 1.30x
list_equality 1.27x
bytes_searching 1.20x
create_namedtuple 1.19x
read_write_small_files 1.19x
attrs_as_dict_key 1.15x
read_write_text 1.11x
dataclass_as_dict_key 1.04x
access_attr_from_interpreted 1.02x
read_write_close 1.01x
read_write_binary_chunks 1.00x
read_write_binary 0.92x
catch_exceptions 0.66x