******************************************************************************** * ECRYPT Stream Cipher Project * ******************************************************************************** Primitive Name: RC4 =================== Profile: bench Key size: 128 bits IV size: 0 bits CPU speed: 1700.0 MHz Cycles are measured using RDTSC instruction Testing memory requirements: Size of ECRYPT_ctx: 1068 bytes Testing stream encryption speed: Encrypted 7 blocks of 4096 bytes (under 1 keys, 7 blocks/key) Total time: 375886 clock ticks (221.11 usec) Encryption speed (cycles/byte): 13.11 Encryption speed (Mbps): 1037.39 Testing packet encryption speed: Encrypted 29 packets of 40 bytes (under 1 keys, 29 packets/key) Total time: 406550 clock ticks (239.15 usec) Encryption speed (cycles/packet): 14018.97 Encryption speed (cycles/byte): 350.47 Encryption speed (Mbps): 38.80 Overhead: 2573.4% Encrypted 20 packets of 576 bytes (under 1 keys, 20 packets/key) Total time: 420363 clock ticks (247.27 usec) Encryption speed (cycles/packet): 21018.15 Encryption speed (cycles/byte): 36.49 Encryption speed (Mbps): 372.71 Overhead: 178.3% Encrypted 12 packets of 1500 bytes (under 1 keys, 12 packets/key) Total time: 399715 clock ticks (235.13 usec) Encryption speed (cycles/packet): 33309.58 Encryption speed (cycles/byte): 22.21 Encryption speed (Mbps): 612.44 Overhead: 69.4% Weighted average (Simple Imix): Encryption speed (cycles/byte): 52.77 Encryption speed (Mbps): 257.72 Overhead: 302.5% Testing key setup speed: Did 5000 key setups (under 10 keys, 500 setups/key) Total time: 336070 clock ticks (197.69 usec) Key setup speed (cycles/setup): 67.21 Key setup speed (setups/second): 25292349.81 Testing IV setup speed: Did 31 IV setups (under 1 keys, 31 setups/key) Total time: 416554 clock ticks (245.03 usec) IV setup speed (cycles/setup): 13437.23 IV setup speed (setups/second): 126514.21 Testing key agility: Encrypted 60 blocks of 256 bytes (each time switching contexts) Total time: 377364 clock ticks (221.98 usec) Encryption speed (cycles/byte): 24.57 Encryption speed (Mbps): 553.57 Overhead: 87.4% End of performance measurements Primitive Name: RC4 =================== Profile: bench Key size: 256 bits IV size: 0 bits CPU speed: 1700.0 MHz Cycles are measured using RDTSC instruction Testing memory requirements: Size of ECRYPT_ctx: 1068 bytes Testing stream encryption speed: Encrypted 7 blocks of 4096 bytes (under 1 keys, 7 blocks/key) Total time: 375537 clock ticks (220.90 usec) Encryption speed (cycles/byte): 13.10 Encryption speed (Mbps): 1038.35 Testing packet encryption speed: Encrypted 29 packets of 40 bytes (under 1 keys, 29 packets/key) Total time: 406550 clock ticks (239.15 usec) Encryption speed (cycles/packet): 14018.97 Encryption speed (cycles/byte): 350.47 Encryption speed (Mbps): 38.80 Overhead: 2575.8% Encrypted 20 packets of 576 bytes (under 1 keys, 20 packets/key) Total time: 420263 clock ticks (247.21 usec) Encryption speed (cycles/packet): 21013.15 Encryption speed (cycles/byte): 36.48 Encryption speed (Mbps): 372.80 Overhead: 178.5% Encrypted 12 packets of 1500 bytes (under 1 keys, 12 packets/key) Total time: 399175 clock ticks (234.81 usec) Encryption speed (cycles/packet): 33264.58 Encryption speed (cycles/byte): 22.18 Encryption speed (Mbps): 613.26 Overhead: 69.3% Weighted average (Simple Imix): Encryption speed (cycles/byte): 52.75 Encryption speed (Mbps): 257.80 Overhead: 302.8% Testing key setup speed: Did 3500 key setups (under 10 keys, 350 setups/key) Total time: 403270 clock ticks (237.22 usec) Key setup speed (cycles/setup): 115.22 Key setup speed (setups/second): 14754382.92 Testing IV setup speed: Did 31 IV setups (under 1 keys, 31 setups/key) Total time: 416554 clock ticks (245.03 usec) IV setup speed (cycles/setup): 13437.23 IV setup speed (setups/second): 126514.21 Testing key agility: Encrypted 60 blocks of 256 bytes (each time switching contexts) Total time: 377776 clock ticks (222.22 usec) Encryption speed (cycles/byte): 24.59 Encryption speed (Mbps): 552.96 Overhead: 87.8% End of performance measurements ******************************************************************************* DATE: ------------------------------------------------------------------------------- Thu Feb 14 07:20:06 CET 2008 CPU: ------------------------------------------------------------------------------- processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 9 model name : Intel(R) Pentium(R) M processor 1700MHz stepping : 5 cpu MHz : 1700.000 cache size : 1024 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 tm pbe up est tm2 bogomips : 3391.40 clflush size : 64 COMPILER: ------------------------------------------------------------------------------- Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) COMPILATION: ------------------------------------------------------------------------------- make var=2 conf=gcc_pentium4_O1-ofp gcc -Wall -pedantic -ansi -O1 -fomit-frame-pointer -DECRYPT_API=ecrypt-sync.h -DECRYPT_VARIANT=2 -I../../../benchmarks/rc4/../../include -I../../../benchmarks/rc4 -march=pentium4 -c -o rc4_gcc_pentium4.o ../../../benchmarks/rc4/rc4.c gcc -Wall -pedantic -ansi -O1 -fomit-frame-pointer -march=pentium4 ecrypt-test_gcc_pentium4.o ecrypt-sync_gcc_pentium4.o rc4_gcc_pentium4.o -o ecrypt-test EXECUTABLE: ------------------------------------------------------------------------------- 2d8f8a78dc4d267e0334441cc9762d86 -