Update criterion requirement from 0.5 to 0.6 in /sqlparser_bench (#1857)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ifeanyi <ifeanyi@validio.io>
This commit is contained in:
dependabot[bot] 2025-05-20 06:21:41 +02:00 committed by GitHub
parent e7bf186e44
commit 525ed81fde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ edition = "2018"
sqlparser = { path = "../" } sqlparser = { path = "../" }
[dev-dependencies] [dev-dependencies]
criterion = "0.5" criterion = "0.6"
[[bench]] [[bench]]
name = "sqlparser_bench" name = "sqlparser_bench"

View file

@ -68,7 +68,7 @@ fn basic_queries(c: &mut Criterion) {
}; };
group.bench_function("parse_large_statement", |b| { group.bench_function("parse_large_statement", |b| {
b.iter(|| Parser::parse_sql(&dialect, criterion::black_box(large_statement.as_str()))); b.iter(|| Parser::parse_sql(&dialect, std::hint::black_box(large_statement.as_str())));
}); });
let large_statement = Parser::parse_sql(&dialect, large_statement.as_str()) let large_statement = Parser::parse_sql(&dialect, large_statement.as_str())