Avatar for the CodSpeedHQ user
CodSpeedHQ
pytest-codspeed
Instrumentation
Wall Time
BlogDocsChangelog

chore: add sample benches from the documentation

#71Merged
Comparing
feat/add-codspeed-doc-test-bench
(
4f60a18
) with
master
(
253b1be
)
CodSpeed Performance Gauge
+2%
Improvements
1
Regressions
0
Untouched
46
New
10
Dropped
0
Ignored
53

Benchmarks

Improved

test_combination_lists[4-2]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_combination_lists[4-2]
CodSpeed Performance Gauge
+2%
30.8 µs
30.2 µs

New

test_sum_squares_fast
tests/benchmarks/test_bench_doc.py::test_sum_squares_fast
CodSpeed Performance Gauge
N/A
N/A
449.5 µs
test_sum_squares_slow
tests/benchmarks/test_bench_doc.py::test_sum_squares_slow
CodSpeed Performance Gauge
N/A
N/A
646.6 µs
test_count_even[count_even_fast]
tests/benchmarks/test_bench_misc.py::test_count_even[count_even_fast]
CodSpeed Performance Gauge
N/A
N/A
3 ms
test_count_even[count_even_slow]
tests/benchmarks/test_bench_misc.py::test_count_even[count_even_slow]
CodSpeed Performance Gauge
N/A
N/A
3.1 ms
test_sum_of_squares[sum_of_squares_for_loop_power]
tests/benchmarks/test_bench_misc.py::test_sum_of_squares[sum_of_squares_for_loop_power]
CodSpeed Performance Gauge
N/A
N/A
517 µs
test_sum_of_squares[sum_of_squares_for_loop_product]
tests/benchmarks/test_bench_misc.py::test_sum_of_squares[sum_of_squares_for_loop_product]
CodSpeed Performance Gauge
N/A
N/A
451.7 µs
test_sum_of_squares[sum_of_squares_sum_comprehension_power]
tests/benchmarks/test_bench_misc.py::test_sum_of_squares[sum_of_squares_sum_comprehension_power]
CodSpeed Performance Gauge
N/A
N/A
537.2 µs
test_sum_of_squares[sum_of_squares_sum_comprehension_product]
tests/benchmarks/test_bench_misc.py::test_sum_of_squares[sum_of_squares_sum_comprehension_product]
CodSpeed Performance Gauge
N/A
N/A
472.3 µs
test_sum_of_squares[sum_of_squares_sum_labmda_power]
tests/benchmarks/test_bench_misc.py::test_sum_of_squares[sum_of_squares_sum_labmda_power]
CodSpeed Performance Gauge
N/A
N/A
648.3 µs
test_sum_of_squares[sum_of_squares_sum_labmda_product]
tests/benchmarks/test_bench_misc.py::test_sum_of_squares[sum_of_squares_sum_labmda_product]
CodSpeed Performance Gauge
N/A
N/A
581.2 µs

Passed

test_iir_filter_process
tests/benchmarks/TheAlgorithms_bench/test_bench_audio_filters.py::test_iir_filter_process
CodSpeed Performance Gauge
0%
31.1 µs
31 µs
test_make_lowpass
tests/benchmarks/TheAlgorithms_bench/test_bench_audio_filters.py::test_make_lowpass
CodSpeed Performance Gauge
0%
46.8 µs
46.6 µs
test_generate_all_subsequences[sequence0]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_generate_all_subsequences[sequence0]
CodSpeed Performance Gauge
0%
93.7 µs
93.5 µs
test_generate_all_permutations[sequence1]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_generate_all_permutations[sequence1]
CodSpeed Performance Gauge
0%
104.1 µs
103.9 µs
test_n_queens_solve[board0]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_n_queens_solve[board0]
CodSpeed Performance Gauge
0%
3.8 ms
3.8 ms
test_generate_all_permutations[sequence0]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_generate_all_permutations[sequence0]
CodSpeed Performance Gauge
0%
104.2 µs
104.1 µs
test_make_bandpass
tests/benchmarks/TheAlgorithms_bench/test_bench_audio_filters.py::test_make_bandpass
CodSpeed Performance Gauge
0%
37.2 µs
37.2 µs
test_make_highpass
tests/benchmarks/TheAlgorithms_bench/test_bench_audio_filters.py::test_make_highpass
CodSpeed Performance Gauge
0%
38.1 µs
38.1 µs
test_generate_all_subsequences[sequence1]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_generate_all_subsequences[sequence1]
CodSpeed Performance Gauge
0%
61.7 µs
61.7 µs
test_is_safe[board0-1-1]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_is_safe[board0-1-1]
CodSpeed Performance Gauge
0%
42.5 µs
42.5 µs
test_make_allpass
tests/benchmarks/TheAlgorithms_bench/test_bench_audio_filters.py::test_make_allpass
CodSpeed Performance Gauge
0%
36.7 µs
36.7 µs
test_make_peak
tests/benchmarks/TheAlgorithms_bench/test_bench_audio_filters.py::test_make_peak
CodSpeed Performance Gauge
0%
40.4 µs
40.4 µs
test_recursive_fibo_20
tests/benchmarks/test_bench_fibo.py::test_recursive_fibo_20
CodSpeed Performance Gauge
0%
10.2 ms
10.2 ms
test_hamilton_cycle[graph0]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_hamilton_cycle[graph0]
CodSpeed Performance Gauge
0%
79.4 µs
79.5 µs
test_make_highshelf
tests/benchmarks/TheAlgorithms_bench/test_bench_audio_filters.py::test_make_highshelf
CodSpeed Performance Gauge
0%
42.5 µs
42.5 µs
test_match_word_pattern[aba-GraphTreesGraph]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_match_word_pattern[aba-GraphTreesGraph]
CodSpeed Performance Gauge
0%
193.5 µs
193.6 µs
test_depth_first_search[4]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_depth_first_search[4]
CodSpeed Performance Gauge
0%
83.3 µs
83.4 µs
test_solve_crossword[puzzle0-words0]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_solve_crossword[puzzle0-words0]
CodSpeed Performance Gauge
0%
21.7 µs
21.7 µs
test_minimax[scores0]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_minimax[scores0]
CodSpeed Performance Gauge
0%
39.1 µs
39.2 µs
test_noop_lambda
tests/benchmarks/test_bench_various_noop.py::test_noop_lambda
CodSpeed Performance Gauge
0%
17.2 µs
17.3 µs
test_noop_lambda_decorated
tests/benchmarks/test_bench_various_noop.py::test_noop_lambda_decorated
CodSpeed Performance Gauge
0%
18.8 µs
18.9 µs
test_recursive_fibo_10
tests/benchmarks/test_bench_fibo.py::test_recursive_fibo_10
CodSpeed Performance Gauge
0%
100.6 µs
100.8 µs
test_get_valid_pos[pos0-4]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_get_valid_pos[pos0-4]
CodSpeed Performance Gauge
0%
25 µs
25 µs
test_combination_lists[0-0]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_combination_lists[0-0]
CodSpeed Performance Gauge
0%
23.1 µs
23.1 µs
test_color[graph0-3]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_color[graph0-3]
CodSpeed Performance Gauge
0%
81 µs
81.2 µs
test_make_lowshelf
tests/benchmarks/TheAlgorithms_bench/test_bench_audio_filters.py::test_make_lowshelf
CodSpeed Performance Gauge
0%
42.6 µs
42.8 µs
test_solve_power_sum[13-2]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_solve_power_sum[13-2]
CodSpeed Performance Gauge
0%
32.1 µs
32.2 µs
test_sudoku[initial_grid0]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_sudoku[initial_grid0]
CodSpeed Performance Gauge
0%
34 µs
34.1 µs
test_generate_sum_of_subsets_soln[nums0-9]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_generate_sum_of_subsets_soln[nums0-9]
CodSpeed Performance Gauge
0%
71.9 µs
72.2 µs
test_generate_all_combinations[5-4]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_generate_all_combinations[5-4]
CodSpeed Performance Gauge
0%
42 µs
42.1 µs
test_open_knight_tour[1]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_open_knight_tour[1]
CodSpeed Performance Gauge
0%
33 µs
33.1 µs
test_generate_all_combinations[4-2]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_generate_all_combinations[4-2]
CodSpeed Performance Gauge
0%
36.3 µs
36.5 µs
test_is_complete[board0]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_is_complete[board0]
CodSpeed Performance Gauge
0%
23.5 µs
23.6 µs
test_generate_parenthesis[3]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_generate_parenthesis[3]
CodSpeed Performance Gauge
-1%
40.9 µs
41.1 µs
test_combination_lists[5-4]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_combination_lists[5-4]
CodSpeed Performance Gauge
-1%
28 µs
28.1 µs
test_iir_filter_set_coefficients[a_coeffs0-b_coeffs0]
tests/benchmarks/TheAlgorithms_bench/test_bench_audio_filters.py::test_iir_filter_set_coefficients[a_coeffs0-b_coeffs0]
CodSpeed Performance Gauge
-1%
15.5 µs
15.6 µs
test_solve_maze[maze0]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_solve_maze[maze0]
CodSpeed Performance Gauge
-1%
67.6 µs
68.1 µs
test_noop_pass_decorated
tests/benchmarks/test_bench_various_noop.py::test_noop_pass_decorated
CodSpeed Performance Gauge
-1%
14.3 µs
14.4 µs
test_combination_sum[candidates0-8]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_combination_sum[candidates0-8]
CodSpeed Performance Gauge
-1%
43 µs
43.3 µs
test_noop_ellipsis_decorated
tests/benchmarks/test_bench_various_noop.py::test_noop_ellipsis_decorated
CodSpeed Performance Gauge
-1%
14.1 µs
14.2 µs
test_word_exists[board0-ABCCED]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_word_exists[board0-ABCCED]
CodSpeed Performance Gauge
-1%
63.8 µs
64.2 µs
test_recursive_cached_fibo_10
tests/benchmarks/test_bench_fibo.py::test_recursive_cached_fibo_10
CodSpeed Performance Gauge
-1%
40.2 µs
40.5 µs
test_generate_all_combinations[0-0]
tests/benchmarks/TheAlgorithms_bench/test_bench_backtracking.py::test_generate_all_combinations[0-0]
CodSpeed Performance Gauge
-1%
18.2 µs
18.4 µs
test_iterative_fibo_10
tests/benchmarks/test_bench_fibo.py::test_iterative_fibo_10
CodSpeed Performance Gauge
-1%
21.1 µs
21.3 µs
test_recursive_cached_fibo_100
tests/benchmarks/test_bench_fibo.py::test_recursive_cached_fibo_100
CodSpeed Performance Gauge
-1%
199.9 µs
202.3 µs
test_noop_pass
tests/benchmarks/test_bench_various_noop.py::test_noop_pass
CodSpeed Performance Gauge
-1%
12.1 µs
12.3 µs

Ignored

test_array_alloc[100000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_array_alloc[100000]
CodSpeed Performance Gauge
0%
431.4 µs
431.6 µs
test_array_alloc[10000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_array_alloc[10000]
CodSpeed Performance Gauge
0%
59.8 µs
59.7 µs
test_array_alloc[1000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_array_alloc[1000]
CodSpeed Performance Gauge
-4%
22.1 µs
23 µs
test_array_alloc[100]Ignored
tests/benchmarks/test_bench_syscalls.py::test_array_alloc[100]
CodSpeed Performance Gauge
-1%
17.5 µs
17.7 µs
test_dup_fdIgnored
tests/benchmarks/test_bench_syscalls.py::test_dup_fd
CodSpeed Performance Gauge
0%
22.8 µs
22.8 µs
test_fs_read[1000000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_fs_read[1000000]
CodSpeed Performance Gauge
0%
28 µs
28.1 µs
test_fs_read[100000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_fs_read[100000]
CodSpeed Performance Gauge
0%
28.6 µs
28.8 µs
test_fs_read[10000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_fs_read[10000]
CodSpeed Performance Gauge
0%
28.6 µs
28.6 µs
test_fs_read[1000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_fs_read[1000]
CodSpeed Performance Gauge
-1%
15.8 µs
15.9 µs
test_fs_read[100]Ignored
tests/benchmarks/test_bench_syscalls.py::test_fs_read[100]
CodSpeed Performance Gauge
0%
13.7 µs
13.7 µs
test_fs_write[1000000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_fs_write[1000000]
CodSpeed Performance Gauge
0%
1.8 ms
1.8 ms
test_fs_write[100000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_fs_write[100000]
CodSpeed Performance Gauge
0%
208.3 µs
207.5 µs
test_fs_write[10000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_fs_write[10000]
CodSpeed Performance Gauge
0%
50.1 µs
50.1 µs
test_fs_write[1000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_fs_write[1000]
CodSpeed Performance Gauge
0%
32.8 µs
33 µs
test_fs_write[100]Ignored
tests/benchmarks/test_bench_syscalls.py::test_fs_write[100]
CodSpeed Performance Gauge
-1%
30.4 µs
30.7 µs
test_hostname_resolution[1.1.1.1]Ignored
tests/benchmarks/test_bench_syscalls.py::test_hostname_resolution[1.1.1.1]
CodSpeed Performance Gauge
0%
39.4 µs
39.5 µs
test_hostname_resolution[127.0.0.1]Ignored
tests/benchmarks/test_bench_syscalls.py::test_hostname_resolution[127.0.0.1]
CodSpeed Performance Gauge
0%
39.6 µs
39.7 µs
test_hostname_resolution[8.8.8.8]Ignored
tests/benchmarks/test_bench_syscalls.py::test_hostname_resolution[8.8.8.8]
CodSpeed Performance Gauge
0%
39.5 µs
39.5 µs
test_hostname_resolution[amazon.com]Ignored
tests/benchmarks/test_bench_syscalls.py::test_hostname_resolution[amazon.com]
CodSpeed Performance Gauge
0%
90.2 µs
90.4 µs
test_hostname_resolution[google.com]Ignored
tests/benchmarks/test_bench_syscalls.py::test_hostname_resolution[google.com]
CodSpeed Performance Gauge
+58%
112.1 µs
71.1 µs
test_hostname_resolution[localhost]Ignored
tests/benchmarks/test_bench_syscalls.py::test_hostname_resolution[localhost]
CodSpeed Performance Gauge
0%
76.5 µs
76.6 µs
test_mmap_operation[409600]Ignored
tests/benchmarks/test_bench_syscalls.py::test_mmap_operation[409600]
CodSpeed Performance Gauge
0%
744.7 µs
744.8 µs
test_mmap_operation[40960]Ignored
tests/benchmarks/test_bench_syscalls.py::test_mmap_operation[40960]
CodSpeed Performance Gauge
0%
101.4 µs
101.5 µs
test_mmap_operation[4096]Ignored
tests/benchmarks/test_bench_syscalls.py::test_mmap_operation[4096]
CodSpeed Performance Gauge
0%
36.4 µs
36.5 µs
test_multiprocessing_map[100000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_multiprocessing_map[100000]
CodSpeed Performance Gauge
-5%
78 ms
82.3 ms
test_multiprocessing_map[10000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_multiprocessing_map[10000]
CodSpeed Performance Gauge
+24%
12.5 ms
10.1 ms
test_multiprocessing_map[1000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_multiprocessing_map[1000]
CodSpeed Performance Gauge
-9%
4.1 ms
4.5 ms
test_multiprocessing_map[100]Ignored
tests/benchmarks/test_bench_syscalls.py::test_multiprocessing_map[100]
CodSpeed Performance Gauge
-12%
3.3 ms
3.8 ms
test_multiprocessing_map[10]Ignored
tests/benchmarks/test_bench_syscalls.py::test_multiprocessing_map[10]
CodSpeed Performance Gauge
-52%
3.6 ms
7.4 ms
test_open_close_fd[1000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_open_close_fd[1000]
CodSpeed Performance Gauge
-3%
1.3 ms
1.4 ms
test_open_close_fd[100]Ignored
tests/benchmarks/test_bench_syscalls.py::test_open_close_fd[100]
CodSpeed Performance Gauge
0%
133.6 µs
133.5 µs
test_open_close_fd[10]Ignored
tests/benchmarks/test_bench_syscalls.py::test_open_close_fd[10]
CodSpeed Performance Gauge
+2%
37.4 µs
36.6 µs
test_pipe_communication[10000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_pipe_communication[10000]
CodSpeed Performance Gauge
0%
41.5 µs
41.5 µs
test_pipe_communication[1000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_pipe_communication[1000]
CodSpeed Performance Gauge
0%
41.7 µs
41.5 µs
test_pipe_communication[100]Ignored
tests/benchmarks/test_bench_syscalls.py::test_pipe_communication[100]
CodSpeed Performance Gauge
0%
40.1 µs
40.2 µs
test_pipe_communication[10]Ignored
tests/benchmarks/test_bench_syscalls.py::test_pipe_communication[10]
CodSpeed Performance Gauge
0%
43.7 µs
43.6 µs
test_process_creation[cat /dev/null]Ignored
tests/benchmarks/test_bench_syscalls.py::test_process_creation[cat /dev/null]
CodSpeed Performance Gauge
0%
202.9 µs
203.3 µs
test_process_creation[echo hello]Ignored
tests/benchmarks/test_bench_syscalls.py::test_process_creation[echo hello]
CodSpeed Performance Gauge
0%
234.1 µs
235.1 µs
test_process_creation[ls -l]Ignored
tests/benchmarks/test_bench_syscalls.py::test_process_creation[ls -l]
CodSpeed Performance Gauge
-1%
204.9 µs
206.1 µs
test_sleep[0.001]Ignored
tests/benchmarks/test_bench_syscalls.py::test_sleep[0.001]
CodSpeed Performance Gauge
-1%
13.4 µs
13.5 µs
test_sleep[0.01]Ignored
tests/benchmarks/test_bench_syscalls.py::test_sleep[0.01]
CodSpeed Performance Gauge
-1%
13.3 µs
13.5 µs
test_sleep[0.05]Ignored
tests/benchmarks/test_bench_syscalls.py::test_sleep[0.05]
CodSpeed Performance Gauge
0%
13.4 µs
13.4 µs
test_sleep[0.1]Ignored
tests/benchmarks/test_bench_syscalls.py::test_sleep[0.1]
CodSpeed Performance Gauge
-1%
13.3 µs
13.4 µs
test_tcp_connection[1.1.1.1-53]Ignored
tests/benchmarks/test_bench_syscalls.py::test_tcp_connection[1.1.1.1-53]
CodSpeed Performance Gauge
0%
33.6 µs
33.8 µs
test_tcp_connection[8.8.8.8-53]Ignored
tests/benchmarks/test_bench_syscalls.py::test_tcp_connection[8.8.8.8-53]
CodSpeed Performance Gauge
0%
38.8 µs
38.9 µs
test_tcp_connection[google.com-443]Ignored
tests/benchmarks/test_bench_syscalls.py::test_tcp_connection[google.com-443]
CodSpeed Performance Gauge
+63%
106.8 µs
65.5 µs
test_tcp_connection[wikipedia.org-443]Ignored
tests/benchmarks/test_bench_syscalls.py::test_tcp_connection[wikipedia.org-443]
CodSpeed Performance Gauge
0%
65.6 µs
65.7 µs
test_threadpool_map[100000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_threadpool_map[100000]
CodSpeed Performance Gauge
0%
4.3 s
4.3 s
test_threadpool_map[10000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_threadpool_map[10000]
CodSpeed Performance Gauge
0%
419.1 ms
419.4 ms
test_threadpool_map[1000]Ignored
tests/benchmarks/test_bench_syscalls.py::test_threadpool_map[1000]
CodSpeed Performance Gauge
0%
41.1 ms
41.1 ms
test_threadpool_map[100]Ignored
tests/benchmarks/test_bench_syscalls.py::test_threadpool_map[100]
CodSpeed Performance Gauge
0%
4.6 ms
4.6 ms
test_threadpool_map[10]Ignored
tests/benchmarks/test_bench_syscalls.py::test_threadpool_map[10]
CodSpeed Performance Gauge
-6%
818.4 µs
874.9 µs
test_noop_ellipsisIgnored
tests/benchmarks/test_bench_various_noop.py::test_noop_ellipsis
CodSpeed Performance Gauge
0%
12.2 µs
12.2 µs

Commits

Click on a commit to change the comparison range
Base
master
253b1be
+2%
test: add benches from the documentation's getting started
4f60a18
1 month ago
by art049
Home Terms PrivacyDocs