Skip to content

Commit 004d9b4

Browse files
lovasoa197g
authored andcommitted
Added a few test images
The blank test image was generated with convert -size 800x280 -sampling-factor 2x2 xc:white tests/reftest/images/blank_800x280.jpg This creates a grayscale image with a sampling factor of 2 and a height that is a multiple of 8 but not 16, so that it triggers #148.
1 parent 0920c4c commit 004d9b4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

benches/decoding_benchmark.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ fn main() {
2626
read_image(include_bytes!("tower_progressive.jpg"))
2727
}));
2828

29+
c.bench_function("decode a 512x512 grayscale JPEG", |b| b.iter(|| {
30+
read_image(include_bytes!("tower_grayscale.jpg"))
31+
}));
32+
2933
c.bench_function("extract metadata from an image", |b| b.iter(|| {
3034
read_metadata(include_bytes!("tower.jpg"))
3135
}));

benches/tower_grayscale.jpg

53 KB
Loading

0 commit comments

Comments
 (0)