hgrecco
pint
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Fix Unit.__eq__ with strings by parsing via registry
#2292
Comparing
andrewgsavage:fix/unit-eq-string-634
(
48f631d
) with
master
(
907619f
)
CodSpeed Performance Gauge
+1%
Untouched
448
Skipped
448
Unknown Walltime execution environment detected
Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data. For the most accurate results, we recommend using
CodSpeed Macro Runners
: bare-metal machines fine-tuned for performance measurement consistency.
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Untouched
Skipped
896 total
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[add-keys22]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+6%
33.4 µs
31.5 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[add-keys18]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+5%
32.2 µs
30.6 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[eq-keys3]
pint/testsuite/benchmarks/test_30_numpy.py
CodSpeed Performance Gauge
+5%
8.1 µs
7.7 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[mul-keys14]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
12.6 µs
12.1 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[sub-keys10]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
32.5 µs
31.2 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[less-keys2]
pint/testsuite/benchmarks/test_30_numpy.py
CodSpeed Performance Gauge
+4%
48 µs
46 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[truediv-keys34]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
13.5 µs
12.9 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[add-keys6]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
32 µs
30.8 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[sub-keys16]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
11.6 µs
11.2 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op1[neg-complex_kilometer]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
4.6 µs
4.4 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[add-keys17]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
32.4 µs
31.2 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_create_default_registry_use_cache
pint/testsuite/benchmarks/test_05_registry_creation.py
CodSpeed Performance Gauge
+4%
15.3 ms
14.8 ms
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[eq-keys20]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
14.9 µs
14.3 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_convert_from_uc[False-key0]
pint/testsuite/benchmarks/test_10_registry.py
CodSpeed Performance Gauge
+4%
9.2 µs
8.8 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[sub-keys24]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+4%
11.6 µs
11.2 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_wrapper_nonstrict[float_meter]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
2.8 µs
2.7 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[sub-keys5]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
32 µs
31 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op1[neg-int_meter]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
4.6 µs
4.4 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op1[neg-float_kilometer]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
4.6 µs
4.5 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[add-keys20]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
32.1 µs
31.1 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op1[neg-float_meter]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
4.6 µs
4.5 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[sub-keys22]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
32 µs
31 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_build_by_mul[int]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
5.4 µs
5.2 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[add0-keys1]
pint/testsuite/benchmarks/test_30_numpy.py
CodSpeed Performance Gauge
+3%
36.7 µs
35.5 µs
Uses the
Wall Time instrument
to collect wall time performance metrics.
test_op2[add-keys11]
pint/testsuite/benchmarks/test_20_quantity.py
CodSpeed Performance Gauge
+3%
11.7 µs
11.4 µs
1
2
3
4
5
...
36
Commits
Click on a commit to change the comparison range
Base
master
907619f
+0.6%
Fix Unit.__eq__ with strings by parsing via registry (gh-634)
d62ef81
4 days ago
by andrewgsavage
+0.34%
Use str comparison first, fall back to registry parse for Unit.__eq__ string
48f631d
4 days ago
by andrewgsavage
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs