Skip to content

Commit fc6a10e

Browse files
committed
chore: remove unstable benchmarks
1 parent 19c4868 commit fc6a10e

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

benches/resolver.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -311,29 +311,6 @@ fn bench_package_json_deserialization(c: &mut Criterion) {
311311
});
312312
});
313313

314-
// Benchmark batch parsing (simulating resolver cache warming)
315-
let package_jsons = vec![small_json, medium_json, large_json, &complex_json];
316-
group.bench_function("batch_4_files", |b| {
317-
b.iter(|| {
318-
for (i, json) in package_jsons.iter().enumerate() {
319-
let path = PathBuf::from(format!("/test/package{i}.json"));
320-
PackageJson::parse(path.clone(), path, json)
321-
.expect("Failed to parse JSON in batch");
322-
}
323-
});
324-
});
325-
326-
// Benchmark parallel parsing
327-
group.bench_function("parallel_batch_4_files", |b| {
328-
b.iter(|| {
329-
package_jsons.par_iter().enumerate().for_each(|(i, json)| {
330-
let path = PathBuf::from(format!("/test/package{i}.json"));
331-
PackageJson::parse(path.clone(), path, json)
332-
.expect("Failed to parse JSON in parallel");
333-
});
334-
});
335-
});
336-
337314
group.finish();
338315
}
339316

0 commit comments

Comments
 (0)