Skip to content

Commit

Permalink
update benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
octu0 committed Apr 5, 2021
1 parent 6d0cb90 commit c8ba0c2
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 30 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ USAGE:
blurry [global options] command [command options] [arguments...]
VERSION:
1.8.0
1.8.1
COMMANDS:
blockmozaic
Expand Down Expand Up @@ -283,21 +283,23 @@ pkg: github.com/octu0/blurry
cpu: Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
BenchmarkBlur
BenchmarkBlur/bild/blur/Box
BenchmarkBlur/bild/blur/Box-8 146 8315664 ns/op 640290 B/op 11 allocs/op
BenchmarkBlur/bild/blur/Box-8 150 7792666 ns/op 640322 B/op 11 allocs/op
BenchmarkBlur/bild/blur/Gaussian
BenchmarkBlur/bild/blur/Gaussian-8 325 3635977 ns/op 1262544 B/op 21 allocs/op
BenchmarkBlur/bild/blur/Gaussian-8 338 3317723 ns/op 1262513 B/op 21 allocs/op
BenchmarkBlur/imaging/Blur
BenchmarkBlur/imaging/Blur-8 760 1545757 ns/op 793698 B/op 45 allocs/op
BenchmarkBlur/imaging/Blur-8 801 1482781 ns/op 793696 B/op 45 allocs/op
BenchmarkBlur/stackblur-go
BenchmarkBlur/stackblur-go-8 240 4956251 ns/op 925933 B/op 153609 allocs/op
BenchmarkBlur/stackblur-go-8 242 4989647 ns/op 925932 B/op 153609 allocs/op
BenchmarkBlur/libyuv/ARGBBlur
BenchmarkBlur/libyuv/ARGBBlur-8 1843 638517 ns/op 10182723 B/op 3 allocs/op
BenchmarkBlur/blurry/Boxblur
BenchmarkBlur/blurry/Boxblur-8 2107 570486 ns/op 88 B/op 2 allocs/op
BenchmarkBlur/blurry/Boxblur-8 3666 355664 ns/op 173 B/op 2 allocs/op
BenchmarkBlur/blurry/Gaussianblur
BenchmarkBlur/blurry/Gaussianblur-8 1650 726642 ns/op 277 B/op 2 allocs/op
BenchmarkBlur/blurry/Gaussianblur-8 5731 216902 ns/op 142 B/op 2 allocs/op
BenchmarkBlur/blurry/Boxblur/D
BenchmarkBlur/blurry/Boxblur/D-8 1921 613347 ns/op 311360 B/op 2 allocs/op
BenchmarkBlur/blurry/Boxblur/D-8 3114 367782 ns/op 311361 B/op 2 allocs/op
BenchmarkBlur/blurry/Gaussianblur/D
BenchmarkBlur/blurry/Gaussianblur/D-8 1524 821776 ns/op 311361 B/op 2 allocs/op
BenchmarkBlur/blurry/Gaussianblur/D-8 5107 235022 ns/op 311361 B/op 2 allocs/op
```

### Edge
Expand Down
34 changes: 17 additions & 17 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 146 7852324 ns/op 640357 B/op 11 allocs/op
BenchmarkBlur/bild/blur/Box-8 150 7792666 ns/op 640322 B/op 11 allocs/op
BenchmarkBlur/bild/blur/Gaussian
BenchmarkBlur/bild/blur/Gaussian-8 326 3525118 ns/op 1262505 B/op 21 allocs/op
BenchmarkBlur/bild/blur/Gaussian-8 338 3317723 ns/op 1262513 B/op 21 allocs/op
BenchmarkBlur/imaging/Blur
BenchmarkBlur/imaging/Blur-8 758 1488900 ns/op 793699 B/op 45 allocs/op
BenchmarkBlur/imaging/Blur-8 801 1482781 ns/op 793696 B/op 45 allocs/op
BenchmarkBlur/stackblur-go
BenchmarkBlur/stackblur-go-8 244 4904914 ns/op 925934 B/op 153609 allocs/op
BenchmarkBlur/stackblur-go-8 242 4989647 ns/op 925932 B/op 153609 allocs/op
BenchmarkBlur/libyuv/ARGBBlur
BenchmarkBlur/libyuv/ARGBBlur-8 1824 658125 ns/op 10182723 B/op 3 allocs/op
BenchmarkBlur/libyuv/ARGBBlur-8 1843 638517 ns/op 10182723 B/op 3 allocs/op
BenchmarkBlur/blurry/Boxblur
BenchmarkBlur/blurry/Boxblur-8 2119 550435 ns/op 235 B/op 2 allocs/op
BenchmarkBlur/blurry/Boxblur-8 3666 355664 ns/op 173 B/op 2 allocs/op
BenchmarkBlur/blurry/Gaussianblur
BenchmarkBlur/blurry/Gaussianblur-8 1688 695338 ns/op 273 B/op 2 allocs/op
BenchmarkBlur/blurry/Gaussianblur-8 5731 216902 ns/op 142 B/op 2 allocs/op
BenchmarkBlur/blurry/Boxblur/D
BenchmarkBlur/blurry/Boxblur/D-8 2118 571312 ns/op 311361 B/op 2 allocs/op
BenchmarkBlur/blurry/Boxblur/D-8 3114 367782 ns/op 311361 B/op 2 allocs/op
BenchmarkBlur/blurry/Gaussianblur/D
BenchmarkBlur/blurry/Gaussianblur/D-8 1574 791992 ns/op 311360 B/op 2 allocs/op
BenchmarkBlur/blurry/Gaussianblur/D-8 5107 235022 ns/op 311361 B/op 2 allocs/op
```

## Sobel
Expand Down Expand Up @@ -60,13 +60,13 @@ pkg: github.com/octu0/blurry
cpu: Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
BenchmarkContrast
BenchmarkContrast/bild/Contrast
BenchmarkContrast/bild/Contrast-8 6205 174861 ns/op 311706 B/op 6 allocs/op
BenchmarkContrast/bild/Contrast-8 6124 175783 ns/op 311709 B/op 6 allocs/op
BenchmarkContrast/imaging/Contrast
BenchmarkContrast/imaging/Contrast-8 8984 137873 ns/op 313796 B/op 7 allocs/op
BenchmarkContrast/imaging/Contrast-8 8787 141287 ns/op 313794 B/op 7 allocs/op
BenchmarkContrast/blurry/Contrast
BenchmarkContrast/blurry/Contrast-8 10000 105816 ns/op 119 B/op 2 allocs/op
BenchmarkContrast/blurry/Contrast-8 10000 109437 ns/op 119 B/op 2 allocs/op
BenchmarkContrast/blurry/Contrast/D
BenchmarkContrast/blurry/Contrast/D-8 9189 129194 ns/op 311360 B/op 2 allocs/op
BenchmarkContrast/blurry/Contrast/D-8 8738 134192 ns/op 311360 B/op 2 allocs/op
```

## Gamma
Expand Down Expand Up @@ -96,11 +96,11 @@ pkg: github.com/octu0/blurry
cpu: Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
BenchmarkGrayscale
BenchmarkGrayscale/bild/Grayscale
BenchmarkGrayscale/bild/Grayscale-8 7040 168305 ns/op 622813 B/op 6 allocs/op
BenchmarkGrayscale/bild/Grayscale-8 6992 162029 ns/op 622813 B/op 6 allocs/op
BenchmarkGrayscale/imaging/Grayscale
BenchmarkGrayscale/imaging/Grayscale-8 8408 145552 ns/op 313514 B/op 6 allocs/op
BenchmarkGrayscale/imaging/Grayscale-8 7990 147952 ns/op 313512 B/op 6 allocs/op
BenchmarkGrayscale/blurry/Grayscale
BenchmarkGrayscale/blurry/Grayscale-8 6405 190756 ns/op 136 B/op 2 allocs/op
BenchmarkGrayscale/blurry/Grayscale-8 10000 116665 ns/op 119 B/op 2 allocs/op
BenchmarkGrayscale/blurry/Grayscale/D
BenchmarkGrayscale/blurry/Grayscale/D-8 5882 201173 ns/op 311360 B/op 2 allocs/op
BenchmarkGrayscale/blurry/Grayscale/D-8 8223 139790 ns/op 311360 B/op 2 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.7.0
github.com/octu0/blurry v1.8.2-0.20210405095037-6d0cb9047d7d
)
5 changes: 2 additions & 3 deletions benchmark/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8Nz
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/disintegration/gift v1.2.1/go.mod h1:Jh2i7f7Q2BM7Ezno3PhfezbR1xpUg9dUg3/RlKGr4HI=
github.com/disintegration/imaging v1.6.2 h1:w1LecBlG2Lnp8B3jk5zSuNqd7b4DXhcjwek1ei82L+c=
github.com/disintegration/imaging v1.6.2/go.mod h1:44/5580QXChDfwIclfc/PCwrr44amcmDAg8hxG0Ewe4=
github.com/esimov/stackblur-go v1.0.0 h1:PuXWrQ16VIh6Di+tn3CpKAyzkIIECo9DPGVecrzyDGc=
Expand All @@ -19,8 +18,8 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt
github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
github.com/octu0/blurry v1.7.0 h1:96nzQCBMR9hc3g96LtedYs1l2R9aTox1BFtRLAY4ids=
github.com/octu0/blurry v1.7.0/go.mod h1:Xoy84d0rtz/NkbmsOf6Kz3cKlp//glN4qDOcDf8191A=
github.com/octu0/blurry v1.8.2-0.20210405095037-6d0cb9047d7d h1:HSq09GbTjpsNQNkRm4BHGnXGeoxokYVey2LVKSZDmdA=
github.com/octu0/blurry v1.8.2-0.20210405095037-6d0cb9047d7d/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 c8ba0c2

Please sign in to comment.