Avatar for the Quantinuum user
Quantinuum
hugr
BlogDocsChangelog

perf!: remove bound-caching from Type, do in SumType::General instead

#3022
Comparing
acl/boundless_type
(
4ceb59e
) with
acl/type_wraps_term
(
80f1934
)
CodSpeed Performance Gauge
+20%
Improvement
1
Untouched
28
Ignored
7
Skipped
6

Benchmarks

42 total
construction
hugr/benches/benchmarks/types.rs::benches::bench_construction::types
CodSpeed Performance Gauge
+20%
20.4 µs17.1 µs
insert_view_forest
hugr/benches/benchmarks/hugr.rs::benches::bench_insertion::insertion
CodSpeed Performance Gauge
+6%
44.7 µs42.1 µs
big_hugr_roundtrip/capnp[1048576]
hugr/benches/benchmarks/hugr.rs::benches::bench_big_hugr_serialization
CodSpeed Performance Gauge
+4%
11.9 ms11.5 ms
circuit_roundtrip/capnp[1000]
hugr/benches/benchmarks/hugr.rs::benches::bench_serialization
CodSpeed Performance Gauge
+2%
82.8 ms81.1 ms
circuit_roundtrip/capnp[100]
hugr/benches/benchmarks/hugr.rs::benches::bench_serialization
CodSpeed Performance Gauge
+2%
9.3 ms9.1 ms
circuit_roundtrip/json[100]
hugr/benches/benchmarks/hugr.rs::benches::bench_serialization
CodSpeed Performance Gauge
+2%
19.8 ms19.4 ms
circuit_serialize/json[1]
hugr/benches/benchmarks/hugr.rs::benches::bench_serialization
CodSpeed Performance Gauge
+2%
83.3 µs82 µs
circuit_roundtrip/json[1000]
hugr/benches/benchmarks/hugr.rs::benches::bench_serialization
CodSpeed Performance Gauge
+2%
206.7 ms203.6 ms
circuit_roundtrip/json[10]
hugr/benches/benchmarks/hugr.rs::benches::bench_serialization
CodSpeed Performance Gauge
+1%
2.2 ms2.1 ms
insert_hugr
hugr/benches/benchmarks/hugr.rs::benches::bench_insertion::insertion
CodSpeed Performance Gauge
+1%
54.6 µs54 µs
insert_from_view
hugr/benches/benchmarks/hugr.rs::benches::bench_insertion::insertion
CodSpeed Performance Gauge
+1%
42.1 µs41.8 µs
circuit_serialize/json[100]
hugr/benches/benchmarks/hugr.rs::benches::bench_serialization
CodSpeed Performance Gauge
+1%
3 ms3 ms
circuit_roundtrip/json[1]
hugr/benches/benchmarks/hugr.rs::benches::bench_serialization
CodSpeed Performance Gauge
+1%
411.9 µs409.8 µs
circuit_serialize/json[0]
hugr/benches/benchmarks/hugr.rs::benches::bench_serialization
CodSpeed Performance Gauge
0%
39.5 µs39.3 µs
insert_forest
hugr/benches/benchmarks/hugr.rs::benches::bench_insertion::insertion
CodSpeed Performance Gauge
0%
49.2 µs49 µs
simple_cfg_serialize/json
hugr/benches/benchmarks/hugr.rs::benches::bench_serialization
CodSpeed Performance Gauge
0%
400.2 µs398.8 µs
circuit_serialize/json[1000]
hugr/benches/benchmarks/hugr.rs::benches::bench_serialization
CodSpeed Performance Gauge
0%
29.7 ms29.6 ms
circuit_serialize/json[10]
hugr/benches/benchmarks/hugr.rs::benches::bench_serialization
CodSpeed Performance Gauge
0%
356.6 µs355.8 µs
big_hugr_roundtrip/capnp[1024]
hugr/benches/benchmarks/hugr.rs::benches::bench_big_hugr_serialization
CodSpeed Performance Gauge
0%
1 ms1 ms
big_hugr_roundtrip/json[1024]
hugr/benches/benchmarks/hugr.rs::benches::bench_big_hugr_serialization
CodSpeed Performance Gauge
0%
179.8 µs179.5 µs
multinode_subgraph[1000]
hugr/benches/benchmarks/subgraph.rs::benches::bench_multinode_subgraph
CodSpeed Performance Gauge
0%
14.6 ms14.6 ms
multinode_subgraph[100]
hugr/benches/benchmarks/subgraph.rs::benches::bench_multinode_subgraph
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
simple_cfg
hugr/benches/benchmarks/hugr.rs::benches::bench_builder::builder
CodSpeed Performance Gauge
0%
172.6 µs172.6 µs
simple_dfg
hugr/benches/benchmarks/hugr.rs::benches::bench_builder::builder
CodSpeed Performance Gauge
0%
59.6 µs59.7 µs
multinode_subgraph[10]
hugr/benches/benchmarks/subgraph.rs::benches::bench_multinode_subgraph
CodSpeed Performance Gauge
0%
138.6 µs139 µs

Commits

Click on a commit to change the comparison range
Base
acl/type_wraps_term
80f1934
-30.66%
Don't cache bound in Type
168c385
10 days ago
by acl-cqc
+48.32%
clippy
1f97a4d
10 days ago
by acl-cqc
+1.93%
update hugr-llvm snapshots
4ceb59e
10 days ago
by acl-cqc
© 2026 CodSpeed Technology
Home Terms Privacy Docs