Albumentations vs Torchvision Benchmarks
On this page
This route is reserved for benchmark results generated during the website build.
The benchmark implementation source is public:
- Benchmark transforms directory
- Torchvision implementation
- Torchvision multichannel implementation
- Torchvision video implementation
- Shared transform specs
Methodology Notes
The generated benchmark page should separate at least these cases:
- image transforms
- multichannel image transforms
- video or batched transform paths
- pipeline benchmarks
This matters because torchvision can be useful for tensor and batch operations, while Albumentations is usually evaluated as a per-sample CPU augmentation pipeline with target propagation.
The generated output should include hardware, Python version, library versions, image shape, channel count, and whether inputs are tensors or NumPy arrays.
Generated benchmark tables
Values are taken from the benchmark JSON downloaded during the website build. AlbumentationsX 2.2.5, Torchvision 0.26.0.
Run context: macOS-26.4.1-arm64-arm-64bit, Python 3.12.8, CPUs 16, media image, dataset files 50000, channels 3, runs 5.
Higher median throughput is better. Speedup range matches the interactive benchmark pages (AlbumentationsX interval vs competitor interval). — means unsupported or missing data.
RGB (micro)
| Transform | AlbumentationsX (median ± std) | Torchvision (median ± std) | Speedup (AlbX / other, range) |
|---|---|---|---|
| Affine | 1456 ± 23 | 331 ± 7 | 4.2-4.6x |
| AutoContrast | 1619 ± 44 | 399 ± 2 | 3.9-4.2x |
| Blur | 7544 ± 134 | — | — |
| Brightness | 9849 ± 99 | 1989 ± 9 | 4.9-5.0x |
| CLAHE | 644 ± 5 | — | — |
| CenterCrop128 | 95346 ± 1281 | 34279 ± 307 | 2.7-2.8x |
| ChannelDropout | 11971 ± 434 | — | — |
| ChannelShuffle | 8235 ± 86 | 5383 ± 12 | 1.5-1.5x |
| ColorJiggle | 1208 ± 16 | 133 ± 1 | 8.9-9.2x |
| ColorJitter | 1221 ± 10 | 131 ± 2 | 9.1-9.5x |
| Colorize | 3858 ± 11 | — | — |
| Contrast | 10045 ± 119 | 1228 ± 4 | 8.1-8.3x |
| CornerIllumination | 866 ± 28 | — | — |
| Dithering | 6 ± 0 | — | — |
| Elastic | 453 ± 2 | 8 ± 0 | 53-55x |
| Equalize | 1086 ± 12 | 946 ± 5 | 1.1-1.2x |
| Erasing | 27849 ± 4028 | 4175 ± 10 | 5.7-7.7x |
| GaussianBlur | 2462 ± 11 | 336 ± 4 | 7.2-7.4x |
| GaussianIllumination | 773 ± 21 | — | — |
| GaussianNoise | 328 ± 20 | — | — |
| Grayscale | 19593 ± 350 | 3409 ± 8 | 5.6-5.9x |
| HorizontalFlip | 13200 ± 430 | 1678 ± 15 | 7.5-8.2x |
| Hue | 1908 ± 18 | — | — |
| Invert | 31753 ± 1327 | 5195 ± 84 | 5.8-6.5x |
| JpegCompression | 1351 ± 11 | 925 ± 3 | 1.4-1.5x |
| LinearIllumination | 557 ± 18 | — | — |
| LongestMaxSize | 3847 ± 62 | — | — |
| MedianBlur | 1546 ± 16 | — | — |
| MotionBlur | 3847 ± 49 | — | — |
| Normalize | 1642 ± 26 | 1091 ± 6 | 1.5-1.5x |
| OpticalDistortion | 395 ± 4 | — | — |
| Pad | 34979 ± 3274 | 5072 ± 68 | 6.2-7.6x |
| Perspective | 1185 ± 9 | 268 ± 6 | 4.3-4.6x |
| PhotoMetricDistort | 1070 ± 19 | 129 ± 0 | 8.1-8.5x |
| PlankianJitter | 3278 ± 13 | — | — |
| PlasmaBrightness | 394 ± 9 | — | — |
| PlasmaContrast | 250 ± 6 | — | — |
| PlasmaShadow | 526 ± 8 | — | — |
| Posterize | 28724 ± 3259 | 5162 ± 6 | 4.9-6.2x |
| RGBShift | 5025 ± 48 | — | — |
| Rain | 2169 ± 27 | — | — |
| RandomCrop128 | 93574 ± 1964 | 31208 ± 564 | 2.9-3.1x |
| RandomGamma | 14482 ± 424 | — | — |
| RandomJigsaw | 9413 ± 136 | — | — |
| RandomResizedCrop | 4354 ± 22 | 939 ± 23 | 4.5-4.8x |
| RandomRotate90 | 8652 ± 167 | — | — |
| Resize | 3542 ± 11 | 288 ± 2 | 12-12x |
| Rotate | 2996 ± 12 | 451 ± 9 | 6.5-6.8x |
| SaltAndPepper | 946 ± 4 | — | — |
| Saturation | 1389 ± 27 | — | — |
| Sharpen | 2221 ± 35 | 525 ± 1 | 4.2-4.3x |
| Shear | 1322 ± 7 | — | — |
| SmallestMaxSize | 2676 ± 7 | — | — |
| Snow | 754 ± 4 | — | — |
| Solarize | 13505 ± 442 | 1297 ± 2 | 10-11x |
| ThinPlateSpline | 92 ± 1 | — | — |
| Transpose | 8184 ± 199 | — | — |
| UnsharpMask | 3063 ± 37 | — | — |
| VerticalFlip | 29169 ± 2657 | 5023 ± 29 | 5.2-6.4x |
Multichannel
| Transform | AlbumentationsX (median ± std) | Torchvision (median ± std) | Speedup (AlbX / other, range) |
|---|---|---|---|
| Affine | 670 ± 11 | 198 ± 2 | 3.3-3.5x |
| AutoContrast | 437 ± 15 | 780 ± 2 | 0.5-0.6x |
| Blur | 2567 ± 100 | — | — |
| Brightness | 3013 ± 284 | 985 ± 3 | 2.8-3.4x |
| CenterCrop128 | 51003 ± 217 | 36610 ± 143 | 1.4-1.4x |
| ChannelDropout | 9472 ± 959 | — | — |
| ChannelShuffle | 2641 ± 106 | 1892 ± 6 | 1.3-1.5x |
| Contrast | 3052 ± 99 | 572 ± 4 | 5.1-5.5x |
| CornerIllumination | 289 ± 16 | — | — |
| Elastic | 335 ± 3 | 8 ± 0 | 42-43x |
| Erasing | 19946 ± 4338 | 6362 ± 227 | 2.4-4.0x |
| GaussianBlur | 802 ± 12 | 121 ± 1 | 6.5-6.8x |
| GaussianIllumination | 295 ± 9 | — | — |
| GaussianNoise | 109 ± 3 | — | — |
| Grayscale | 392 ± 3 | 1491 ± 7 | 0.3-0.3x |
| HorizontalFlip | 2630 ± 73 | 18238 ± 318 | 0.1-0.2x |
| Invert | 16207 ± 3388 | 23672 ± 108 | 0.5-0.8x |
| JpegCompression | 160 ± 0 | 258 ± 1 | 0.6-0.6x |
| LinearIllumination | 206 ± 3 | — | — |
| LongestMaxSize | 858 ± 16 | — | — |
| MedianBlur | 419 ± 5 | — | — |
| MotionBlur | 1342 ± 65 | — | — |
| Normalize | 1311 ± 54 | 1375 ± 1 | 0.9-1.0x |
| OpticalDistortion | 290 ± 7 | — | — |
| Pad | 8066 ± 88 | 15071 ± 103 | 0.5-0.5x |
| Perspective | 602 ± 17 | 176 ± 0 | 3.3-3.5x |
| PlasmaBrightness | 151 ± 3 | — | — |
| PlasmaContrast | 85 ± 0 | — | — |
| PlasmaShadow | 253 ± 4 | — | — |
| Posterize | 23588 ± 5135 | 23074 ± 276 | 0.8-1.3x |
| RandomCrop128 | 47302 ± 2384 | 29917 ± 1842 | 1.4-1.8x |
| RandomGamma | 5465 ± 672 | — | — |
| RandomJigsaw | 5609 ± 44 | — | — |
| RandomResizedCrop | 986 ± 22 | 335 ± 2 | 2.9-3.0x |
| RandomRotate90 | 1478 ± 24 | — | — |
| Rotate | 1772 ± 31 | 246 ± 2 | 7.0-7.4x |
| Sharpen | 770 ± 11 | 286 ± 4 | 2.6-2.8x |
| Shear | 662 ± 7 | — | — |
| SmallestMaxSize | 603 ± 18 | — | — |
| Solarize | 5615 ± 502 | 567 ± 2 | 9.0-11x |
| ThinPlateSpline | 85 ± 1 | — | — |
| VerticalFlip | 9190 ± 2941 | 19143 ± 130 | 0.3-0.6x |
Video
| Transform | AlbumentationsX (median ± std) | Torchvision (median ± std) | Speedup (AlbX / other, range) |
|---|---|---|---|
| AdditiveNoise | 9.6 ± 0.1 | — | — |
| AdvancedBlur | 24 ± 1.3 | — | — |
| Affine | 25 ± 0.1 | 453 ± 0.1 | 0.1-0.1x |
| AtmosphericFog | 6.0 ± 0.1 | — | — |
| AutoContrast | 22 ± 0.3 | 578 ± 17 | 0.0-0.0x |
| Blur | 110 ± 0.5 | — | — |
| Brightness | 241 ± 1.9 | 756 ± 435 | 0.2-0.8x |
| CLAHE | 10 ± 0.1 | — | — |
| CenterCrop128 | 975 ± 13 | 1133 ± 235 | 0.7-1.1x |
| ChannelDropout | 205 ± 0.7 | — | — |
| ChannelShuffle | 26 ± 0.1 | 958 ± 0.2 | 0.0-0.0x |
| ChannelSwap | 24 ± 0.3 | — | — |
| ChromaticAberration | 8.6 ± 0.1 | — | — |
| CoarseDropout | 487 ± 6.0 | — | — |
| ColorJitter | 19 ± 0.9 | 69 ± 0.1 | 0.3-0.3x |
| ConstrainedCoarseDropout | 112591 ± 2961 | — | — |
| Contrast | 239 ± 1.8 | 547 ± 13 | 0.4-0.5x |
| CornerIllumination | 10 ± 0.2 | — | — |
| CropAndPad | 42 ± 1.6 | — | — |
| Defocus | 2.3 ± 0.0 | — | — |
| Dithering | 0.1 ± 0.0 | — | — |
| Downscale | 83 ± 1.4 | — | — |
| Elastic | 26 ± 0.3 | 127 ± 1.3 | 0.2-0.2x |
| Emboss | 47 ± 0.6 | — | — |
| Equalize | 16 ± 0.4 | 192 ± 1.2 | 0.1-0.1x |
| Erasing | 458 ± 7.5 | 255 ± 6.6 | 1.7-1.9x |
| FancyPCA | 1.8 ± 0.0 | — | — |
| FilmGrain | 4.7 ± 0.0 | — | — |
| GaussianBlur | 42 ± 0.7 | 543 ± 11 | 0.1-0.1x |
| GaussianIllumination | 10 ± 0.2 | — | — |
| GaussianNoise | 11 ± 0.4 | — | — |
| GlassBlur | 0.7 ± 0.0 | — | — |
| Grayscale | 82 ± 0.3 | 838 ± 467 | 0.1-0.2x |
| GridDistortion | 28 ± 0.2 | — | — |
| GridDropout | 93 ± 14 | — | — |
| GridMask | 199 ± 3.1 | — | — |
| HSV | 15 ± 0.9 | — | — |
| Halftone | 0.5 ± 0.2 | — | — |
| HorizontalFlip | 30 ± 0.1 | 978 ± 49 | 0.0-0.0x |
| Hue | 26 ± 2.2 | — | — |
| ISONoise | 8.6 ± 0.1 | — | — |
| Invert | 467 ± 27 | 843 ± 176 | 0.4-0.7x |
| JpegCompression | 25 ± 0.2 | — | — |
| LensFlare | 7.0 ± 0.1 | — | — |
| LinearIllumination | 10 ± 0.2 | — | — |
| LongestMaxSize | 28 ± 0.2 | — | — |
| MedianBlur | 24 ± 0.2 | — | — |
| Morphological | 219 ± 1.6 | — | — |
| MotionBlur | 80 ± 2.3 | — | — |
| MultiplicativeNoise | 40 ± 0.1 | — | — |
| Normalize | 22 ± 0.3 | 461 ± 0.2 | 0.0-0.0x |
| OpticalDistortion | 26 ± 0.3 | — | — |
| Pad | 302 ± 11 | 760 ± 338 | 0.3-0.7x |
| PadIfNeeded | 17 ± 0.2 | — | — |
| Perspective | 22 ± 0.1 | 435 ± 0.1 | 0.0-0.0x |
| PhotoMetricDistort | 16 ± 0.6 | — | — |
| PiecewiseAffine | 25 ± 0.3 | — | — |
| PixelDropout | 76 ± 0.2 | — | — |
| PlankianJitter | 59 ± 0.4 | — | — |
| PlasmaBrightness | 4.4 ± 0.0 | — | — |
| PlasmaContrast | 2.9 ± 0.0 | — | — |
| PlasmaShadow | 6.8 ± 0.0 | — | — |
| Posterize | 240 ± 8.1 | 631 ± 15 | 0.4-0.4x |
| RGBShift | 9.4 ± 0.1 | — | — |
| Rain | 27 ± 0.6 | — | — |
| RandomCrop128 | 933 ± 6.6 | 1133 ± 15 | 0.8-0.8x |
| RandomFog | 0.2 ± 0.0 | — | — |
| RandomGamma | 238 ± 0.8 | — | — |
| RandomGravel | 24 ± 1.0 | — | — |
| RandomGridShuffle | 11 ± 0.0 | — | — |
| RandomResizedCrop | 28 ± 0.5 | 182 ± 16 | 0.1-0.2x |
| RandomRotate90 | 41 ± 3.9 | — | — |
| RandomScale | 56 ± 1.4 | — | — |
| RandomShadow | 8.0 ± 0.6 | — | — |
| RandomSizedCrop | 24 ± 0.1 | — | — |
| RandomSunFlare | 5.3 ± 0.0 | — | — |
| RandomToneCurve | 239 ± 1.4 | — | — |
| Resize | 26 ± 0.2 | 140 ± 35 | 0.1-0.2x |
| RingingOvershoot | 2.6 ± 0.0 | — | — |
| Rotate | 49 ± 0.1 | 534 ± 0.2 | 0.1-0.1x |
| SafeRotate | 24 ± 0.0 | — | — |
| SaltAndPepper | 12 ± 0.0 | — | — |
| Saturation | 19 ± 0.7 | — | — |
| Sharpen | 38 ± 0.4 | 420 ± 9.0 | 0.1-0.1x |
| Shear | 23 ± 0.1 | — | — |
| ShiftScaleRotate | 24 ± 0.1 | — | — |
| ShotNoise | 0.9 ± 0.0 | — | — |
| SmallestMaxSize | 18 ± 0.1 | — | — |
| Snow | 13 ± 0.2 | — | — |
| Solarize | 249 ± 8.9 | 628 ± 5.9 | 0.4-0.4x |
| Spatter | 7.2 ± 0.1 | — | — |
| SquareSymmetry | 37 ± 3.2 | — | — |
| Superpixels | 0.1 ± 0.0 | — | — |
| ThinPlateSpline | 23 ± 0.4 | — | — |
| ToSepia | 135 ± 0.4 | — | — |
| Transpose | 28 ± 0.1 | — | — |
| UnsharpMask | 7.6 ± 0.1 | — | — |
| VerticalFlip | 591 ± 20 | 978 ± 5.2 | 0.6-0.6x |
| Vignetting | 9.6 ± 0.9 | — | — |
| WaterRefraction | 22 ± 0.1 | — | — |
| ZoomBlur | 3.7 ± 0.2 | — | — |