mirror of
https://github.com/Cykooz/fast_image_resize.git
synced 2026-10-08 01:11:09 +00:00
Updated results of benchmarks.
This commit is contained in:
+21
-21
@@ -6,7 +6,7 @@ Environment:
|
||||
- RAM: DDR4 3800 MHz
|
||||
- Ubuntu 22.04 (linux 5.15.0)
|
||||
- Rust 1.66.1
|
||||
- wasmtime = "4.0.0"
|
||||
- wasmtime = "5.0.0"
|
||||
- criterion = "0.4"
|
||||
- fast_image_resize = "2.4.0"
|
||||
|
||||
@@ -34,9 +34,9 @@ Pipeline:
|
||||
[comment]: <> (bench_compare_rgb start)
|
||||
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|
||||
|----------|:-------:|:--------:|:----------:|:--------:|
|
||||
| image | 63.39 | 243.16 | 434.54 | 652.17 |
|
||||
| resize | - | 109.40 | 202.84 | 295.71 |
|
||||
| fir rust | 0.69 | 82.65 | 141.72 | 202.39 |
|
||||
| image | 25.52 | 146.82 | 268.35 | 391.29 |
|
||||
| resize | - | 84.92 | 166.80 | 247.48 |
|
||||
| fir rust | 0.37 | 50.56 | 88.08 | 126.30 |
|
||||
[comment]: <> (bench_compare_rgb end)
|
||||
|
||||
### Resize RGBA8 image (U8x4) 4928x3279 => 852x567
|
||||
@@ -48,13 +48,13 @@ Pipeline:
|
||||
- Source image
|
||||
[nasa-4928x3279-rgba.png](https://github.com/Cykooz/fast_image_resize/blob/main/data/nasa-4928x3279-rgba.png)
|
||||
- Numbers in table is mean duration of image resizing in milliseconds.
|
||||
- The `image` crate does not support multiplying and dividing by alpha channel.
|
||||
- The `image` crate does not support multiplying and dividing by alpha channel.
|
||||
|
||||
[comment]: <> (bench_compare_rgba start)
|
||||
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|
||||
|----------|:-------:|:--------:|:----------:|:--------:|
|
||||
| resize | - | 122.06 | 229.20 | 335.95 |
|
||||
| fir rust | 0.69 | 161.38 | 255.27 | 351.55 |
|
||||
| resize | - | 109.02 | 216.79 | 325.27 |
|
||||
| fir rust | 0.25 | 112.21 | 174.85 | 239.34 |
|
||||
[comment]: <> (bench_compare_rgba end)
|
||||
|
||||
### Resize L8 image (U8) 4928x3279 => 852x567
|
||||
@@ -70,9 +70,9 @@ Pipeline:
|
||||
[comment]: <> (bench_compare_l start)
|
||||
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|
||||
|----------|:-------:|:--------:|:----------:|:--------:|
|
||||
| image | 56.44 | 198.93 | 373.78 | 530.45 |
|
||||
| resize | - | 46.04 | 77.65 | 112.78 |
|
||||
| fir rust | 0.32 | 37.53 | 60.74 | 84.91 |
|
||||
| image | 20.67 | 113.49 | 204.72 | 296.08 |
|
||||
| resize | - | 30.10 | 60.87 | 90.92 |
|
||||
| fir rust | 0.21 | 24.54 | 40.10 | 57.36 |
|
||||
[comment]: <> (bench_compare_l end)
|
||||
|
||||
### Resize LA8 image (U8x2) 4928x3279 => 852x567
|
||||
@@ -91,7 +91,7 @@ Pipeline:
|
||||
[comment]: <> (bench_compare_la start)
|
||||
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|
||||
|----------|:-------:|:--------:|:----------:|:--------:|
|
||||
| fir rust | 0.43 | 85.92 | 130.47 | 176.58 |
|
||||
| fir rust | 0.24 | 58.38 | 87.21 | 116.68 |
|
||||
[comment]: <> (bench_compare_la end)
|
||||
|
||||
### Resize RGB16 image (U16x3) 4928x3279 => 852x567
|
||||
@@ -107,9 +107,9 @@ Pipeline:
|
||||
[comment]: <> (bench_compare_rgb16 start)
|
||||
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|
||||
|----------|:-------:|:--------:|:----------:|:--------:|
|
||||
| image | 63.46 | 250.44 | 444.97 | 655.95 |
|
||||
| resize | - | 94.81 | 174.13 | 253.26 |
|
||||
| fir rust | 1.05 | 99.97 | 169.38 | 238.44 |
|
||||
| image | 25.65 | 155.69 | 284.54 | 413.21 |
|
||||
| resize | - | 88.44 | 172.07 | 258.84 |
|
||||
| fir rust | 0.40 | 57.66 | 97.19 | 138.74 |
|
||||
[comment]: <> (bench_compare_rgb16 end)
|
||||
|
||||
### Resize RGBA16 image (U16x4) 4928x3279 => 852x567
|
||||
@@ -126,8 +126,8 @@ Pipeline:
|
||||
[comment]: <> (bench_compare_rgba16 start)
|
||||
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|
||||
|----------|:-------:|:--------:|:----------:|:--------:|
|
||||
| resize | - | 119.79 | 222.30 | 324.49 |
|
||||
| fir rust | 1.22 | 166.55 | 247.73 | 334.47 |
|
||||
| resize | - | 111.25 | 219.73 | 328.47 |
|
||||
| fir rust | 0.42 | 112.28 | 169.04 | 228.52 |
|
||||
[comment]: <> (bench_compare_rgba16 end)
|
||||
|
||||
### Resize L16 image (U16) 4928x3279 => 852x567
|
||||
@@ -143,9 +143,9 @@ Pipeline:
|
||||
[comment]: <> (bench_compare_l16 start)
|
||||
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|
||||
|----------|:-------:|:--------:|:----------:|:--------:|
|
||||
| image | 55.75 | 214.72 | 412.35 | 586.57 |
|
||||
| resize | - | 46.44 | 78.74 | 113.61 |
|
||||
| fir rust | 0.42 | 44.82 | 71.45 | 99.62 |
|
||||
| image | 22.20 | 129.91 | 236.08 | 342.27 |
|
||||
| resize | - | 30.63 | 60.99 | 91.22 |
|
||||
| fir rust | 0.25 | 27.74 | 43.73 | 61.72 |
|
||||
[comment]: <> (bench_compare_l16 end)
|
||||
|
||||
### Resize LA16 (luma with alpha channel) image (U16x2) 4928x3279 => 852x567
|
||||
@@ -164,5 +164,5 @@ Pipeline:
|
||||
[comment]: <> (bench_compare_la16 start)
|
||||
| | Nearest | Bilinear | CatmullRom | Lanczos3 |
|
||||
|----------|:-------:|:--------:|:----------:|:--------:|
|
||||
| fir rust | 0.70 | 98.81 | 149.67 | 201.25 |
|
||||
[comment]: <> (bench_compare_la16 end)
|
||||
| fir rust | 0.25 | 59.93 | 95.26 | 131.62 |
|
||||
[comment]: <> (bench_compare_la16 end)
|
||||
Reference in New Issue
Block a user