Unverified Commit e6dfc19f authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

turbo-tasks-backend: add CPU-scaling capture script for priority_contention bench

Co-authored-by: 's avatarTobias Koppers <1365881+sokra@users.noreply.github.com>
parent 32b2c910
...@@ -154,6 +154,8 @@ async fn set_and_read( ...@@ -154,6 +154,8 @@ async fn set_and_read(
Ok(elapsed) Ok(elapsed)
} }
/// To capture how this benchmark scales with the number of CPUs on a machine, run
/// `priority_contention_scaling.py` next to this file; it writes the results to a CSV file.
pub fn priority_contention(c: &mut Criterion) { pub fn priority_contention(c: &mut Criterion) {
let mut group = c.benchmark_group("turbo_tasks_backend_priority_contention"); let mut group = c.benchmark_group("turbo_tasks_backend_priority_contention");
group.sample_size(20); group.sample_size(20);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment