Had to try this on my quad core laptop, as I never heard of these tools .
josh@snoopy:~/Downloads $ grep -m2 -i intel /proc/cpuinfo
vendor_id : GenuineIntel
model name : Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
josh@snoopy:~/Downloads $ ls -l test
-rw-r--r-- 1 josh josh 1073741824 2012-03-07 20:06 test
josh@snoopy:~/Downloads $ time gzip test
real 0m16.430s
user 0m10.210s
sys 0m0.490s
josh@snoopy:~/Downloads $ time pigz test
real 0m5.028s
user 0m16.040s
sys 0m0.620s
Looks good.. although the man page describes it as being "an almost compatible replacement for the gzip program".
That's actually a dual core with hyperthreading. (I'm not just being pedantic, I'm curious as to how well hyperthreading works.) http://ark.intel.com/products/52224
I wonder what the speed looks like with two threads? (pigz -p 2) ?
Comments
Had to try this on my quad core laptop, as I never heard of these tools .
Looks good.. although the man page describes it as being "an almost compatible replacement for the gzip program".That's actually a dual core with hyperthreading. (I'm not just being pedantic, I'm curious as to how well hyperthreading works.) http://ark.intel.com/products/52224
I wonder what the speed looks like with two threads? (pigz -p 2) ?
But what's the compression ratio and what's the test data?
Test data
with -p2 it runs ~2 sec slowerFor that kind of data you can just use RLE instead. It's the trivial case (an edge case in fact).