Update benchmark code

This commit is contained in:
Kogia-sima 2020-07-02 20:31:05 +09:00
parent 200cb53a66
commit 064d6cf2b6
3 changed files with 432 additions and 280 deletions

706
benches/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -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" }

View File

@ -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)]