Skip to content

Instantly share code, notes, and snippets.

@b1naryth1ef
Last active February 18, 2021 01:36
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save b1naryth1ef/7a7c06d210ee4a56ed253c89925ed978 to your computer and use it in GitHub Desktop.
Save b1naryth1ef/7a7c06d210ee4a56ed253c89925ed978 to your computer and use it in GitHub Desktop.

Pillow

(64, 64)
        0.217446804047 total time
        217446.804047 ns / op
(128, 128)
        0.085732460022 total time
        85732.460022 ns / op
(256, 256)
        0.280528068542 total time
        280528.068542 ns / op
(512, 512)
        0.816223859787 total time
        816223.859787 ns / op
(1024, 1024)
        3.95941114426 total time
        3959411.14426 ns / op

Pillow-SIMD

(64, 64)
        0.175161123276 total time
        175161.123276 ns / op
(128, 128)
        0.0703043937683 total time
        70304.3937683 ns / op
(256, 256)
        0.231550693512 total time
        231550.693512 ns / op
(512, 512)
        0.768870592117 total time
        768870.592117 ns / op
(1024, 1024)
        3.3241353035 total time
        3324135.3035 ns / op
```

# Golang OpenCV w/ libjpeg-turbo

```
PASS
Benchmark64-24             50000             29454 ns/op
Benchmark128-24            10000            100521 ns/op
Benchmark256-24             3000            401514 ns/op
Benchmark512-24             2000            572522 ns/op
Benchmark1024-24             500           2115379 ns/op
ok      _/home/andrei/code/go/presto    11.250s
```

# Golang VIPs

```
PASS
Benchmark64-24                50          23465705 ns/op
Benchmark128-24               50          24998898 ns/op
Benchmark256-24               50          31924224 ns/op
Benchmark512-24               30          45856866 ns/op
Benchmark1024-24              20          51482954 ns/op
ok      _/home/andrei/code/go/presto    6.721s
```
# Golang bimg (aka better VIPS)

```
PASS
Benchmark64-24               500           3376731 ns/op
Benchmark128-24              500           4355886 ns/op
Benchmark256-24              200           6008590 ns/op
Benchmark512-24              100          13105592 ns/op
Benchmark1024-24              30          37725744 ns/op
ok      _/home/andrei/code/go/presto    9.061s
```

# Imaging

```
PASS
Benchmark64-24             10000            192751 ns/op
Benchmark128-24             3000            476551 ns/op
Benchmark256-24             1000           1022972 ns/op
Benchmark512-24              500           2685723 ns/op
Benchmark1024-24             200           8034796 ns/op
ok      _/home/andrei/code/go/presto/benchmarks 12.742s
```
        
Copy link

ghost commented Jul 17, 2018

oof, something wrong with markdown formatting

@gocs
Copy link

gocs commented Jan 1, 2019

extra backtick after Pillow-SIMD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment