George Spelvin venit, vidit, dixit 31.07.2009 12:46: > After studying Andy Polyakov's optimized x86 SHA-1 in OpenSSL, I've > got a version that's 1.6% slower on a P4 and 15% faster on a Phenom. > I'm curious about the performance on other CPUs I don't have access to, > particularly Core 2 duo and i7. > > Could someone do some benchmarking for me? Old (486/Pentium/P2/P3) > machines are also interesting, but I'm optimizing for newer ones. > > I haven't packaged this nicely, but it's not that complicated. > - Download Andy's original code from > http://www.openssl.org/~appro/cryptogams/cryptogams-0.tar.gz > - Unpack and cd to the cryptogams-0/x86 directory > - "patch < this_email" to create "sha1test.c", "sha1-586.h", "Makefile", > and "sha1-x86.pl". > - "make" > - Run ./586test (before) and ./x86test (after) and note the timings. > > Thank you! Best of 6 runs: ./586test Result: a9993e36 4706816a ba3e2571 7850c26c 9cd0d89d Expected:a9993e36 4706816a ba3e2571 7850c26c 9cd0d89d 500000000 bytes: 1.258031 s ./x86test Result: a9993e36 4706816a ba3e2571 7850c26c 9cd0d89d Expected:a9993e36 4706816a ba3e2571 7850c26c 9cd0d89d 500000000 bytes: 1.171770 s System: uname -a Linux whatever 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz stepping : 10 cpu MHz : 2000.000 cache size : 6144 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr lahf_lm bogomips : 5988.92 clflush size : 64 processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz stepping : 10 cpu MHz : 2000.000 cache size : 6144 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr lahf_lm bogomips : 5984.92 clflush size : 64 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html