News for hackers. Stuff that matters.
Re:OxiPNG: PNG optimizer written in Rust by dikaiosune on Thursday September 07, 2017 @10:47PM (#15197548)
For the curious, I replicated some benchmarks from ~1yr ago (https://www.reddit.com/r/rust/comments/48vkjy/oxipng_a_multi...).

Note in that thread that the author implies that the optimization levels between the two tools are not necessarily equivalent or stable.

    $ optipng --version
    OptiPNG version 0.7.6
    $ oxipng --version
    oxipng 0.16.3
Ran on a 2016 MBP, i7.

Time:

    opt-level    oxipng    optipng
    2            148.63s   30.80s
    3            9.56s     45.99s
    4            23.82s    90.57s
Size of resulting image:

    opt-level
      original      12M

                 oxipng    optipng
      2          12M       12M
      3          12M       "already optimized"
      4          12M       "already optimized"

TBH I don't really know how to interpret these results. But with the strange exception of `oxipng -o 2`, it does seem like the naive parallelism offers some real performance wins. Disclaimer: this is an incredibly amateur attempt to benchmark, I really don't have enough knowledge to produce something authoritative.
Re:OxiPNG: PNG optimizer written in Rust by userbinator on Thursday September 07, 2017 @11:31PM (#15197714)
It would be more useful if you didn't round the sizes to "12M", because I have a hard time believing they were all exactly the same. Bytes are a discrete and exact quantity, and ideally would be displayed to full precision to allow useful comparison.
Re:OxiPNG: PNG optimizer written in Rust by dikaiosune on Friday September 08, 2017 @12:49PM (#15201809)
It would probably be more useful, yes. But that would require remembering what my ls alias without `-h` is, and also would maybe give more confidence in the results of the quick 'n' dirty analysis than is justified.
Re:OxiPNG: PNG optimizer written in Rust by 62747478182 on Friday September 08, 2017 @10:08PM (#15205201)
You can type `/bin/ls -l` to skip your shell aliases.
Re:OxiPNG: PNG optimizer written in Rust by vladdanilov on Friday September 08, 2017 @04:38AM (#15198742)
Comparing supposedly the best results.

          oxipng         optipng        optimage
  size    12 231 612B    12 231 612B    11 027 901B
  time    23.82s         90.57s         50.8s
I keep on improving my single-threaded image compressor (http://getoptimage.com).
Re:OxiPNG: PNG optimizer written in Rust by mrob on Friday September 08, 2017 @07:44AM (#15199479)
Is that optimage result for lossless or lossy mode?
Re:OxiPNG: PNG optimizer written in Rust by vladdanilov on Friday September 08, 2017 @08:04AM (#15199563)
Lossless in this case.
Re:OxiPNG: PNG optimizer written in Rust by DiThi on Friday September 08, 2017 @08:53AM (#15199765)
With that file size, I'm guessing you're using a big picture without transparency and with many colors, which is the opposite of the usual use case of optimizing PNGs.
Re:OxiPNG: PNG optimizer written in Rust by dikaiosune on Friday September 08, 2017 @12:51PM (#15201820)
With significantly smaller file sizes, it could be more challenging to see timing differences. Also, this image is one that someone used the last time OxiPNG was discussed, which seemed relevant to me.
Re:OxiPNG: PNG optimizer written in Rust by DiThi on Friday September 08, 2017 @05:47PM (#15204188)
Then the ideal test is having a bunch of icons with transparency, merged in a single image.