Skip to content

chore: add sample benches from the documentation#71

Merged
art049 merged 2 commits into
masterfrom
feat/add-codspeed-doc-test-bench
Feb 11, 2025
Merged

chore: add sample benches from the documentation#71
art049 merged 2 commits into
masterfrom
feat/add-codspeed-doc-test-bench

Conversation

@art049
Copy link
Copy Markdown
Member

@art049 art049 commented Feb 6, 2025

No description provided.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Feb 6, 2025

CodSpeed Instrumentation Performance Report

Merging #71 will improve performances by 2.18%

Comparing feat/add-codspeed-doc-test-bench (4f60a18) with master (253b1be)

Summary

⚡ 1 improvements
✅ 46 untouched benchmarks
🆕 10 new benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
test_combination_lists[4-2] 30.8 µs 30.2 µs +2.18%
🆕 test_sum_squares_fast N/A 449.5 µs N/A
🆕 test_sum_squares_slow N/A 646.6 µs N/A
🆕 test_count_even[count_even_fast] N/A 3 ms N/A
🆕 test_count_even[count_even_slow] N/A 3.1 ms N/A
🆕 test_sum_of_squares[sum_of_squares_for_loop_power] N/A 517 µs N/A
🆕 test_sum_of_squares[sum_of_squares_for_loop_product] N/A 451.7 µs N/A
🆕 test_sum_of_squares[sum_of_squares_sum_comprehension_power] N/A 537.2 µs N/A
🆕 test_sum_of_squares[sum_of_squares_sum_comprehension_product] N/A 472.3 µs N/A
🆕 test_sum_of_squares[sum_of_squares_sum_labmda_power] N/A 648.3 µs N/A
🆕 test_sum_of_squares[sum_of_squares_sum_labmda_product] N/A 581.2 µs N/A

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Feb 6, 2025

CodSpeed Walltime Performance Report

Merging #71 will degrade performances by 4.94%

Comparing feat/add-codspeed-doc-test-bench (4f60a18) with master (253b1be)

Summary

⚡ 11 improvements
❌ 5 regressions
✅ 31 untouched benchmarks
🆕 10 new benchmarks

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

Benchmarks breakdown

Benchmark BASE HEAD Change
test_iir_filter_set_coefficients[a_coeffs0-b_coeffs0] 634.2 ns 591.7 ns +7.18%
test_make_bandpass 4.9 µs 4.8 µs +2.06%
test_combination_lists[0-0] 1.6 µs 1.5 µs +4.45%
test_combination_lists[4-2] 3.3 µs 3.2 µs +2.06%
test_combination_lists[5-4] 3 µs 3.2 µs -4.94%
test_depth_first_search[4] 27.9 µs 29.4 µs -4.89%
test_generate_all_combinations[0-0] 889.4 ns 822.1 ns +8.19%
test_generate_all_combinations[5-4] 8 µs 7.6 µs +5.37%
test_generate_all_subsequences[sequence1] 92.2 µs 90.2 µs +2.15%
test_generate_sum_of_subsets_soln[nums0-9] 20.4 µs 20.8 µs -2.09%
test_get_valid_pos[pos0-4] 2.5 µs 2.4 µs +2.08%
test_is_safe[board0-1-1] 9.2 µs 9.5 µs -3.22%
test_solve_crossword[puzzle0-words0] 1.9 µs 1.8 µs +2.78%
test_solve_power_sum[13-2] 5 µs 5.2 µs -4.03%
test_word_exists[board0-ABCCED] 15 µs 14.6 µs +2.75%
🆕 test_sum_squares_fast N/A 154 µs N/A
🆕 test_sum_squares_slow N/A 274.1 µs N/A
test_iterative_fibo_10 994 ns 931.4 ns +6.73%
🆕 test_count_even[count_even_fast] N/A 1.3 ms N/A
🆕 test_count_even[count_even_slow] N/A 1.3 ms N/A
... ... ... ... ...

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

@art049 art049 force-pushed the feat/add-codspeed-doc-test-bench branch from 4e0d3cf to 4f60a18 Compare February 7, 2025 10:54
@art049 art049 merged commit 4f60a18 into master Feb 11, 2025
@art049 art049 deleted the feat/add-codspeed-doc-test-bench branch February 11, 2025 14:01
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