add remark re. parser benchmarks

This commit is contained in:
Mazdak Farrokhzad 2022-05-04 11:53:07 +02:00
parent 2d6e737f7e
commit 8bf06ed872

View File

@ -35,6 +35,8 @@ macro_rules! bench {
concat!("./", $file_name, ".leo"),
include_str!(concat!("./", $file_name, ".leo"),),
);
// TODO(Centril): This benchmark seems like it actually does nothing
// but take a reference to `&ast`, which should be optimized out?
c.bench_function(concat!("Ast::", $file_name), |b| b.iter(|| &ast));
}
};