python-attrs
attrs
BlogDocsChangelog

Add benchmarks for asdict and astuple

#1464Merged
Comparing
asdict-bench
(
e5147ce
) with
main
(
19175d9
)
CodSpeed Performance Gauge
0%
Untouched
8
New
4

Benchmarks

New

test_asdict_atomic
bench/test_benchmarks.py
CodSpeed Performance Gauge
N/A
N/A16.3 ms
test_asdict_complicated
bench/test_benchmarks.py
CodSpeed Performance Gauge
N/A
N/A13.8 ms
test_astuple_atomic
bench/test_benchmarks.py
CodSpeed Performance Gauge
N/A
N/A15.7 ms
test_astuple_complicated
bench/test_benchmarks.py
CodSpeed Performance Gauge
N/A
N/A13.1 ms

Passed

test_instantiate_with_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
+1%
1.3 ms1.3 ms
test_instantiate_no_defaults
bench/test_benchmarks.py
CodSpeed Performance Gauge
+1%
1.2 ms1.2 ms
test_eq_equal
bench/test_benchmarks.py
CodSpeed Performance Gauge
+1%
885.7 µs878.3 µs
test_eq_unequal
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
675.7 µs673.7 µs
test_hash
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_create_simple_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.1 s1.1 s
test_create_frozen_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1.3 s1.3 s
test_create_simple_class_make_class
bench/test_benchmarks.py
CodSpeed Performance Gauge
0%
1 s1 s

Commits

Click on a commit to change the comparison range
Base
main
19175d9
+0.32%
Add benchmarks for asdict and astuple In preparation for #1463 Co-authored-by: Pieter Eendebak <883786+eendebakpt@users.noreply.github.com>
e5147ce
1 month ago
by hynek
© 2025 CodSpeed Technology
Home Terms Privacy Docs