zlib acceleration?

René J.V. Bertin rjvbertin at gmail.com
Fri May 29 02:21:45 PDT 2015


After re-running the benchmarks with the HEADS from the respective implementations, the picture changes and the CloudFlare patch becomes much more interesting. The CloudFlare patch in its current form does require the -msse4 flag as it uses a crc intrinsic from that instruction set. Are there still Macs around that do *not* have SSE 4.1, supposing they ever existed (apart from PPC Macs of course)?
(Note: there are with my computer "idle" in the sense I wasn't touching it, but I didn't quit my browsers, MUA and other stuff to let the number be a bit more representative)

*                     baseline               cloudflare             intel                  *
compress executable -1 (x 5)
  Compression ratio:  0.37                   0.37                   0.46                  
 Execution time [s]:  0.68 ± 0.03 (100.00%)  0.50 ± 0.01 ( 72.95%)  0.27 ± 0.00 ( 39.84%) 
compress executable -3 (x 5)
  Compression ratio:  0.35                   0.36                   0.36                  
 Execution time [s]:  1.00 ± 0.00 (100.00%)  0.65 ± 0.00 ( 65.00%)  0.72 ± 0.01 ( 71.77%) 
compress executable -5 (x 5)
  Compression ratio:  0.33                   0.34                   0.34                  
 Execution time [s]:  1.58 ± 0.02 (100.00%)  0.94 ± 0.00 ( 59.65%)  0.98 ± 0.01 ( 62.25%) 
compress executable -7 (x 5)
  Compression ratio:  0.33                   0.34                   0.33                  
 Execution time [s]:  3.54 ± 0.03 (100.00%)  1.69 ± 0.01 ( 47.59%)  2.63 ± 0.03 ( 74.25%) 
compress executable -9 (x 5)
  Compression ratio:  0.33                   0.33                   0.33                  
 Execution time [s]:  8.89 ± 0.06 (100.00%)  4.29 ± 0.02 ( 48.26%)  7.30 ± 0.06 ( 82.08%) 
compress html -1 (x 5)
  Compression ratio:  0.39                   0.37                   0.54                  
 Execution time [s]:  0.36 ± 0.00 (100.00%)  0.28 ± 0.01 ( 78.02%)  0.19 ± 0.00 ( 51.98%) 
compress html -3 (x 5)
  Compression ratio:  0.36                   0.35                   0.35                  
 Execution time [s]:  0.59 ± 0.01 (100.00%)  0.37 ± 0.00 ( 62.99%)  0.42 ± 0.00 ( 71.11%) 
compress html -5 (x 5)
  Compression ratio:  0.34                   0.33                   0.33                  
 Execution time [s]:  0.98 ± 0.01 (100.00%)  0.56 ± 0.00 ( 57.47%)  0.57 ± 0.00 ( 58.09%) 
compress html -7 (x 5)
  Compression ratio:  0.33                   0.33                   0.33                  
 Execution time [s]:  1.65 ± 0.01 (100.00%)  0.90 ± 0.01 ( 54.83%)  1.50 ± 0.02 ( 91.24%) 
compress html -9 (x 5)
  Compression ratio:  0.33                   0.33                   0.33                  
 Execution time [s]:  2.57 ± 0.03 (100.00%)  1.63 ± 0.02 ( 63.45%)  2.34 ± 0.03 ( 91.22%) 
compress jpeg -1 (x 5)
  Compression ratio:  1.00                   1.00                   1.05                  
 Execution time [s]:  0.60 ± 0.01 (100.00%)  0.53 ± 0.00 ( 88.87%)  0.26 ± 0.01 ( 43.95%) 
compress jpeg -3 (x 5)
  Compression ratio:  1.00                   1.00                   1.00                  
 Execution time [s]:  0.61 ± 0.01 (100.00%)  0.57 ± 0.01 ( 94.30%)  0.57 ± 0.00 ( 94.16%) 
compress jpeg -5 (x 5)
  Compression ratio:  1.00                   1.00                   1.00                  
 Execution time [s]:  0.64 ± 0.00 (100.00%)  0.57 ± 0.01 ( 88.49%)  0.73 ± 0.00 (113.72%) 
compress jpeg -7 (x 5)
  Compression ratio:  1.00                   1.00                   1.00                  
 Execution time [s]:  0.65 ± 0.01 (100.00%)  0.58 ± 0.00 ( 89.00%)  0.59 ± 0.00 ( 91.46%) 
compress jpeg -9 (x 5)
  Compression ratio:  1.00                   1.00                   1.00                  
 Execution time [s]:  0.66 ± 0.01 (100.00%)  0.59 ± 0.01 ( 89.78%)  0.62 ± 0.01 ( 94.03%) 
compress pngpixels -1 (x 5)
  Compression ratio:  0.17                   0.17                   0.23                  
 Execution time [s]:  0.43 ± 0.01 (100.00%)  0.29 ± 0.00 ( 68.39%)  0.19 ± 0.00 ( 43.86%) 
compress pngpixels -3 (x 5)
  Compression ratio:  0.15                   0.15                   0.16                  
 Execution time [s]:  0.90 ± 0.01 (100.00%)  0.47 ± 0.00 ( 51.61%)  0.46 ± 0.00 ( 51.12%) 
compress pngpixels -5 (x 5)
  Compression ratio:  0.14                   0.14                   0.14                  
 Execution time [s]:  1.29 ± 0.01 (100.00%)  0.69 ± 0.01 ( 53.80%)  0.72 ± 0.01 ( 55.86%) 
compress pngpixels -7 (x 5)
  Compression ratio:  0.13                   0.13                   0.13                  
 Execution time [s]:  3.94 ± 0.03 (100.00%)  2.09 ± 0.02 ( 52.95%)  3.20 ± 0.03 ( 81.24%) 
compress pngpixels -9 (x 5)
  Compression ratio:  0.12                   0.12                   0.12                  
 Execution time [s]: 28.56 ± 0.08 (100.00%) 15.54 ± 0.05 ( 54.40%) 23.42 ± 0.30 ( 81.99%) 
decompress executable (x 100)
 Execution time [s]:  5.92 ± 0.06 (100.00%)  5.91 ± 0.02 ( 99.97%)  6.01 ± 0.02 (101.64%) 
decompress html (x 100)
 Execution time [s]:  3.59 ± 0.04 (100.00%)  3.55 ± 0.01 ( 99.06%)  3.61 ± 0.02 (100.57%) 
decompress jpeg (x 100)
 Execution time [s]:  1.09 ± 0.03 (100.00%)  1.14 ± 0.01 (104.44%)  1.14 ± 0.03 (104.49%) 
decompress pngpixels (x 100)
 Execution time [s]:  4.08 ± 0.02 (100.00%)  4.02 ± 0.02 ( 98.68%)  4.14 ± 0.03 (101.52%) 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20150529/5f114ff2/attachment.html>


More information about the macports-users mailing list