|
1 |
| -use std::cell::RefCell; |
2 |
| -use std::rc::Rc; |
3 | 1 | use std::time::Duration;
|
4 | 2 |
|
5 | 3 | use criterion::{black_box, criterion_group, criterion_main, Criterion};
|
6 | 4 |
|
7 | 5 | use partiql_eval::env::basic::MapBindings;
|
8 | 6 | use partiql_eval::eval::{
|
9 |
| - BasicContext, EvalFrom, EvalOutputAccumulator, EvalPath, EvalVarRef, Evaluable, Output, |
10 |
| - PathComponent, |
| 7 | + BasicContext, EvalPath, EvalPathComponent, EvalScan, EvalVarRef, Evaluable, |
11 | 8 | };
|
12 | 9 | use partiql_value::{
|
13 | 10 | partiql_bag, partiql_list, partiql_tuple, Bag, BindingsName, List, Tuple, Value,
|
@@ -52,19 +49,15 @@ fn data() -> MapBindings<Value> {
|
52 | 49 |
|
53 | 50 | fn eval_bench(c: &mut Criterion) {
|
54 | 51 | fn eval(eval: bool) {
|
55 |
| - let output = Rc::new(RefCell::new(EvalOutputAccumulator::default())); |
56 |
| - let eout = Box::new(Output { output }); |
57 |
| - |
58 | 52 | // eval plan for SELECT * FROM hr.employeesNestScalars
|
59 |
| - let mut from = EvalFrom::new( |
| 53 | + let mut from = EvalScan::new( |
60 | 54 | Box::new(EvalPath {
|
61 | 55 | expr: Box::new(EvalVarRef {
|
62 | 56 | name: BindingsName::CaseInsensitive("hr".to_string()),
|
63 | 57 | }),
|
64 |
| - components: vec![PathComponent::Key("employeesNestScalars".to_string())], |
| 58 | + components: vec![EvalPathComponent::Key("employeesNestScalars".to_string())], |
65 | 59 | }),
|
66 | 60 | "x",
|
67 |
| - eout, |
68 | 61 | );
|
69 | 62 |
|
70 | 63 | let ctx = BasicContext::new(data());
|
|
0 commit comments