Update benchmark code
This commit is contained in:
parent
200cb53a66
commit
064d6cf2b6
File diff suppressed because it is too large
Load Diff
|
@ -23,7 +23,7 @@ serde_derive = "1"
|
|||
serde_json = "1"
|
||||
serde_yaml = "0.8"
|
||||
tera = { git = "https://github.com/Keats/tera" }
|
||||
yarte = { git = "https://github.com/botika/yarte", features = ["bytes_buff"] }
|
||||
yarte = { git = "https://github.com/botika/yarte", features = ["bytes-buf", "fixed"] }
|
||||
|
||||
[build-dependencies]
|
||||
ructe = { git = "https://github.com/kaj/ructe" }
|
||||
|
|
|
@ -10,7 +10,7 @@ pub fn big_table(b: &mut criterion::Bencher<'_>, size: &usize) {
|
|||
table.push(inner);
|
||||
}
|
||||
let t = BigTable { table };
|
||||
b.iter(|| t.call(109915).unwrap());
|
||||
b.iter(|| t.call(109915));
|
||||
}
|
||||
|
||||
#[derive(TemplateBytes)]
|
||||
|
@ -42,7 +42,7 @@ pub fn teams(b: &mut criterion::Bencher<'_>) {
|
|||
},
|
||||
],
|
||||
};
|
||||
b.iter(|| t.call(239).unwrap());
|
||||
b.iter(|| t.call(239));
|
||||
}
|
||||
|
||||
#[derive(TemplateBytes)]
|
||||
|
|
Loading…
Reference in New Issue