@@ -23,7 +23,7 @@ fn generate_plugin_versions() -> Vec<(String, String)> {
23
23
24
24
fn criterion_benchmark ( c : & mut Criterion ) {
25
25
c. bench_function ( "Expression.eval() file(path)" , |b| {
26
- let state = State :: new ( GameType :: Oblivion , "." . into ( ) , "." . into ( ) ) ;
26
+ let state = State :: new ( GameType :: Oblivion , "." . into ( ) ) ;
27
27
let expression = Expression :: from_str ( "file(\" Cargo.toml\" )" ) . unwrap ( ) ;
28
28
29
29
b. iter ( || {
@@ -32,7 +32,7 @@ fn criterion_benchmark(c: &mut Criterion) {
32
32
} ) ;
33
33
34
34
c. bench_function ( "Expression.eval() file(regex)" , |b| {
35
- let state = State :: new ( GameType :: Oblivion , "." . into ( ) , "." . into ( ) ) ;
35
+ let state = State :: new ( GameType :: Oblivion , "." . into ( ) ) ;
36
36
let expression = Expression :: from_str ( "file(\" Cargo.*\" )" ) . unwrap ( ) ;
37
37
38
38
b. iter ( || {
@@ -44,7 +44,6 @@ fn criterion_benchmark(c: &mut Criterion) {
44
44
let state = State :: new (
45
45
GameType :: Oblivion ,
46
46
"tests/testing-plugins/Oblivion/Data" . into ( ) ,
47
- "." . into ( ) ,
48
47
)
49
48
. with_active_plugins ( & generate_active_plugins ( ) ) ;
50
49
@@ -59,7 +58,6 @@ fn criterion_benchmark(c: &mut Criterion) {
59
58
let state = State :: new (
60
59
GameType :: Oblivion ,
61
60
"tests/testing-plugins/Oblivion/Data" . into ( ) ,
62
- "." . into ( ) ,
63
61
)
64
62
. with_active_plugins ( & generate_active_plugins ( ) ) ;
65
63
@@ -71,7 +69,7 @@ fn criterion_benchmark(c: &mut Criterion) {
71
69
} ) ;
72
70
73
71
c. bench_function ( "Expression.eval() many()" , |b| {
74
- let state = State :: new ( GameType :: Oblivion , "." . into ( ) , "." . into ( ) ) ;
72
+ let state = State :: new ( GameType :: Oblivion , "." . into ( ) ) ;
75
73
let expression = Expression :: from_str ( "many(\" Cargo.*\" )" ) . unwrap ( ) ;
76
74
77
75
b. iter ( || {
@@ -83,7 +81,6 @@ fn criterion_benchmark(c: &mut Criterion) {
83
81
let state = State :: new (
84
82
GameType :: Oblivion ,
85
83
"tests/testing-plugins/Oblivion/Data" . into ( ) ,
86
- "." . into ( ) ,
87
84
)
88
85
. with_active_plugins ( & generate_active_plugins ( ) ) ;
89
86
@@ -98,7 +95,6 @@ fn criterion_benchmark(c: &mut Criterion) {
98
95
let state = State :: new (
99
96
GameType :: Oblivion ,
100
97
"tests/testing-plugins/Oblivion/Data" . into ( ) ,
101
- "." . into ( ) ,
102
98
) ;
103
99
let expression = Expression :: from_str ( "checksum(\" Blank.esm\" , 374E2A6F)" ) . unwrap ( ) ;
104
100
@@ -111,7 +107,6 @@ fn criterion_benchmark(c: &mut Criterion) {
111
107
let state = State :: new (
112
108
GameType :: Oblivion ,
113
109
"tests/testing-plugins/Oblivion/Data" . into ( ) ,
114
- "." . into ( ) ,
115
110
)
116
111
. with_plugin_versions ( & generate_plugin_versions ( ) ) ;
117
112
@@ -123,7 +118,7 @@ fn criterion_benchmark(c: &mut Criterion) {
123
118
} ) ;
124
119
125
120
c. bench_function ( "Expression.eval() version(executable)" , |b| {
126
- let state = State :: new ( GameType :: Oblivion , "." . into ( ) , "." . into ( ) ) ;
121
+ let state = State :: new ( GameType :: Oblivion , "." . into ( ) ) ;
127
122
let expression =
128
123
Expression :: from_str ( "version(\" tests/libloot_win32/loot.dll\" , \" 0.18.2.0\" , ==)" )
129
124
. unwrap ( ) ;
0 commit comments