Advertisement
Guest User

LibreSSL vs OpenSSL Ubuntu 12.04

a guest
Jul 12th, 2014
1,145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 KB | None | 0 0
  1. LibreSSL 2.0 vs Openssl 1.0.1 speed test on HP N36L Microserver Ubuntu 12.04
  2.  
  3. cat /etc/lsb-release
  4. DISTRIB_ID=Ubuntu
  5. DISTRIB_RELEASE=12.04
  6. DISTRIB_CODENAME=precise
  7. DISTRIB_DESCRIPTION="Ubuntu 12.04.4 LTS"
  8.  
  9. cat /proc/cpuinfo
  10. processor : 0
  11. vendor_id : AuthenticAMD
  12. cpu family : 16
  13. model : 6
  14. model name : AMD Athlon(tm) II Neo N36L Dual-Core Processor
  15. stepping : 3
  16. microcode : 0x10000c8
  17. cpu MHz : 800.000
  18. cache size : 1024 KB
  19. physical id : 0
  20. siblings : 2
  21. core id : 0
  22. cpu cores : 2
  23. apicid : 0
  24. initial apicid : 0
  25. fpu : yes
  26. fpu_exception : yes
  27. cpuid level : 5
  28. wp : yes
  29. 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 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a 3dnowprefetch osvw ibs skinit wdt nodeid_msr hw_pstate npt lbrv svm_lock nrip_save
  30. bogomips : 2595.67
  31. TLB size : 1024 4K pages
  32. clflush size : 64
  33. cache_alignment : 64
  34. address sizes : 48 bits physical, 48 bits virtual
  35. power management: ts ttp tm stc 100mhzsteps hwpstate
  36.  
  37.  
  38.  
  39. ./openssl version
  40. LibreSSL 2.0
  41.  
  42. buddy@NAS:/home/buddy/libressl/libressl-2.0.0/apps# ./openssl speed aes
  43. Doing aes-128 cbc for 3s on 16 size blocks: 11033617 aes-128 cbc's in 2.99s
  44. Doing aes-128 cbc for 3s on 64 size blocks: 2894678 aes-128 cbc's in 3.00s
  45. Doing aes-128 cbc for 3s on 256 size blocks: 743371 aes-128 cbc's in 3.00s
  46. Doing aes-128 cbc for 3s on 1024 size blocks: 186681 aes-128 cbc's in 3.00s
  47. Doing aes-128 cbc for 3s on 8192 size blocks: 23419 aes-128 cbc's in 3.00s
  48. Doing aes-192 cbc for 3s on 16 size blocks: 9578321 aes-192 cbc's in 3.00s
  49. Doing aes-192 cbc for 3s on 64 size blocks: 2515173 aes-192 cbc's in 3.00s
  50. Doing aes-192 cbc for 3s on 256 size blocks: 640776 aes-192 cbc's in 3.00s
  51. Doing aes-192 cbc for 3s on 1024 size blocks: 160839 aes-192 cbc's in 3.00s
  52. Doing aes-192 cbc for 3s on 8192 size blocks: 20175 aes-192 cbc's in 3.00s
  53. Doing aes-256 cbc for 3s on 16 size blocks: 8472158 aes-256 cbc's in 3.00s
  54. Doing aes-256 cbc for 3s on 64 size blocks: 2229258 aes-256 cbc's in 3.00s
  55. Doing aes-256 cbc for 3s on 256 size blocks: 567692 aes-256 cbc's in 2.99s
  56. Doing aes-256 cbc for 3s on 1024 size blocks: 142412 aes-256 cbc's in 3.00s
  57. Doing aes-256 cbc for 3s on 8192 size blocks: 17853 aes-256 cbc's in 3.00s
  58. LibreSSL 2.0
  59. built on: date not available
  60. options:bn(64,64) rc4(ptr,int) des(idx,cisc,16,int) aes(partial) idea(int) blowfish(idx)
  61. compiler: information not available
  62. The 'numbers' are in 1000s of bytes per second processed.
  63. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
  64. aes-128 cbc 59042.77k 61753.13k 63434.33k 63720.45k 63949.48k
  65. aes-192 cbc 51084.38k 53657.02k 54679.55k 54899.71k 55091.20k
  66. aes-256 cbc 45184.84k 47557.50k 48605.07k 48609.96k 48750.59k
  67.  
  68. buddy@NAS:~$ openssl version
  69. OpenSSL 1.0.1 14 Mar 2012
  70. buddy@NAS:~$
  71. buddy@NAS:~$
  72. buddy@NAS:~$ openssl speed aes
  73. Doing aes-128 cbc for 3s on 16 size blocks: 7134158 aes-128 cbc's in 2.99s
  74. Doing aes-128 cbc for 3s on 64 size blocks: 1905413 aes-128 cbc's in 3.00s
  75. Doing aes-128 cbc for 3s on 256 size blocks: 487433 aes-128 cbc's in 3.00s
  76. Doing aes-128 cbc for 3s on 1024 size blocks: 309937 aes-128 cbc's in 3.00s
  77. Doing aes-128 cbc for 3s on 8192 size blocks: 39334 aes-128 cbc's in 3.00s
  78. Doing aes-192 cbc for 3s on 16 size blocks: 6038391 aes-192 cbc's in 3.00s
  79. Doing aes-192 cbc for 3s on 64 size blocks: 1591064 aes-192 cbc's in 3.00s
  80. Doing aes-192 cbc for 3s on 256 size blocks: 405468 aes-192 cbc's in 3.00s
  81. Doing aes-192 cbc for 3s on 1024 size blocks: 263120 aes-192 cbc's in 3.00s
  82. Doing aes-192 cbc for 3s on 8192 size blocks: 33315 aes-192 cbc's in 3.00s
  83. Doing aes-256 cbc for 3s on 16 size blocks: 5110171 aes-256 cbc's in 3.00s
  84. Doing aes-256 cbc for 3s on 64 size blocks: 1336777 aes-256 cbc's in 3.00s
  85. Doing aes-256 cbc for 3s on 256 size blocks: 339699 aes-256 cbc's in 3.00s
  86. Doing aes-256 cbc for 3s on 1024 size blocks: 219989 aes-256 cbc's in 2.99s
  87. Doing aes-256 cbc for 3s on 8192 size blocks: 27656 aes-256 cbc's in 3.00s
  88. OpenSSL 1.0.1 14 Mar 2012
  89. built on: Fri Jun 20 18:54:15 UTC 2014
  90. options:bn(64,64) rc4(8x,int) des(idx,cisc,16,int) aes(partial) blowfish(idx)
  91. compiler: cc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -D-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOUWl,-Bsymbolic-functions -Wl,-z,relro -Wa,--noexecstack -Wall -DOPENSSL_NO_TLS1_2_CLIENT -DOPENSSL_MAX_TLS1_2_CIPHER_50 -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_AS256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
  92. The 'numbers' are in 1000s of bytes per second processed.
  93. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
  94. aes-128 cbc 38176.10k 40648.81k 41594.28k 105791.83k 107408.04k
  95. aes-192 cbc 32204.75k 33942.70k 34599.94k 89811.63k 90972.16k
  96. aes-256 cbc 27254.25k 28517.91k 28987.65k 75340.71k 75519.32k
  97.  
  98.  
  99.  
  100. LibreSSL
  101. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
  102. aes-128 cbc 58184.37 61925.18 63499.09 63725.57 63944.02
  103. aes-192 cbc 51250.16 53731.37 54752.85 54868.31 55063.89
  104. aes-256 cbc 45282.26 47606.44 48456.28 48576.51 48715.09
  105.  
  106. OpenSSL
  107. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
  108. Aes-128 cbc 38178.72 40648.62 41595.22 106445.82 107492.69
  109. Aes-192 cbc 32204.82 33942.49 34599.94 90280.62 91029.5
  110. Aes-256 cbc 27254.13 28522.05 28991.74 75340.37 75519.32
  111.  
  112.  
  113.  
  114. LibreSSL Speed as % of OpenSSL
  115. Aes-128 cbc 152.40 152.34 152.66 59.87 59.49
  116. Aes-192 cbc 159.14 158.30 158.25 60.78 60.49
  117. Aes-256 cbc 166.15 166.91 167.14 64.48 64.51
  118.  
  119. Results -
  120. LibreSSL about 50~60% faster for 256 size blocks or smaller
  121. OpenSSL about 50~60% faster for 1024 size blocks or larger
  122.  
  123. Notes: To compile on Ubuntu need to use ./configure LDFLAGS=-lrt
  124. There are posts about the same requirement on RH also.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement