hgrecco
pint
BlogDocsChangelog

explicitly implement `dtype` on `numpy` quantities

#1922Merged
Comparing
keewis:dtype
(
7f5db09
) with
master
(
0f24b6f
)
CodSpeed Performance Gauge
+1%
Untouched
439

Benchmarks

439 total
test_create_empty_registry
pint/testsuite/benchmarks/test_01_registry_creation.py
CodSpeed Performance Gauge
+12%
726 µs646.7 µs
test_parse_units[True-angstrom]
pint/testsuite/benchmarks/test_10_registry.py
CodSpeed Performance Gauge
+10%
52.5 µs47.7 µs
test_to_units_container_detached[True-meter]
pint/testsuite/benchmarks/test_10_registry.py
CodSpeed Performance Gauge
+7%
46.1 µs43 µs
test_getattr[True-angstrom]
pint/testsuite/benchmarks/test_10_registry.py
CodSpeed Performance Gauge
+7%
77.4 µs72.2 µs
test_getattr[True-millisecond]
pint/testsuite/benchmarks/test_10_registry.py
CodSpeed Performance Gauge
+7%
81.8 µs76.5 µs
test_to_units_container_detached[True-angstrom]
pint/testsuite/benchmarks/test_10_registry.py
CodSpeed Performance Gauge
+7%
46.4 µs43.5 µs
test_to_units_container_registry[True-meter]
pint/testsuite/benchmarks/test_10_registry.py
CodSpeed Performance Gauge
+7%
46.5 µs43.7 µs
test_op2[eq-keys16]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+6%
70.7 µs66.4 µs
test_to_units_container_registry[True-angstrom]
pint/testsuite/benchmarks/test_10_registry.py
CodSpeed Performance Gauge
+6%
46.5 µs43.7 µs
test_op2[mul-keys21]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+6%
120 µs112.8 µs
test_op2[mul-keys12]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+6%
117.7 µs110.8 µs
test_parse_units[True-meter]
pint/testsuite/benchmarks/test_10_registry.py
CodSpeed Performance Gauge
+6%
50.7 µs47.7 µs
test_parse_units[True-minute]
pint/testsuite/benchmarks/test_10_registry.py
CodSpeed Performance Gauge
+6%
50.8 µs47.8 µs
test_op2[eq-keys31]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+6%
69.9 µs65.8 µs
test_parse_units[True-second]
pint/testsuite/benchmarks/test_10_registry.py
CodSpeed Performance Gauge
+6%
50.9 µs48 µs
test_op2[truediv-keys15]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+5%
125.1 µs118.8 µs
test_op2[truediv-keys9]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+5%
128 µs121.7 µs
test_op1[neg-complex_meter]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+5%
72.2 µs68.9 µs
test_op2[mul-keys1]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+5%
120.4 µs115 µs
test_op2[mul-keys31]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+5%
119.9 µs114.6 µs
test_op2[truediv-keys7]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+5%
130.4 µs124.6 µs
test_op1[neg-int_meter]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+5%
68.4 µs65.4 µs
test_op2[add-keys0]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+5%
134.4 µs128.4 µs
test_op2[truediv-keys25]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+5%
127.6 µs122 µs
test_op2[truediv-keys35]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
121.2 µs116 µs

Commits

Click on a commit to change the comparison range
Base
master
0f24b6f
+0.75%
explicitly implement the `dtype` on `numpy` quantities
7f5db09
2 years ago
by keewis
© 2026 CodSpeed Technology
Home Terms Privacy Docs