Avatar for the hgrecco user
hgrecco
pint
BlogDocsChangelog

refactor: improve pint-convert

#2136Merged
Comparing
_pint_convert
(
4e98a5c
) with
master
(
4d354c9
)
CodSpeed Performance Gauge
+1%
Untouched
447

Benchmarks

447 total
test_op2[add-keys16]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+5%
121.3 µs115.4 µs
test_op2[add-keys13]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+5%
232.1 µs221.1 µs
test_op1[truth-float_kilometer]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+5%
37 µs35.4 µs
test_op1[truth-complex_meter]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+5%
36.2 µs34.6 µs
test_op1[truth-float_meter]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+5%
37.3 µs35.7 µs
test_wrapper_ret[float_meter]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
163.2 µs156.2 µs
test_op1[truth-int_meter]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
37.4 µs35.8 µs
test_op1[truth-complex_kilometer]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
38.3 µs36.7 µs
test_op1[truth-int_kilometer]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
37.1 µs35.6 µs
test_op2[truediv-keys21]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
138.2 µs132.7 µs
test_op2[truediv-keys33]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
138.7 µs133.2 µs
test_op2[add-keys22]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
224.4 µs215.5 µs
test_op2[mul-keys7]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
133.6 µs128.8 µs
test_op2[truediv-keys32]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
139.2 µs134.7 µs
test_op2[eq-keys1]
pint/testsuite/benchmarks/test_30_numpy.py
CodSpeed Performance Gauge
+3%
196.3 µs190 µs
test_op2[truediv-keys29]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
138.8 µs134.3 µs
test_op2[add-keys32]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
225.1 µs218.1 µs
test_op2[add-keys8]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
224.3 µs217.5 µs
test_op2[add0-keys2]
pint/testsuite/benchmarks/test_30_numpy.py
CodSpeed Performance Gauge
+3%
254 µs246.4 µs
test_op2[add-keys3]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
222.4 µs216 µs
test_op2[sub-keys6]
pint/testsuite/benchmarks/test_30_numpy.py
CodSpeed Performance Gauge
+3%
274.8 µs267 µs
test_wrapper[float_meter]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
124.2 µs120.8 µs
test_op2[truediv-keys19]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
142.2 µs138.3 µs
test_wrapper[int_meter]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
130 µs126.7 µs
test_op2[sub-keys1]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
223.5 µs217.9 µs

Commits

Click on a commit to change the comparison range
Base
master
4d354c9
+0.67%
refactor: improve pint-convert
4e98a5c
1 year ago
by hgrecco
© 2026 CodSpeed Technology
Home Terms Privacy Docs