Skip to content

feat: Support decimal places in rounding - #2283

Draft
maximilianruesch wants to merge 11 commits into
mainfrom
mr/feat/rounding
Draft

maximilianruesch wants to merge 11 commits into
mainfrom
mr/feat/rounding

Conversation

@maximilianruesch

@maximilianruesch maximilianruesch commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Closes #1561

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectguppylang
Branchmr/feat/rounding
TestbedLinux
Click to view all benchmark results
Benchmarkhugr_bytesBenchmark Result
bytes x 1e3
(Result Δ%)
Upper Boundary
bytes x 1e3
(Limit %)
hugr_nodesBenchmark Result
nodes
(Result Δ%)
Upper Boundary
nodes
(Limit %)
tests/benchmarks/test_big_array.py::test_big_array_compile📈 view plot
🚷 view threshold
62.10 x 1e3
(0.00%)Baseline: 62.10 x 1e3
62.72 x 1e3
(99.01%)
📈 view plot
🚷 view threshold
4,585.00
(0.00%)Baseline: 4,585.00
4,630.85
(99.01%)
tests/benchmarks/test_ctrl_flow.py::test_many_ctrl_flow_compile📈 view plot
🚷 view threshold
27.80 x 1e3
(0.00%)Baseline: 27.80 x 1e3
28.08 x 1e3
(99.01%)
📈 view plot
🚷 view threshold
1,301.00
(0.00%)Baseline: 1,301.00
1,314.01
(99.01%)
tests/benchmarks/test_queue_push_pop.py::test_queue_push_benchmark_compile📈 view plot
🚷 view threshold
7.24 x 1e3
(0.00%)Baseline: 7.24 x 1e3
7.32 x 1e3
(99.01%)
📈 view plot
🚷 view threshold
310.00
(0.00%)Baseline: 310.00
313.10
(99.01%)
tests/benchmarks/test_queue_push_pop.py::test_queue_push_pop_benchmark_compile📈 view plot
🚷 view threshold
9.86 x 1e3
(0.00%)Baseline: 9.86 x 1e3
9.96 x 1e3
(99.01%)
📈 view plot
🚷 view threshold
411.00
(0.00%)Baseline: 411.00
415.11
(99.01%)
🐰 View full continuous benchmarking report in Bencher

@codspeed-hq

codspeed-hq Bot commented Sep 7, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 11 untouched benchmarks


Comparing mr/feat/rounding (054b890) with mr/perf/upgrade-toolchain (e09ea7c)

Open in CodSpeed

@maximilianruesch

Copy link
Copy Markdown
Collaborator Author

Hmm, I should probably pull the upgrade out of this PR

@maximilianruesch
maximilianruesch changed the base branch from main to mr/perf/upgrade-toolchain September 7, 2026 10:31
Base automatically changed from mr/perf/upgrade-toolchain to main September 7, 2026 16:02
@maximilianruesch maximilianruesch changed the title feat: Support decimal places in rounding and tie rounding to even feat: Support decimal places in rounding Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Support decimal places in Guppy round for parity with Python round

1 participant