mirror of
https://github.com/Cykooz/fast_image_resize.git
synced 2026-10-08 01:11:09 +00:00
Updated results of benchmarks for x64_86 architecture.
This commit is contained in:
Generated
+59
-79
@@ -40,9 +40,9 @@ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
|
||||
|
||||
[[package]]
|
||||
name = "anstream"
|
||||
version = "0.6.4"
|
||||
version = "0.6.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2ab91ebe16eb252986481c5b62f6098f3b698a45e34b5b98200cf20dd2484a44"
|
||||
checksum = "d664a92ecae85fd0a7392615844904654d1d5f5514837f471ddef4a057aba1b6"
|
||||
dependencies = [
|
||||
"anstyle",
|
||||
"anstyle-parse",
|
||||
@@ -69,11 +69,11 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "anstyle-query"
|
||||
version = "1.0.1"
|
||||
version = "1.0.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a3a318f1f38d2418400f8209655bfd825785afd25aa30bb7ba6cc792e4596748"
|
||||
checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648"
|
||||
dependencies = [
|
||||
"windows-sys 0.52.0",
|
||||
"windows-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -83,14 +83,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7"
|
||||
dependencies = [
|
||||
"anstyle",
|
||||
"windows-sys 0.52.0",
|
||||
"windows-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "anyhow"
|
||||
version = "1.0.75"
|
||||
version = "1.0.77"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6"
|
||||
checksum = "c9d19de80eff169429ac1e9f48fffb163916b448a44e8e046186232046d9e1f9"
|
||||
|
||||
[[package]]
|
||||
name = "autocfg"
|
||||
@@ -127,9 +127,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "bstr"
|
||||
version = "1.8.0"
|
||||
version = "1.9.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "542f33a8835a0884b006a0c3df3dadd99c0c3f296ed26c2fdc8028e01ad6230c"
|
||||
checksum = "c48f0051a4b4c5e0b6d365cd04af53aeaa209e3cc15ec2cdb69e73cc87fbd0dc"
|
||||
dependencies = [
|
||||
"memchr",
|
||||
"serde",
|
||||
@@ -188,9 +188,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "chrono-tz"
|
||||
version = "0.8.4"
|
||||
version = "0.8.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e23185c0e21df6ed832a12e2bda87c7d1def6842881fb634a8511ced741b0d76"
|
||||
checksum = "91d7b79e99bfaa0d47da0687c43aa3b7381938a62ad3a6498599039321f660b7"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"chrono-tz-build",
|
||||
@@ -237,9 +237,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "clap"
|
||||
version = "4.4.11"
|
||||
version = "4.4.12"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "bfaff671f6b22ca62406885ece523383b9b64022e341e53e009a62ebc47a45f2"
|
||||
checksum = "dcfab8ba68f3668e89f6ff60f5b205cea56aa7b769451a59f34b8682f51c056d"
|
||||
dependencies = [
|
||||
"clap_builder",
|
||||
"clap_derive",
|
||||
@@ -247,9 +247,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "clap-verbosity-flag"
|
||||
version = "2.1.0"
|
||||
version = "2.1.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e5fdbb015d790cfb378aca82caf9cc52a38be96a7eecdb92f31b4366a8afc019"
|
||||
checksum = "3c90e95e5bd4e8ac34fa6f37c774b0c6f8ed06ea90c79931fd448fcf941a9767"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"log",
|
||||
@@ -257,9 +257,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "clap_builder"
|
||||
version = "4.4.11"
|
||||
version = "4.4.12"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a216b506622bb1d316cd51328dce24e07bdff4a6128a47c7e7fad11878d5adbb"
|
||||
checksum = "fb7fb5e4e979aec3be7791562fcba452f94ad85e954da024396433e0e25a79e9"
|
||||
dependencies = [
|
||||
"anstream",
|
||||
"anstyle",
|
||||
@@ -276,7 +276,7 @@ dependencies = [
|
||||
"heck",
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.39",
|
||||
"syn 2.0.43",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -357,9 +357,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "crossbeam-deque"
|
||||
version = "0.8.3"
|
||||
version = "0.8.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef"
|
||||
checksum = "fca89a0e215bab21874660c67903c5f143333cab1da83d041c7ded6053774751"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
"crossbeam-epoch",
|
||||
@@ -368,22 +368,20 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "crossbeam-epoch"
|
||||
version = "0.9.15"
|
||||
version = "0.9.17"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7"
|
||||
checksum = "0e3681d554572a651dda4186cd47240627c3d0114d45a95f6ad27f2f22e7548d"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
"cfg-if",
|
||||
"crossbeam-utils",
|
||||
"memoffset",
|
||||
"scopeguard",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "crossbeam-utils"
|
||||
version = "0.8.16"
|
||||
version = "0.8.18"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294"
|
||||
checksum = "c3a430a770ebd84726f584a90ee7f020d28db52c6d02138900f22341f866d39c"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
]
|
||||
@@ -406,9 +404,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "deunicode"
|
||||
version = "1.4.1"
|
||||
version = "1.4.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6a1abaf4d861455be59f64fd2b55606cb151fce304ede7165f410243ce96bde6"
|
||||
checksum = "3ae2a35373c5c74340b79ae6780b498b2b183915ec5dacf263aac5a099bf485a"
|
||||
|
||||
[[package]]
|
||||
name = "digest"
|
||||
@@ -446,7 +444,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"windows-sys 0.52.0",
|
||||
"windows-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -490,9 +488,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "fdeflate"
|
||||
version = "0.3.1"
|
||||
version = "0.3.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "64d6dafc854908ff5da46ff3f8f473c6984119a2876a383a860246dd7841a868"
|
||||
checksum = "209098dd6dfc4445aa6111f0e98653ac323eaa4dfd212c9ca3931bf9955c31bd"
|
||||
dependencies = [
|
||||
"simd-adler32",
|
||||
]
|
||||
@@ -673,13 +671,13 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "is-terminal"
|
||||
version = "0.4.9"
|
||||
version = "0.4.10"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b"
|
||||
checksum = "0bad00257d07be169d870ab665980b06cdb366d792ad690bf2e76876dc503455"
|
||||
dependencies = [
|
||||
"hermit-abi",
|
||||
"rustix",
|
||||
"windows-sys 0.48.0",
|
||||
"windows-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -702,9 +700,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "itoa"
|
||||
version = "1.0.9"
|
||||
version = "1.0.10"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
|
||||
checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c"
|
||||
|
||||
[[package]]
|
||||
name = "jpeg-decoder"
|
||||
@@ -738,9 +736,9 @@ checksum = "03087c2bad5e1034e8cace5926dec053fb3790248370865f5117a7d0213354c8"
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.2.150"
|
||||
version = "0.2.151"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c"
|
||||
checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4"
|
||||
|
||||
[[package]]
|
||||
name = "libm"
|
||||
@@ -782,18 +780,9 @@ checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
|
||||
|
||||
[[package]]
|
||||
name = "memchr"
|
||||
version = "2.6.4"
|
||||
version = "2.7.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167"
|
||||
|
||||
[[package]]
|
||||
name = "memoffset"
|
||||
version = "0.9.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c"
|
||||
dependencies = [
|
||||
"autocfg",
|
||||
]
|
||||
checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149"
|
||||
|
||||
[[package]]
|
||||
name = "miniz_oxide"
|
||||
@@ -859,9 +848,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "once_cell"
|
||||
version = "1.18.0"
|
||||
version = "1.19.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
|
||||
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
|
||||
|
||||
[[package]]
|
||||
name = "oorandom"
|
||||
@@ -915,7 +904,7 @@ dependencies = [
|
||||
"pest_meta",
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.39",
|
||||
"syn 2.0.43",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -988,9 +977,9 @@ checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
|
||||
|
||||
[[package]]
|
||||
name = "proc-macro2"
|
||||
version = "1.0.70"
|
||||
version = "1.0.71"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b"
|
||||
checksum = "75cb1540fadbd5b8fbccc4dddad2734eba435053f725621c070711a14bb5f4b8"
|
||||
dependencies = [
|
||||
"unicode-ident",
|
||||
]
|
||||
@@ -1127,22 +1116,22 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rustix"
|
||||
version = "0.38.26"
|
||||
version = "0.38.28"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9470c4bf8246c8daf25f9598dca807fb6510347b1e1cfa55749113850c79d88a"
|
||||
checksum = "72e572a5e8ca657d7366229cdde4bd14c4eb5499a9573d4d366fe1b599daa316"
|
||||
dependencies = [
|
||||
"bitflags 2.4.1",
|
||||
"errno",
|
||||
"libc",
|
||||
"linux-raw-sys",
|
||||
"windows-sys 0.52.0",
|
||||
"windows-sys",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ryu"
|
||||
version = "1.0.15"
|
||||
version = "1.0.16"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741"
|
||||
checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c"
|
||||
|
||||
[[package]]
|
||||
name = "same-file"
|
||||
@@ -1176,7 +1165,7 @@ checksum = "43576ca501357b9b071ac53cdc7da8ef0cbd9493d8df094cd821777ea6e894d3"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.39",
|
||||
"syn 2.0.43",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -1257,9 +1246,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "syn"
|
||||
version = "2.0.39"
|
||||
version = "2.0.43"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a"
|
||||
checksum = "ee659fb5f3d355364e1f3e5bc10fb82068efbf824a1e9d1c9504244a6469ad53"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
@@ -1307,22 +1296,22 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "thiserror"
|
||||
version = "1.0.50"
|
||||
version = "1.0.52"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f9a7210f5c9a7156bb50aa36aed4c95afb51df0df00713949448cf9e97d382d2"
|
||||
checksum = "83a48fd946b02c0a526b2e9481c8e2a17755e47039164a86c4070446e3a4614d"
|
||||
dependencies = [
|
||||
"thiserror-impl",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "thiserror-impl"
|
||||
version = "1.0.50"
|
||||
version = "1.0.52"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8"
|
||||
checksum = "e7fbe9b594d6568a6a1443250a7e67d80b74e1e96f6d1715e1e21cc1888291d3"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.39",
|
||||
"syn 2.0.43",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -1463,7 +1452,7 @@ dependencies = [
|
||||
"once_cell",
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.39",
|
||||
"syn 2.0.43",
|
||||
"wasm-bindgen-shared",
|
||||
]
|
||||
|
||||
@@ -1485,7 +1474,7 @@ checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.39",
|
||||
"syn 2.0.43",
|
||||
"wasm-bindgen-backend",
|
||||
"wasm-bindgen-shared",
|
||||
]
|
||||
@@ -1542,15 +1531,6 @@ dependencies = [
|
||||
"windows-targets 0.48.5",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "windows-sys"
|
||||
version = "0.48.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
|
||||
dependencies = [
|
||||
"windows-targets 0.48.5",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "windows-sys"
|
||||
version = "0.52.0"
|
||||
|
||||
@@ -66,12 +66,12 @@ Pipeline:
|
||||
|
||||
| | Nearest | Box | Bilinear | Bicubic | Lanczos3 |
|
||||
|------------|:-------:|:-----:|:--------:|:-------:|:--------:|
|
||||
| image | 31.83 | - | 90.73 | 157.56 | 210.36 |
|
||||
| resize | - | 26.82 | 54.07 | 97.90 | 144.95 |
|
||||
| libvips | 7.65 | 59.54 | 19.80 | 30.02 | 39.42 |
|
||||
| fir rust | 0.28 | 9.79 | 15.47 | 27.34 | 39.58 |
|
||||
| fir sse4.1 | 0.28 | 3.96 | 5.68 | 10.12 | 15.86 |
|
||||
| fir avx2 | 0.28 | 2.73 | 3.59 | 6.82 | 13.16 |
|
||||
| image | 28.20 | - | 82.45 | 134.07 | 192.70 |
|
||||
| resize | - | 26.83 | 53.56 | 97.73 | 144.63 |
|
||||
| libvips | 7.73 | 60.66 | 19.84 | 30.15 | 39.46 |
|
||||
| fir rust | 0.28 | 9.78 | 15.46 | 27.36 | 39.57 |
|
||||
| fir sse4.1 | 0.28 | 3.87 | 5.59 | 9.89 | 15.44 |
|
||||
| fir avx2 | 0.28 | 2.67 | 3.54 | 6.96 | 13.22 |
|
||||
<!-- bench_compare_rgb end -->
|
||||
|
||||
<!-- bench_compare_rgba start -->
|
||||
@@ -88,11 +88,11 @@ Pipeline:
|
||||
|
||||
| | Nearest | Box | Bilinear | Bicubic | Lanczos3 |
|
||||
|------------|:-------:|:------:|:--------:|:-------:|:--------:|
|
||||
| resize | - | 43.26 | 85.63 | 147.73 | 211.88 |
|
||||
| libvips | 10.14 | 121.46 | 190.25 | 337.97 | 500.06 |
|
||||
| fir rust | 0.19 | 20.22 | 27.17 | 41.57 | 56.84 |
|
||||
| fir sse4.1 | 0.19 | 10.04 | 12.29 | 18.50 | 25.14 |
|
||||
| fir avx2 | 0.19 | 7.12 | 8.20 | 13.86 | 22.36 |
|
||||
| resize | - | 42.96 | 85.43 | 147.79 | 211.49 |
|
||||
| libvips | 10.06 | 122.80 | 188.97 | 338.18 | 499.99 |
|
||||
| fir rust | 0.19 | 20.10 | 27.08 | 41.32 | 56.79 |
|
||||
| fir sse4.1 | 0.19 | 10.03 | 12.24 | 18.57 | 25.15 |
|
||||
| fir avx2 | 0.19 | 6.98 | 8.26 | 13.97 | 21.55 |
|
||||
<!-- bench_compare_rgba end -->
|
||||
|
||||
<!-- bench_compare_l start -->
|
||||
@@ -108,12 +108,12 @@ Pipeline:
|
||||
|
||||
| | Nearest | Box | Bilinear | Bicubic | Lanczos3 |
|
||||
|------------|:-------:|:-----:|:--------:|:-------:|:--------:|
|
||||
| image | 25.71 | - | 57.23 | 86.20 | 113.09 |
|
||||
| resize | - | 10.85 | 18.90 | 38.28 | 65.62 |
|
||||
| libvips | 4.69 | 25.00 | 9.63 | 13.40 | 17.98 |
|
||||
| fir rust | 0.16 | 4.29 | 5.27 | 7.50 | 11.41 |
|
||||
| fir sse4.1 | 0.16 | 1.88 | 2.32 | 3.61 | 5.95 |
|
||||
| fir avx2 | 0.16 | 1.70 | 1.92 | 2.35 | 4.47 |
|
||||
| image | 25.96 | - | 56.78 | 84.17 | 112.12 |
|
||||
| resize | - | 10.67 | 18.54 | 39.06 | 62.71 |
|
||||
| libvips | 4.72 | 24.93 | 9.70 | 13.68 | 18.07 |
|
||||
| fir rust | 0.15 | 4.08 | 5.24 | 7.48 | 11.33 |
|
||||
| fir sse4.1 | 0.15 | 1.86 | 2.30 | 3.58 | 5.88 |
|
||||
| fir avx2 | 0.15 | 1.66 | 1.86 | 2.24 | 4.21 |
|
||||
<!-- bench_compare_l end -->
|
||||
|
||||
## Examples
|
||||
|
||||
@@ -9,17 +9,17 @@ Environment:
|
||||
- RAM: DDR4 3800 MHz
|
||||
{% endif -%}
|
||||
- Ubuntu 22.04 (linux 6.2.0)
|
||||
- Rust 1.74.0
|
||||
- Rust 1.75.0
|
||||
- criterion = "0.5.1"
|
||||
- fast_image_resize = "2.7.3"
|
||||
- fast_image_resize = "3.0.0"
|
||||
{% if arch_id == "wasm32" -%}
|
||||
- wasmtime = "15.0.0"
|
||||
- wasmtime = "16.0.0"
|
||||
{% endif %}
|
||||
|
||||
Other libraries used to compare of resizing speed:
|
||||
|
||||
- image = "0.24.7" (<https://crates.io/crates/image>)
|
||||
- resize = "0.8.2" (<https://crates.io/crates/resize>)
|
||||
- resize = "0.8.3" (<https://crates.io/crates/resize>)
|
||||
{% if arch_id != "wasm32" -%}
|
||||
- libvips = "8.12.1" (single-threaded mode, cache disabled)
|
||||
{% endif %}
|
||||
|
||||
+45
-45
@@ -6,15 +6,15 @@ Environment:
|
||||
- CPU: AMD Ryzen 9 5950X
|
||||
- RAM: DDR4 3800 MHz
|
||||
- Ubuntu 22.04 (linux 6.2.0)
|
||||
- Rust 1.74.0
|
||||
- Rust 1.75.0
|
||||
- criterion = "0.5.1"
|
||||
- fast_image_resize = "2.7.3"
|
||||
- fast_image_resize = "3.0.0"
|
||||
|
||||
|
||||
Other libraries used to compare of resizing speed:
|
||||
|
||||
- image = "0.24.7" (<https://crates.io/crates/image>)
|
||||
- resize = "0.8.2" (<https://crates.io/crates/resize>)
|
||||
- resize = "0.8.3" (<https://crates.io/crates/resize>)
|
||||
- libvips = "8.12.1" (single-threaded mode, cache disabled)
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ Pipeline:
|
||||
|
||||
| | Nearest | Box | Bilinear | Bicubic | Lanczos3 |
|
||||
|------------|:-------:|:-----:|:--------:|:-------:|:--------:|
|
||||
| image | 31.83 | - | 90.73 | 157.56 | 210.36 |
|
||||
| resize | - | 26.82 | 54.07 | 97.90 | 144.95 |
|
||||
| libvips | 7.65 | 59.54 | 19.80 | 30.02 | 39.42 |
|
||||
| fir rust | 0.28 | 9.79 | 15.47 | 27.34 | 39.58 |
|
||||
| fir sse4.1 | 0.28 | 3.96 | 5.68 | 10.12 | 15.86 |
|
||||
| fir avx2 | 0.28 | 2.73 | 3.59 | 6.82 | 13.16 |
|
||||
| image | 28.20 | - | 82.45 | 134.07 | 192.70 |
|
||||
| resize | - | 26.83 | 53.56 | 97.73 | 144.63 |
|
||||
| libvips | 7.73 | 60.66 | 19.84 | 30.15 | 39.46 |
|
||||
| fir rust | 0.28 | 9.78 | 15.46 | 27.36 | 39.57 |
|
||||
| fir sse4.1 | 0.28 | 3.87 | 5.59 | 9.89 | 15.44 |
|
||||
| fir avx2 | 0.28 | 2.67 | 3.54 | 6.96 | 13.22 |
|
||||
<!-- bench_compare_rgb end -->
|
||||
|
||||
<!-- bench_compare_rgba start -->
|
||||
@@ -61,11 +61,11 @@ Pipeline:
|
||||
|
||||
| | Nearest | Box | Bilinear | Bicubic | Lanczos3 |
|
||||
|------------|:-------:|:------:|:--------:|:-------:|:--------:|
|
||||
| resize | - | 43.26 | 85.63 | 147.73 | 211.88 |
|
||||
| libvips | 10.14 | 121.46 | 190.25 | 337.97 | 500.06 |
|
||||
| fir rust | 0.19 | 20.22 | 27.17 | 41.57 | 56.84 |
|
||||
| fir sse4.1 | 0.19 | 10.04 | 12.29 | 18.50 | 25.14 |
|
||||
| fir avx2 | 0.19 | 7.12 | 8.20 | 13.86 | 22.36 |
|
||||
| resize | - | 42.96 | 85.43 | 147.79 | 211.49 |
|
||||
| libvips | 10.06 | 122.80 | 188.97 | 338.18 | 499.99 |
|
||||
| fir rust | 0.19 | 20.10 | 27.08 | 41.32 | 56.79 |
|
||||
| fir sse4.1 | 0.19 | 10.03 | 12.24 | 18.57 | 25.15 |
|
||||
| fir avx2 | 0.19 | 6.98 | 8.26 | 13.97 | 21.55 |
|
||||
<!-- bench_compare_rgba end -->
|
||||
|
||||
<!-- bench_compare_l start -->
|
||||
@@ -81,12 +81,12 @@ Pipeline:
|
||||
|
||||
| | Nearest | Box | Bilinear | Bicubic | Lanczos3 |
|
||||
|------------|:-------:|:-----:|:--------:|:-------:|:--------:|
|
||||
| image | 25.71 | - | 57.23 | 86.20 | 113.09 |
|
||||
| resize | - | 10.85 | 18.90 | 38.28 | 65.62 |
|
||||
| libvips | 4.69 | 25.00 | 9.63 | 13.40 | 17.98 |
|
||||
| fir rust | 0.16 | 4.29 | 5.27 | 7.50 | 11.41 |
|
||||
| fir sse4.1 | 0.16 | 1.88 | 2.32 | 3.61 | 5.95 |
|
||||
| fir avx2 | 0.16 | 1.70 | 1.92 | 2.35 | 4.47 |
|
||||
| image | 25.96 | - | 56.78 | 84.17 | 112.12 |
|
||||
| resize | - | 10.67 | 18.54 | 39.06 | 62.71 |
|
||||
| libvips | 4.72 | 24.93 | 9.70 | 13.68 | 18.07 |
|
||||
| fir rust | 0.15 | 4.08 | 5.24 | 7.48 | 11.33 |
|
||||
| fir sse4.1 | 0.15 | 1.86 | 2.30 | 3.58 | 5.88 |
|
||||
| fir avx2 | 0.15 | 1.66 | 1.86 | 2.24 | 4.21 |
|
||||
<!-- bench_compare_l end -->
|
||||
|
||||
<!-- bench_compare_la start -->
|
||||
@@ -105,10 +105,10 @@ Pipeline:
|
||||
|
||||
| | Nearest | Box | Bilinear | Bicubic | Lanczos3 |
|
||||
|------------|:-------:|:-----:|:--------:|:-------:|:--------:|
|
||||
| libvips | 6.44 | 72.80 | 117.74 | 205.61 | 293.02 |
|
||||
| fir rust | 0.17 | 11.10 | 13.06 | 17.49 | 24.11 |
|
||||
| fir sse4.1 | 0.17 | 6.24 | 7.32 | 9.88 | 13.85 |
|
||||
| fir avx2 | 0.17 | 4.13 | 4.74 | 6.44 | 9.22 |
|
||||
| libvips | 6.48 | 73.12 | 117.76 | 207.96 | 293.16 |
|
||||
| fir rust | 0.17 | 11.19 | 12.90 | 17.42 | 23.90 |
|
||||
| fir sse4.1 | 0.17 | 6.16 | 7.21 | 9.74 | 13.56 |
|
||||
| fir avx2 | 0.17 | 3.95 | 4.57 | 6.41 | 9.24 |
|
||||
<!-- bench_compare_la end -->
|
||||
|
||||
<!-- bench_compare_rgb16 start -->
|
||||
@@ -124,12 +124,12 @@ Pipeline:
|
||||
|
||||
| | Nearest | Box | Bilinear | Bicubic | Lanczos3 |
|
||||
|------------|:-------:|:-----:|:--------:|:-------:|:--------:|
|
||||
| image | 29.30 | - | 83.82 | 135.59 | 187.38 |
|
||||
| resize | - | 26.35 | 50.23 | 96.71 | 143.53 |
|
||||
| libvips | 16.00 | 63.15 | 54.30 | 101.65 | 125.21 |
|
||||
| fir rust | 0.35 | 24.72 | 41.75 | 75.50 | 107.55 |
|
||||
| fir sse4.1 | 0.35 | 16.26 | 23.22 | 36.94 | 52.17 |
|
||||
| fir avx2 | 0.35 | 14.07 | 19.69 | 30.93 | 38.58 |
|
||||
| image | 28.92 | - | 82.94 | 134.72 | 185.59 |
|
||||
| resize | - | 26.91 | 49.69 | 95.90 | 141.39 |
|
||||
| libvips | 16.00 | 63.29 | 54.38 | 102.70 | 126.07 |
|
||||
| fir rust | 0.34 | 26.13 | 42.62 | 77.16 | 112.71 |
|
||||
| fir sse4.1 | 0.34 | 16.06 | 23.04 | 36.76 | 51.99 |
|
||||
| fir avx2 | 0.34 | 13.99 | 19.70 | 30.89 | 38.32 |
|
||||
<!-- bench_compare_rgb16 end -->
|
||||
|
||||
<!-- bench_compare_rgba16 start -->
|
||||
@@ -146,11 +146,11 @@ Pipeline:
|
||||
|
||||
| | Nearest | Box | Bilinear | Bicubic | Lanczos3 |
|
||||
|------------|:-------:|:------:|:--------:|:-------:|:--------:|
|
||||
| resize | - | 43.62 | 84.14 | 144.98 | 207.50 |
|
||||
| libvips | 22.68 | 128.33 | 205.29 | 364.70 | 535.40 |
|
||||
| fir rust | 0.38 | 60.18 | 78.69 | 116.18 | 155.10 |
|
||||
| fir sse4.1 | 0.38 | 31.96 | 42.41 | 64.24 | 86.47 |
|
||||
| fir avx2 | 0.38 | 20.40 | 26.04 | 36.97 | 48.46 |
|
||||
| resize | - | 43.62 | 84.16 | 144.69 | 207.01 |
|
||||
| libvips | 22.70 | 130.12 | 205.66 | 365.03 | 536.16 |
|
||||
| fir rust | 0.38 | 60.71 | 79.18 | 116.62 | 155.54 |
|
||||
| fir sse4.1 | 0.38 | 32.14 | 42.66 | 64.57 | 86.63 |
|
||||
| fir avx2 | 0.38 | 20.34 | 25.74 | 36.85 | 48.39 |
|
||||
<!-- bench_compare_rgba16 end -->
|
||||
|
||||
<!-- bench_compare_l16 start -->
|
||||
@@ -166,12 +166,12 @@ Pipeline:
|
||||
|
||||
| | Nearest | Box | Bilinear | Bicubic | Lanczos3 |
|
||||
|------------|:-------:|:-----:|:--------:|:-------:|:--------:|
|
||||
| image | 26.44 | - | 59.57 | 88.45 | 118.20 |
|
||||
| resize | - | 10.07 | 16.27 | 33.82 | 59.02 |
|
||||
| libvips | 7.71 | 26.87 | 21.95 | 37.06 | 46.97 |
|
||||
| fir rust | 0.18 | 14.41 | 21.24 | 30.19 | 40.49 |
|
||||
| fir sse4.1 | 0.18 | 5.72 | 7.92 | 13.43 | 19.29 |
|
||||
| fir avx2 | 0.18 | 5.77 | 6.68 | 8.97 | 13.78 |
|
||||
| image | 26.00 | - | 57.17 | 85.75 | 114.97 |
|
||||
| resize | - | 9.95 | 16.13 | 33.72 | 58.90 |
|
||||
| libvips | 7.87 | 26.35 | 21.70 | 36.52 | 45.96 |
|
||||
| fir rust | 0.17 | 14.11 | 20.97 | 29.53 | 40.03 |
|
||||
| fir sse4.1 | 0.17 | 5.59 | 7.71 | 13.11 | 19.02 |
|
||||
| fir avx2 | 0.17 | 5.70 | 6.67 | 8.79 | 13.84 |
|
||||
<!-- bench_compare_l16 end -->
|
||||
|
||||
<!-- bench_compare_la16 start -->
|
||||
@@ -190,8 +190,8 @@ Pipeline:
|
||||
|
||||
| | Nearest | Box | Bilinear | Bicubic | Lanczos3 |
|
||||
|------------|:-------:|:-----:|:--------:|:-------:|:--------:|
|
||||
| libvips | 12.54 | 79.43 | 133.76 | 231.51 | 328.53 |
|
||||
| fir rust | 0.19 | 26.33 | 34.62 | 52.63 | 72.48 |
|
||||
| fir sse4.1 | 0.19 | 15.64 | 21.74 | 33.77 | 46.25 |
|
||||
| fir avx2 | 0.19 | 11.71 | 14.89 | 21.91 | 29.22 |
|
||||
| libvips | 12.55 | 79.43 | 133.92 | 232.67 | 328.01 |
|
||||
| fir rust | 0.19 | 27.70 | 36.68 | 51.82 | 72.60 |
|
||||
| fir sse4.1 | 0.19 | 15.27 | 21.39 | 33.56 | 46.19 |
|
||||
| fir avx2 | 0.19 | 11.53 | 14.72 | 21.77 | 28.98 |
|
||||
<!-- bench_compare_la16 end -->
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
pub use errors::*;
|
||||
|
||||
use crate::pixels::PixelExt;
|
||||
use crate::CpuExtensions;
|
||||
use crate::{ImageView, ImageViewMut};
|
||||
|
||||
Reference in New Issue
Block a user