aboutsummaryrefslogtreecommitdiffstats
path: root/benches/bench.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-13 10:40:01 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-13 10:40:01 +0200
commitec2d1bfb4232178fb3a6cba36f138bc6efbbf34a (patch)
tree2da4be3be22c2324c48cb17133b3f4b26b9139d2 /benches/bench.rs
parent861af95c119721e814460fa7dc32bd3d74b38484 (diff)
downloadmarkdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.tar.gz
markdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.tar.bz2
markdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.zip
Rename crate to `markdown`
Diffstat (limited to 'benches/bench.rs')
-rw-r--r--benches/bench.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/benches/bench.rs b/benches/bench.rs
index d72e7c3..5ba0e16 100644
--- a/benches/bench.rs
+++ b/benches/bench.rs
@@ -1,14 +1,13 @@
#[macro_use]
extern crate criterion;
use criterion::{BenchmarkId, Criterion};
-use micromark::micromark;
use std::fs;
fn readme(c: &mut Criterion) {
let doc = fs::read_to_string("readme.md").unwrap();
c.bench_with_input(BenchmarkId::new("readme", "readme"), &doc, |b, s| {
- b.iter(|| micromark(s));
+ b.iter(|| markdown::to_html(s));
});
}
@@ -17,7 +16,7 @@ fn readme(c: &mut Criterion) {
// let mut group = c.benchmark_group("giant");
// group.sample_size(10);
// group.bench_with_input(BenchmarkId::new("giant", "1.5 mb"), &doc, |b, s| {
-// b.iter(|| micromark(s));
+// b.iter(|| markdown::to_html(s));
// });
// group.finish();
// }