Skip to content

feat: add time scale measurement benches #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 7, 2025
Merged

Conversation

art049
Copy link
Member

@art049 art049 commented Mar 12, 2025

No description provided.

Copy link

codspeed-hq bot commented Mar 12, 2025

CodSpeed Instrumentation Performance Report

Merging #88 will degrade performances by 18.88%

Comparing time-scale-benches (4de9519) with main (16ef42c)

Summary

⚡ 2 improvements
❌ 9 regressions
✅ 152 untouched benchmarks
🆕 5 new benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
bench_array1[4] 125.3 ns 154.4 ns -18.88%
bench_array2[4] 125.3 ns 154.4 ns -18.88%
init_array[4] 125.3 ns 154.4 ns -18.88%
mut_borrow 866.7 ns 895.8 ns -3.26%
recursive[0] 211.1 ns 240.3 ns -12.14%
recursive[10] 903.3 ns 932.5 ns -3.13%
recursive[5] 291.1 ns 320.3 ns -9.11%
instant 343.9 ns 373.1 ns -7.82%
system_time 345.3 ns 374.4 ns -7.79%
instant 363.6 ns 334.4 ns +8.72%
system_time 363.6 ns 334.4 ns +8.72%
🆕 sleep_100ns N/A 566.1 ns N/A
🆕 sleep_100us N/A 536.9 ns N/A
🆕 sleep_1ms N/A 536.9 ns N/A
🆕 sleep_1ns N/A 536.9 ns N/A
🆕 sleep_1us N/A 536.9 ns N/A

Copy link

codspeed-hq bot commented Mar 12, 2025

CodSpeed Walltime Performance Report

Merging #88 will degrade performances by 47.51%

Comparing time-scale-benches (4de9519) with main (16ef42c)

Summary

⚡ 24 improvements
❌ 11 regressions
✅ 110 untouched benchmarks
🆕 5 new benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
build_vec 205 ns 212 ns -3.3%
large_drop 165.4 µs 180.4 µs -8.34%
large_setup 9 ns 13 ns -30.77%
from_elem[1024] 89 ns 82 ns +8.54%
from_elem[4096] 342 ns 328 ns +4.27%
from_elem[8192] 496 ns 481 ns +3.12%
from_elem_decimal[1024] 89 ns 82 ns +8.54%
bench_array1[4] 3.2 µs 3.9 µs -18.8%
bench_array2[4] 3.2 µs 3.9 µs -18.8%
init_array[4] 3.2 µs 3.9 µs -18.8%
recursive_memoized[BTreeMap<u64, u64>, 10] 4.1 µs 4 µs +3.6%
generate_combinations[5] 3.3 µs 3.2 µs +4.91%
generate_combinations[6] 1.4 µs 2.7 µs -47.51%
generate_combinations[7] 2.1 µs 2 µs +7.28%
generate_combinations[8] 3 µs 3.2 µs -4.87%
generate_combinations[9] 4.5 µs 4.2 µs +6.59%
generate_parentheses[3] 2.4 µs 2.3 µs +3.13%
generate_parentheses[5] 21.9 µs 20.8 µs +5.13%
graph_coloring[3] 2.5 µs 1.1 µs ×2.3
graph_coloring[5] 3.9 µs 4.4 µs -11.31%
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

@art049 art049 merged commit d223cd8 into main Apr 7, 2025
5 checks passed
@art049 art049 deleted the time-scale-benches branch April 7, 2025 07:27
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.

None yet

1 participant