python-attrs / attrs

Python Classes Without Boilerplate
https://www.attrs.org/
MIT License
5.3k stars 374 forks source link

Write specific benchmarks for CodSpeed #1306

Closed hynek closed 4 months ago

hynek commented 4 months ago

Just adding benchmarking to functional tests is a bit too noisy.

codspeed-hq[bot] commented 4 months ago

CodSpeed Performance Report

Merging #1306 will create unknown performance changes

Comparing simplify-benchmarks (d362335) with main (0a09c1a)

Summary

๐Ÿ†• 8 new benchmarks โ‰๏ธ 12 (๐Ÿ‘ 12) dropped benchmarks

Benchmarks breakdown

Benchmark main simplify-benchmarks Change
๐Ÿ†• test_create_frozen_class N/A 1.7 s N/A
๐Ÿ†• test_create_simple_class N/A 1.5 s N/A
๐Ÿ†• test_create_simple_class_make_class N/A 1.5 s N/A
๐Ÿ†• test_eq_equal N/A 1.1 ms N/A
๐Ÿ†• test_eq_unequal N/A 1.1 ms N/A
๐Ÿ†• test_hash N/A 1.2 ms N/A
๐Ÿ†• test_instantiate_no_defaults N/A 1.3 ms N/A
๐Ÿ†• test_instantiate_with_defaults N/A 1.3 ms N/A
๐Ÿ‘ test_asdict[C1Slots] 112 ยตs N/A N/A
๐Ÿ‘ test_asdict[C1] 124.3 ยตs N/A N/A
๐Ÿ‘ test_auto_exc[False-False] 3.5 ms N/A N/A
๐Ÿ‘ test_auto_exc[False-True] 3.5 ms N/A N/A
๐Ÿ‘ test_auto_exc[True-False] 3.6 ms N/A N/A
๐Ÿ‘ test_auto_exc[True-True] 3.6 ms N/A N/A
๐Ÿ‘ test_default_decorator 1.8 ms N/A N/A
๐Ÿ‘ test_fields[C2Slots] 139.2 ยตs N/A N/A
๐Ÿ‘ test_fields[C2] 151.6 ยตs N/A N/A
๐Ÿ‘ test_programmatic 17.5 ms N/A N/A
๐Ÿ‘ test_unsafe_hash[False] 1.4 ms N/A N/A
๐Ÿ‘ test_unsafe_hash[True] 1.5 ms N/A N/A