diff options
Diffstat (limited to 'benches')
| -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();  // } | 
