[MacPorts] #54216: zlib +ng (and +cloudflare) accelerated variants

MacPorts noreply at macports.org
Wed May 24 16:36:09 UTC 2017


#54216: zlib +ng (and +cloudflare) accelerated variants
--------------------------+------------------------
  Reporter:  RJVB         |      Owner:  ryandesign
      Type:  enhancement  |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  haspatch
      Port:  zlib         |
--------------------------+------------------------

Comment (by RJVB):

 Oversight, my bad, sorry. Done (in git).

 Another somewhat more compelling example of the performance gain. On a 2.7
 Ghz i7, OS X 10.9, with the system's /usr/lib/libz.1.2.5 and a 262Mb
 tarball:

 {{{
 > repeat 3 /usr/bin/gzip -9 < test.tar > /dev/null
 20.078 user_cpu 0.064 kernel_cpu 0:20.14 total_time 99.9%CPU {1044480M 0F
 294R 0I 0O 0k 0w 26c}
 20.741 user_cpu 0.066 kernel_cpu 0:20.80 total_time 100.0%CPU {1044480M 0F
 294R 0I 0O 0k 0w 29c}
 20.745 user_cpu 0.071 kernel_cpu 0:20.82 total_time 99.9%CPU {1044480M 0F
 294R 0I 0O 0k 0w 36c}
 > repeat 3 /usr/bin/gzip -d < test.tar.gz > /dev/null
 1.616 user_cpu 0.015 kernel_cpu 0:01.63 total_time 99.3%CPU {872448M 0F
 249R 0I 1O 0k 0w 9c}
 1.620 user_cpu 0.016 kernel_cpu 0:01.63 total_time 100.0%CPU {831488M 0F
 239R 0I 0O 0k 0w 3c}
 1.609 user_cpu 0.015 kernel_cpu 0:01.62 total_time 99.3%CPU {819200M 0F
 236R 0I 0O 0k 0w 2c}
 }}}

 after installing /opt/local/lib/libz.1.2.8.dylib in /usr/lib, changing its
 id and pointing /usr/lib/libz.1.dylib to it:

 {{{
 > repeat 3 /usr/bin/gzip -9 < test.tar > /dev/null
 11.614 user_cpu 0.064 kernel_cpu 0:11.70 total_time 99.7%CPU {1097728M 0F
 306R 0I 0O 0k 0w 165c}
 11.530 user_cpu 0.062 kernel_cpu 0:11.59 total_time 100.0%CPU {1097728M 0F
 306R 0I 0O 0k 0w 11c}
 11.545 user_cpu 0.062 kernel_cpu 0:11.60 total_time 100.0%CPU {1097728M 0F
 306R 0I 0O 0k 0w 12c}
 > repeat 3 /usr/bin/gzip -d < test.tar.gz > /dev/null
 0.805 user_cpu 0.013 kernel_cpu 0:00.81 total_time 100.0%CPU {872448M 0F
 251R 0I 0O 0k 0w 3c}
 0.806 user_cpu 0.014 kernel_cpu 0:00.82 total_time 98.7%CPU {872448M 0F
 251R 0I 0O 0k 0w 1c}
 0.818 user_cpu 0.013 kernel_cpu 0:00.83 total_time 98.7%CPU {872448M 0F
 251R 0I 0O 0k 0w 5c}
 }}}

 (this with the +cloudflare variant, the +ng variant should be comparable)

--
Ticket URL: <https://trac.macports.org/ticket/54216#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list