Advertisement
teknoraver

apu sha1 ssse3

Apr 29th, 2018
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.16 KB | None | 0 0
  1. $ uname -a
  2. Linux apu 4.16.0-apu #43 SMP Tue Apr 3 02:05:40 CEST 2018 x86_64 GNU/Linux
  3.  
  4. $ cat /proc/cpuinfo
  5. processor : 0
  6. vendor_id : AuthenticAMD
  7. cpu family : 20
  8. model : 2
  9. model name : AMD G-T40E Processor
  10. stepping : 0
  11. microcode : 0x5000101
  12. cpu MHz : 803.570
  13. cache size : 512 KB
  14. physical id : 0
  15. siblings : 2
  16. core id : 0
  17. cpu cores : 2
  18. apicid : 0
  19. initial apicid : 0
  20. fpu : yes
  21. fpu_exception : yes
  22. cpuid level : 6
  23. wp : yes
  24. 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
  25. bugs : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2
  26. bogomips : 1999.92
  27. TLB size : 1024 4K pages
  28. clflush size : 64
  29. cache_alignment : 64
  30. address sizes : 36 bits physical, 48 bits virtual
  31. power management: ts ttp tm stc 100mhzsteps hwpstate
  32.  
  33. $ ls -fl sha1sum-{c,libcrypto,afalg}
  34. -rwxr-xr-x 1 root root 47904 apr 29 19:27 sha1sum-c
  35. -rwxr-xr-x 1 root root 45024 apr 29 19:15 sha1sum-libcrypto
  36. -rwxr-xr-x 1 root root 47808 apr 22 13:08 sha1sum-afalg
  37.  
  38. $ ldd sha1sum-{c,libcrypto,afalg}
  39. sha1sum-c:
  40. linux-vdso.so.1 (0x00007ffcaf2ca000)
  41. libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4845b5e000)
  42. /lib64/ld-linux-x86-64.so.2 (0x00007f4846124000)
  43. sha1sum-libcrypto:
  44. linux-vdso.so.1 (0x00007ffdac90b000)
  45. libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007fedc79a4000)
  46. libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fedc75ea000)
  47. libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fedc73e6000)
  48. libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fedc71c8000)
  49. /lib64/ld-linux-x86-64.so.2 (0x00007fedc8040000)
  50. sha1sum-afalg:
  51. linux-vdso.so.1 (0x00007ffc81bdf000)
  52. libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f86335db000)
  53. /lib64/ld-linux-x86-64.so.2 (0x00007f8633995000)
  54.  
  55. $ time ./sha1sum-c 2g.bin
  56. 752ef2367f479e79e4f0cded9c270c2890506ab0 2g.bin
  57.  
  58. real 0m25,213s
  59. user 0m21,431s
  60. sys 0m3,735s
  61.  
  62. $ time ./sha1sum-libcrypto 2g.bin
  63. 752ef2367f479e79e4f0cded9c270c2890506ab0 2g.bin
  64.  
  65. real 0m24,061s
  66. user 0m22,168s
  67. sys 0m1,838s
  68.  
  69. $ time ./sha1sum-afalg 2g.bin
  70. 752ef2367f479e79e4f0cded9c270c2890506ab0 2g.bin
  71.  
  72. real 0m21,521s
  73. user 0m0,001s
  74. sys 0m21,217s
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81. # lsmod |grep sha
  82. sha1_generic 16384 0
  83. # time ./sha1sum-afalg zero
  84. 2a492f15396a6768bcbca016993f4b4c8b0b5307 zero
  85.  
  86. real 0m11,276s
  87. user 0m0,001s
  88. sys 0m11,130s
  89. # modprobe sha1_ssse3
  90. # lsmod |grep sha
  91. sha1_ssse3 32768 0
  92. sha1_generic 16384 1 sha1_ssse3
  93. # time ./sha1sum-afalg zero
  94. 2a492f15396a6768bcbca016993f4b4c8b0b5307 zero
  95.  
  96. real 0m14,740s
  97. user 0m0,001s
  98. sys 0m14,476s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement