Skip to content

Commit

Permalink
Fix bench labels
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenn committed Dec 3, 2024
1 parent 312dfbf commit 97c5ad9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sqlparser_bench/benches/sqlparser_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ use fallible_iterator::FallibleIterator;
use sqlite3_parser::lexer::sql::Parser;

fn basic_queries(c: &mut Criterion) {
let mut group = c.benchmark_group("sqlparser-rs parsing benchmark");
let mut group = c.benchmark_group("sqlite3_parser parsing benchmark");

let string = b"SELECT * FROM `table` WHERE 1 = 1";
group.bench_with_input("sqlparser::select", &string, |b, &s| {
group.bench_with_input("sqlite3_parser::select", &string, |b, &s| {
b.iter(|| {
let mut parser = Parser::new(s);
assert!(parser.next().unwrap().unwrap().readonly())
Expand All @@ -36,7 +36,7 @@ fn basic_queries(c: &mut Criterion) {
SELECT * FROM `table`
LEFT JOIN derived USING (user_id)
";
group.bench_with_input("sqlparser::with_select", &with_query, |b, &s| {
group.bench_with_input("sqlite3_parser::with_select", &with_query, |b, &s| {
b.iter(|| {
let mut parser = Parser::new(s);
assert!(parser.next().unwrap().unwrap().readonly())
Expand Down

0 comments on commit 97c5ad9

Please sign in to comment.