Skip to content

Commit

Permalink
update benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
octu0 committed Apr 12, 2021
1 parent e6d7fd5 commit fc6350b
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 26 deletions.
79 changes: 54 additions & 25 deletions benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ pkg: github.com/octu0/blurry/benchmark
cpu: Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
BenchmarkBlur
BenchmarkBlur/bild/blur/Box
BenchmarkBlur/bild/blur/Box-8 152 7841712 ns/op 640313 B/op 11 allocs/op
BenchmarkBlur/bild/blur/Box-8 153 7766834 ns/op 640239 B/op 11 allocs/op
BenchmarkBlur/bild/blur/Gaussian
BenchmarkBlur/bild/blur/Gaussian-8 327 3555331 ns/op 1262504 B/op 21 allocs/op
BenchmarkBlur/bild/blur/Gaussian-8 325 3620899 ns/op 1262526 B/op 21 allocs/op
BenchmarkBlur/imaging/Blur
BenchmarkBlur/imaging/Blur-8 788 1482044 ns/op 793709 B/op 45 allocs/op
BenchmarkBlur/imaging/Blur-8 793 1523559 ns/op 793696 B/op 45 allocs/op
BenchmarkBlur/stackblur-go
BenchmarkBlur/stackblur-go-8 246 4851663 ns/op 925933 B/op 153609 allocs/op
BenchmarkBlur/stackblur-go-8 235 5144266 ns/op 925934 B/op 153609 allocs/op
BenchmarkBlur/libyuv/ARGBBlur
BenchmarkBlur/libyuv/ARGBBlur-8 1854 650947 ns/op 10182723 B/op 3 allocs/op
BenchmarkBlur/libyuv/ARGBBlur-8 1860 642530 ns/op 10182723 B/op 3 allocs/op
BenchmarkBlur/blurry/Boxblur
BenchmarkBlur/blurry/Boxblur-8 4244 304893 ns/op 161 B/op 2 allocs/op
BenchmarkBlur/blurry/Boxblur-8 3603 339641 ns/op 174 B/op 2 allocs/op
BenchmarkBlur/blurry/Gaussianblur
BenchmarkBlur/blurry/Gaussianblur-8 5559 209911 ns/op 144 B/op 2 allocs/op
BenchmarkBlur/blurry/Gaussianblur-8 5870 210481 ns/op 88 B/op 2 allocs/op
BenchmarkBlur/blurry/Boxblur/D
BenchmarkBlur/blurry/Boxblur/D-8 3573 313649 ns/op 311361 B/op 2 allocs/op
BenchmarkBlur/blurry/Boxblur/D-8 2962 349455 ns/op 311361 B/op 2 allocs/op
BenchmarkBlur/blurry/Gaussianblur/D
BenchmarkBlur/blurry/Gaussianblur/D-8 5192 230376 ns/op 311361 B/op 2 allocs/op
BenchmarkBlur/blurry/Gaussianblur/D-8 5198 229508 ns/op 311361 B/op 2 allocs/op
```

## Sobel
Expand All @@ -42,11 +42,11 @@ pkg: github.com/octu0/blurry/benchmark
cpu: Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
BenchmarkSobel
BenchmarkSobel/bild/Sobel
BenchmarkSobel/bild/Sobel-8 217 5576115 ns/op 2196792 B/op 32 allocs/op
BenchmarkSobel/bild/Sobel-8 199 5919168 ns/op 2196808 B/op 32 allocs/op
BenchmarkSobel/libyuv/ARGBSobel
BenchmarkSobel/libyuv/ARGBSobel-8 16981 70402 ns/op 311361 B/op 2 allocs/op
BenchmarkSobel/libyuv/ARGBSobel-8 17155 69999 ns/op 311361 B/op 2 allocs/op
BenchmarkSobel/blurry/Sobel
BenchmarkSobel/blurry/Sobel-8 5600 221934 ns/op 311488 B/op 3 allocs/op
BenchmarkSobel/blurry/Sobel-8 6208 197788 ns/op 311488 B/op 3 allocs/op
```

## Contrast
Expand All @@ -60,13 +60,13 @@ pkg: github.com/octu0/blurry/benchmark
cpu: Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
BenchmarkContrast
BenchmarkContrast/bild/Contrast
BenchmarkContrast/bild/Contrast-8 6477 177733 ns/op 311705 B/op 6 allocs/op
BenchmarkContrast/bild/Contrast-8 6475 182658 ns/op 311707 B/op 6 allocs/op
BenchmarkContrast/imaging/Contrast
BenchmarkContrast/imaging/Contrast-8 8548 144601 ns/op 313794 B/op 7 allocs/op
BenchmarkContrast/imaging/Contrast-8 8158 148605 ns/op 313795 B/op 7 allocs/op
BenchmarkContrast/blurry/Contrast
BenchmarkContrast/blurry/Contrast-8 10000 108199 ns/op 119 B/op 2 allocs/op
BenchmarkContrast/blurry/Contrast-8 10000 103731 ns/op 88 B/op 2 allocs/op
BenchmarkContrast/blurry/Contrast/D
BenchmarkContrast/blurry/Contrast/D-8 8751 132169 ns/op 311360 B/op 2 allocs/op
BenchmarkContrast/blurry/Contrast/D-8 9404 124772 ns/op 311360 B/op 2 allocs/op
```

## Gamma
Expand All @@ -78,12 +78,11 @@ pkg: github.com/octu0/blurry/benchmark
cpu: Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
BenchmarkGamma
BenchmarkGamma/bild/Gamma
BenchmarkGamma/bild/Gamma-8 6238 190844 ns/op 311697 B/op 6 allocs/op
BenchmarkGamma/bild/Gamma-8 6052 199434 ns/op 311708 B/op 6 allocs/op
BenchmarkGamma/imaging/Gamma
BenchmarkGamma/imaging/Gamma-8 8145 155915 ns/op 313794 B/op 7 allocs/op
BenchmarkGamma/imaging/Gamma-8 7441 159114 ns/op 313794 B/op 7 allocs/op
BenchmarkGamma/blurry/Gamma
BenchmarkGamma/blurry/Gamma-8 6817 176591 ns/op 311487 B/op 3 allocs/op
BenchmarkGamma/blurry/Gamma-8 7164 166228 ns/op 311487 B/op 3 allocs/op
```

## Grayscale
Expand All @@ -97,13 +96,43 @@ pkg: github.com/octu0/blurry/benchmark
cpu: Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
BenchmarkGrayscale
BenchmarkGrayscale/bild/Grayscale
BenchmarkGrayscale/bild/Grayscale-8 7317 166366 ns/op 622812 B/op 6 allocs/op
BenchmarkGrayscale/bild/Grayscale-8 7167 165142 ns/op 622811 B/op 6 allocs/op
BenchmarkGrayscale/imaging/Grayscale
BenchmarkGrayscale/imaging/Grayscale-8 8612 142327 ns/op 313515 B/op 6 allocs/op
BenchmarkGrayscale/imaging/Grayscale-8 8526 148598 ns/op 313514 B/op 6 allocs/op
BenchmarkGrayscale/libyuv/ARGBGrayTo
BenchmarkGrayscale/libyuv/ARGBGrayTo-8 28510 41736 ns/op 311360 B/op 2 allocs/op
BenchmarkGrayscale/libyuv/ARGBGrayTo-8 27379 42292 ns/op 311360 B/op 2 allocs/op
BenchmarkGrayscale/blurry/Grayscale
BenchmarkGrayscale/blurry/Grayscale-8 10000 117069 ns/op 119 B/op 2 allocs/op
BenchmarkGrayscale/blurry/Grayscale-8 13602 88568 ns/op 110 B/op 2 allocs/op
BenchmarkGrayscale/blurry/Grayscale/D
BenchmarkGrayscale/blurry/Grayscale/D-8 8568 140341 ns/op 311361 B/op 2 allocs/op
BenchmarkGrayscale/blurry/Grayscale/D-8 10000 112966 ns/op 311361 B/op 2 allocs/op
```

## Rotate

```
BenchmarkRotate
BenchmarkRotate/bild/Rotate/90
BenchmarkRotate/bild/Rotate/90-8 554 2065101 ns/op 1237028 B/op 115685 allocs/op
BenchmarkRotate/bild/Rotate/180
BenchmarkRotate/bild/Rotate/180-8 481 2407387 ns/op 1540314 B/op 153605 allocs/op
BenchmarkRotate/bild/Rotate/270
BenchmarkRotate/bild/Rotate/270-8 541 2133470 ns/op 1236932 B/op 115685 allocs/op
BenchmarkRotate/imaging/90
BenchmarkRotate/imaging/90-8 9048 139387 ns/op 314179 B/op 6 allocs/op
BenchmarkRotate/imaging/180
BenchmarkRotate/imaging/180-8 9326 124555 ns/op 313542 B/op 6 allocs/op
BenchmarkRotate/imaging/270
BenchmarkRotate/imaging/270-8 7854 154786 ns/op 314162 B/op 6 allocs/op
BenchmarkRotate/libyuv/ARGBRotate/90
BenchmarkRotate/libyuv/ARGBRotate/90-8 13758 78805 ns/op 311360 B/op 2 allocs/op
BenchmarkRotate/libyuv/ARGBRotate/180
BenchmarkRotate/libyuv/ARGBRotate/180-8 35031 33162 ns/op 311361 B/op 2 allocs/op
BenchmarkRotate/libyuv/ARGBRotate/270
BenchmarkRotate/libyuv/ARGBRotate/270-8 15786 76373 ns/op 311361 B/op 2 allocs/op
BenchmarkRotate/blurry/Rotate/90
BenchmarkRotate/blurry/Rotate/90-8 6277 194899 ns/op 311489 B/op 3 allocs/op
BenchmarkRotate/blurry/Rotate/180
BenchmarkRotate/blurry/Rotate/180-8 7162 165843 ns/op 311489 B/op 3 allocs/op
BenchmarkRotate/blurry/Rotate/270
BenchmarkRotate/blurry/Rotate/270-8 5829 204349 ns/op 311488 B/op 3 allocs/op
```
2 changes: 1 addition & 1 deletion benchmark/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ require (
github.com/anthonynsimon/bild v0.13.0
github.com/disintegration/imaging v1.6.2
github.com/esimov/stackblur-go v1.0.0
github.com/octu0/blurry v1.11.0
github.com/octu0/blurry v1.15.2-0.20210412121453-e6d7fd5426d0
)
2 changes: 2 additions & 0 deletions benchmark/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ github.com/octu0/blurry v1.8.2-0.20210405095037-6d0cb9047d7d h1:HSq09GbTjpsNQNkR
github.com/octu0/blurry v1.8.2-0.20210405095037-6d0cb9047d7d/go.mod h1:GPH1m9IKMVvQ8WBXzY+uWAdNxiKyy+J5TFCJvR38Ptc=
github.com/octu0/blurry v1.11.0 h1:1EIF7xRE+ctm7yhuZ3o74t9ZkWhHLe5lqs32uHuwvMo=
github.com/octu0/blurry v1.11.0/go.mod h1:GPH1m9IKMVvQ8WBXzY+uWAdNxiKyy+J5TFCJvR38Ptc=
github.com/octu0/blurry v1.15.2-0.20210412121453-e6d7fd5426d0 h1:jkafpq0WxsbmgTO6f7IZqpqeYsJUgi7eIFE7VSJtuL4=
github.com/octu0/blurry v1.15.2-0.20210412121453-e6d7fd5426d0/go.mod h1:GPH1m9IKMVvQ8WBXzY+uWAdNxiKyy+J5TFCJvR38Ptc=
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
Expand Down

0 comments on commit fc6350b

Please sign in to comment.