Skip to content

Commit

Permalink
fix bench
Browse files Browse the repository at this point in the history
  • Loading branch information
kanarus committed Jul 8, 2024
1 parent f3cd86c commit a225fcf
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/benches/prisma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,8 @@ datasource db {
});

b.iter(|| {
let mut buf = Vec::with_capacity(10);
for _ in 0..10 {
let mut r = byte_reader::Reader::new(SCHEMA.as_bytes());
buf.push(Schema::parse(&mut r))
}
buf
let mut r = byte_reader::Reader::new(SCHEMA.as_bytes());
Schema::parse(&mut r)
})
}

Expand Down

0 comments on commit a225fcf

Please sign in to comment.