diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-10-13 10:40:01 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-10-13 10:40:01 +0200 |
commit | ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a (patch) | |
tree | 2da4be3be22c2324c48cb17133b3f4b26b9139d2 /benches/bench.rs | |
parent | 861af95c119721e814460fa7dc32bd3d74b38484 (diff) | |
download | markdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.tar.gz markdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.tar.bz2 markdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.zip |
Rename crate to `markdown`
Diffstat (limited to '')
-rw-r--r-- | benches/bench.rs | 5 |
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(); // } |