Skip to content

Commit 021f127

Browse files
committed
--wip-- [skip ci]
1 parent 451c740 commit 021f127

18 files changed

Lines changed: 89 additions & 18 deletions

File tree

Cargo.lock

Lines changed: 70 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ concurrent-queue = "2.1.0"
219219
console = "0.15.5"
220220
console-subscriber = "0.1.8"
221221
criterion = "0.4.0"
222+
codspeed-criterion-compat = "2.5.0"
222223
crossbeam-channel = "0.5.8"
223224
dashmap = "5.4.0"
224225
dialoguer = "0.10.3"

crates/turbo-tasks-fs/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ unicode-segmentation = { workspace = true }
5151

5252
[dev-dependencies]
5353
criterion = { workspace = true, features = ["async_tokio"] }
54+
codspeed-criterion-compat = { workspace = true }
5455
rstest = { workspace = true }
5556
sha2 = "0.10.2"
5657
tempfile = { workspace = true }

crates/turbo-tasks-fs/benches/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::{
55
time::{Duration, Instant},
66
};
77

8-
use criterion::{
8+
use codspeed_criterion_compat::{
99
criterion_group, criterion_main,
1010
measurement::{Measurement, WallTime},
1111
BenchmarkId, Criterion,

crates/turbo-tasks-memory/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ turbo-tasks-malloc = { workspace = true, default-features = false }
3333

3434
[dev-dependencies]
3535
criterion = { workspace = true, features = ["async_tokio"] }
36+
codspeed-criterion-compat = { workspace = true }
3637
indexmap = { workspace = true }
3738
lazy_static = { workspace = true }
3839
serde = { workspace = true }

crates/turbo-tasks-memory/benches/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![feature(arbitrary_self_types)]
22

3-
use criterion::{criterion_group, criterion_main, Criterion};
3+
use codspeed_criterion_compat::{criterion_group, criterion_main, Criterion};
44

55
pub(crate) mod scope_stress;
66
pub(crate) mod stress;

crates/turbo-tasks-memory/benches/scope_stress.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use anyhow::Result;
2-
use criterion::{BenchmarkId, Criterion};
2+
use codspeed_criterion_compat::{BenchmarkId, Criterion};
33
use turbo_tasks::{Completion, TryJoinIterExt, TurboTasks, Vc};
44
use turbo_tasks_memory::MemoryBackend;
55

@@ -19,7 +19,7 @@ pub fn scope_stress(c: &mut Criterion) {
1919
group.sample_size(20);
2020

2121
for size in [5, 10, 15, 20, 25, 30, 100, 200, 300] {
22-
group.throughput(criterion::Throughput::Elements(
22+
group.throughput(codspeed_criterion_compat::Throughput::Elements(
2323
/* tasks for fib from 0 to size - 1 = */
2424
(size as u64) * (size as u64) +
2525
/* root tasks = */

crates/turbo-tasks-memory/benches/stress.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use anyhow::Result;
2-
use criterion::{BenchmarkId, Criterion};
2+
use codspeed_criterion_compat::{BenchmarkId, Criterion};
33
use turbo_tasks::{TryJoinIterExt, TurboTasks, Vc};
44
use turbo_tasks_memory::MemoryBackend;
55

@@ -19,7 +19,7 @@ pub fn fibonacci(c: &mut Criterion) {
1919
group.sample_size(20);
2020

2121
for size in [100, 200, 500, 1000, 1414] {
22-
group.throughput(criterion::Throughput::Elements(
22+
group.throughput(codspeed_criterion_compat::Throughput::Elements(
2323
/* tasks for fib from 0 to size - 1 = */
2424
size as u64 * (size as u64 + 1) / 2 +
2525
/* root task = */

crates/turbopack-bench/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ chromiumoxide = { workspace = true, features = [
2222
"tokio-runtime",
2323
], default-features = false }
2424
criterion = { workspace = true, features = ["async_tokio"] }
25+
codspeed-criterion-compat = { workspace = true }
2526
futures = { workspace = true }
2627
once_cell = { workspace = true }
2728
owo-colors = { workspace = true }

crates/turbopack-bench/benches/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use criterion::{criterion_group, criterion_main, Criterion};
1+
use codspeed_criterion_compat::{criterion_group, criterion_main, Criterion};
22
use turbopack_bench::bundlers::Bundler;
33

44
fn get_bundlers() -> Vec<Box<dyn Bundler>> {

0 commit comments

Comments
 (0)