File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments