File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,24 +23,24 @@ fn basic_queries(c: &mut Criterion) {
2323 let mut group = c. benchmark_group ( "sqlparser-rs parsing benchmark" ) ;
2424 let dialect = GenericDialect { } ;
2525
26- let string = "SELECT * FROM table WHERE 1 = 1" ;
26+ let string = "SELECT * FROM my_table WHERE 1 = 1" ;
2727 group. bench_function ( "sqlparser::select" , |b| {
28- b. iter ( || Parser :: parse_sql ( & dialect, string) ) ;
28+ b. iter ( || Parser :: parse_sql ( & dialect, string) . unwrap ( ) ) ;
2929 } ) ;
3030
3131 let with_query = "
3232 WITH derived AS (
3333 SELECT MAX(a) AS max_a,
3434 COUNT(b) AS b_num,
3535 user_id
36- FROM TABLE
36+ FROM MY_TABLE
3737 GROUP BY user_id
3838 )
39- SELECT * FROM table
39+ SELECT * FROM my_table
4040 LEFT JOIN derived USING (user_id)
4141 " ;
4242 group. bench_function ( "sqlparser::with_select" , |b| {
43- b. iter ( || Parser :: parse_sql ( & dialect, with_query) ) ;
43+ b. iter ( || Parser :: parse_sql ( & dialect, with_query) . unwrap ( ) ) ;
4444 } ) ;
4545}
4646
You can’t perform that action at this time.
0 commit comments