Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ uname -a
- Linux apu 4.16.0-apu #43 SMP Tue Apr 3 02:05:40 CEST 2018 x86_64 GNU/Linux
- $ cat /proc/cpuinfo
- processor : 0
- vendor_id : AuthenticAMD
- cpu family : 20
- model : 2
- model name : AMD G-T40E Processor
- stepping : 0
- microcode : 0x5000101
- cpu MHz : 803.570
- cache size : 512 KB
- physical id : 0
- siblings : 2
- core id : 0
- cpu cores : 2
- apicid : 0
- initial apicid : 0
- fpu : yes
- fpu_exception : yes
- cpuid level : 6
- wp : yes
- flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt hw_pstate vmmcall arat npt lbrv svm_lock nrip_save pausefilter
- bugs : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2
- bogomips : 1999.92
- TLB size : 1024 4K pages
- clflush size : 64
- cache_alignment : 64
- address sizes : 36 bits physical, 48 bits virtual
- power management: ts ttp tm stc 100mhzsteps hwpstate
- $ ls -fl sha1sum-{c,libcrypto,afalg}
- -rwxr-xr-x 1 root root 47904 apr 29 19:27 sha1sum-c
- -rwxr-xr-x 1 root root 45024 apr 29 19:15 sha1sum-libcrypto
- -rwxr-xr-x 1 root root 47808 apr 22 13:08 sha1sum-afalg
- $ ldd sha1sum-{c,libcrypto,afalg}
- sha1sum-c:
- linux-vdso.so.1 (0x00007ffcaf2ca000)
- libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4845b5e000)
- /lib64/ld-linux-x86-64.so.2 (0x00007f4846124000)
- sha1sum-libcrypto:
- linux-vdso.so.1 (0x00007ffdac90b000)
- libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007fedc79a4000)
- libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fedc75ea000)
- libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fedc73e6000)
- libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fedc71c8000)
- /lib64/ld-linux-x86-64.so.2 (0x00007fedc8040000)
- sha1sum-afalg:
- linux-vdso.so.1 (0x00007ffc81bdf000)
- libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f86335db000)
- /lib64/ld-linux-x86-64.so.2 (0x00007f8633995000)
- $ time ./sha1sum-c 2g.bin
- 752ef2367f479e79e4f0cded9c270c2890506ab0 2g.bin
- real 0m25,213s
- user 0m21,431s
- sys 0m3,735s
- $ time ./sha1sum-libcrypto 2g.bin
- 752ef2367f479e79e4f0cded9c270c2890506ab0 2g.bin
- real 0m24,061s
- user 0m22,168s
- sys 0m1,838s
- $ time ./sha1sum-afalg 2g.bin
- 752ef2367f479e79e4f0cded9c270c2890506ab0 2g.bin
- real 0m21,521s
- user 0m0,001s
- sys 0m21,217s
- # lsmod |grep sha
- sha1_generic 16384 0
- # time ./sha1sum-afalg zero
- 2a492f15396a6768bcbca016993f4b4c8b0b5307 zero
- real 0m11,276s
- user 0m0,001s
- sys 0m11,130s
- # modprobe sha1_ssse3
- # lsmod |grep sha
- sha1_ssse3 32768 0
- sha1_generic 16384 1 sha1_ssse3
- # time ./sha1sum-afalg zero
- 2a492f15396a6768bcbca016993f4b4c8b0b5307 zero
- real 0m14,740s
- user 0m0,001s
- sys 0m14,476s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement