Add CI quality gate
This commit is contained in:
@@ -43,9 +43,7 @@ fn benchmark_format_simple_text(c: &mut Criterion) {
|
||||
let entities = vec![];
|
||||
|
||||
c.bench_function("format_simple_text", |b| {
|
||||
b.iter(|| {
|
||||
format_text_with_entities(black_box(&text), black_box(&entities), Color::White)
|
||||
});
|
||||
b.iter(|| format_text_with_entities(black_box(&text), black_box(&entities), Color::White));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -53,9 +51,7 @@ fn benchmark_format_markdown_text(c: &mut Criterion) {
|
||||
let (text, entities) = create_text_with_entities();
|
||||
|
||||
c.bench_function("format_markdown_text", |b| {
|
||||
b.iter(|| {
|
||||
format_text_with_entities(black_box(&text), black_box(&entities), Color::White)
|
||||
});
|
||||
b.iter(|| format_text_with_entities(black_box(&text), black_box(&entities), Color::White));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -79,9 +75,7 @@ fn benchmark_format_long_text(c: &mut Criterion) {
|
||||
}
|
||||
|
||||
c.bench_function("format_long_text_with_100_entities", |b| {
|
||||
b.iter(|| {
|
||||
format_text_with_entities(black_box(&text), black_box(&entities), Color::White)
|
||||
});
|
||||
b.iter(|| format_text_with_entities(black_box(&text), black_box(&entities), Color::White));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user