diff options
| author | Martin Haug <mhaug@live.de> | 2023-03-12 09:58:47 +0100 |
|---|---|---|
| committer | Martin Haug <mhaug@live.de> | 2023-03-12 09:58:47 +0100 |
| commit | 2720a44b965d29e9c3453c732e38554fdb6413bb (patch) | |
| tree | 10f888085c4b354773a5eb8cfe9aaad74564b109 /tests/src/benches.rs | |
| parent | ca6edf5283c258d8410134d678347977cb273cdd (diff) | |
| parent | 902c2ea1215ab98db7e7047ac7b8e5fc0b50c3fe (diff) | |
Merge branch 'main' into ng
Diffstat (limited to 'tests/src/benches.rs')
| -rw-r--r-- | tests/src/benches.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/src/benches.rs b/tests/src/benches.rs index ea53f602..21fdbc7a 100644 --- a/tests/src/benches.rs +++ b/tests/src/benches.rs @@ -5,6 +5,7 @@ use iai::{black_box, main, Iai}; use typst::diag::{FileError, FileResult}; use typst::eval::Library; use typst::font::{Font, FontBook}; +use typst::geom::Color; use typst::syntax::{Source, SourceId}; use typst::util::Buffer; use typst::World; @@ -90,7 +91,7 @@ fn bench_compile(iai: &mut Iai) { fn bench_render(iai: &mut Iai) { let world = BenchWorld::new(); let document = typst::compile(&world, &world.source).unwrap(); - iai.run(|| typst::export::render(&document.pages[0], 1.0)) + iai.run(|| typst::export::render(&document.pages[0], 1.0, Color::WHITE)) } struct BenchWorld { |
