Skip to content

Implement async benchmark - #101

Open
Dreamsorcerer wants to merge 23 commits into
CodSpeedHQ:masterfrom
Dreamsorcerer:patch-2
Open

Implement async benchmark#101
Dreamsorcerer wants to merge 23 commits into
CodSpeedHQ:masterfrom
Dreamsorcerer:patch-2

Conversation

@Dreamsorcerer

@DreamsorcererDreamsorcerer commented Dec 15, 2025

Copy link
Copy Markdown
Contributor

Allows async functions to be used with await benchmark(...).

Fix#100

Comment threadsrc/pytest_codspeed/plugin.py Outdated
@codspeed-hq

codspeed-hqBot commented Dec 15, 2025

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #101 will degrade performance by 21.5%

Comparing Dreamsorcerer:patch-2 (d600237) with master (adee8a1)

Summary

⚡ 10 improvements
❌ 78 regressions
✅ 79 untouched

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

Benchmarks breakdown

ModeBenchmarkBASEHEADEfficiency
WallTimetest_make_lowpass5.3 µs6 µs-10.96%
WallTimetest_sudoku[initial_grid0]7.6 µs7.9 µs-4.59%
WallTimetest_make_peak6 µs6.7 µs-9.7%
WallTimetest_fs_read[1000]734.7 ns893.5 ns-17.77%
WallTimetest_pipe_communication[10000]11.9 ms14.4 ms-16.83%
WallTimetest_generate_all_combinations[5-4]9.7 µs11.4 µs-14.35%
WallTimetest_iir_filter_process2.6 µs3.2 µs-17.68%
WallTimetest_multiprocessing_map[10000]457.3 ms297.6 ms+53.66%
WallTimetest_sum_of_squares[sum_of_squares_sum_labmda_product]246.4 µs258.9 µs-4.82%
WallTimetest_noop_pass455.7 ns580.5 ns-21.5%
WallTimetest_make_bandpass5.2 µs5.9 µs-10.58%
WallTimetest_make_highshelf7.2 µs7.6 µs-5.75%
WallTimetest_noop_ellipsis_decorated639.7 ns760.5 ns-15.89%
WallTimetest_array_alloc[100]1.1 µs1.2 µs-13.77%
WallTimetest_sleep[0.001]1.1 ms1 ms+3.71%
WallTimetest_fs_write[100]13.4 µs13.8 µs-2.68%
WallTimetest_is_complete[board0]1.8 µs2 µs-13.31%
WallTimetest_multiprocessing_map[100]303.8 ms64.4 ms×4.7
WallTimetest_solve_crossword[puzzle0-words0]2.1 µs2.3 µs-9%
WallTimetest_multiprocessing_map[1000]314.4 ms63.4 ms×5
..................

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

Comment threadsrc/pytest_codspeed/plugin.py Outdated
Comment threadsrc/pytest_codspeed/instruments/walltime.py Outdated
@DreamsorcererDreamsorcerer changed the title Start async benchmarkImplement async benchmarkJan 2, 2026
Sign up for freeto 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.

Benchmark async functions

1 participant

@Dreamsorcerer