Skip to content
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

feat: add time scale measurement benches #88

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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 (b166c4d) with main (3cd8045)

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] 154.4 ns 183.6 ns -15.89%
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 536.9 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 566.1 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.94%

Comparing time-scale-benches (b166c4d) with main (3cd8045)

Summary

⚡ 13 improvements
❌ 8 regressions
✅ 124 untouched benchmarks
🆕 5 new benchmarks

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

Benchmarks breakdown

Benchmark BASE HEAD Change
build_vec 204 ns 170 ns +20%
large_drop 207.1 µs 183.9 µs +12.6%
iter_with_setup 37 ns 39 ns -5.13%
from_elem[2048] 251 ns 243 ns +3.29%
from_elem[4096] 331 ns 318 ns +4.09%
from_elem_decimal[2048] 260 ns 245 ns +6.12%
bench_array1[4] 3.2 µs 3.9 µs -18.8%
bench_array2[4] 3.2 µs 3.9 µs -18.8%
init_array[1000] 3.6 µs 6.9 µs -47.9%
init_array[4] 3.2 µs 3.9 µs -18.8%
recursive_memoized[BTreeMap<u64, u64>, 10] 4.1 µs 4 µs +3.01%
generate_combinations[8] 3.1 µs 3 µs +3.24%
generate_combinations[9] 4.4 µs 4.2 µs +4.29%
graph_coloring[5] 4.3 µs 4 µs +6.59%
permutations[4] 2.4 µs 2.3 µs +3.11%
permutations[6] 66 µs 68.3 µs -3.39%
rat_in_maze[6] 2.9 µs 5.5 µs -47.94%
rat_in_maze[8] 3.8 µs 3.7 µs +4.27%
add_two_integers[(0, 0)] 5.6 µs 5.9 µs -5.27%
generate_gray_code[1] 4.3 µs 4.2 µs +3.15%
... ... ... ... ...

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

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.

1 participant