Differences

This shows you the differences between two versions of the page.

inbox:benchmark.openssl [2014/03/05 23:18]
inbox:benchmark.openssl [2014/06/29 06:12] (current)
alphasparc
Line 7: Line 7:
</code> </code>
  - Simply drop the following line into the shell:<code bash>   - Simply drop the following line into the shell:<code bash>
-openssl speed md5 sha1 sha256 sha512 des des-ede3 aes-128-cbc aes-192-cbc aes-256-cbc rsa2048 dsa2048 | tee /tmp/sslspeed | awk -v ORS="" '$1 ~ /OpenSSL/ {print "| " $2 " |"} $1 ~ /(md5|sha)/ {print "  " $5 " |"} $1 ~ /(des|aes)/ {b = b "  " $6 " |"} $1 ~ /(rsa|dsa)/ {print b "  " $6 " |  " $7 " |";b=""} END { print "\n" }' | sed 's/\.\(..\)k/\10/g'+openssl speed md5 sha1 sha256 sha512 des des-ede3 aes-128-cbc aes-192-cbc aes-256-cbc rsa2048 dsa2048 | tee /tmp/sslspeed 
 +echo "|" `awk 'match($0,/r[0-9]+/) {print substr($0,RSTART,RLENGTH)}' /etc/banner` `awk -v FS=": " -v ORS="" '/(Processor|BogoMIPS|Hardware|machine|cpu model|system type)/ { print "| " $2 " " } END { print "" }' /proc/cpuinfo` `awk -v ORS="" '$1 ~ /OpenSSL/ {print "| " $2 " |"} $1 ~ /(md5|sha)/ {print "  " $5 " |"} $1 ~ /(des|aes)/ {b = b "  " $6 " |"} $1 ~ /(rsa|dsa)/ {print b "  " $6 " |  " $7 " ";b=""} END { print "|" }' /tmp/sslspeed | sed 's/\.\(..\)k/\10/g'
 +echo
</code> </code>
  - copy-paste the result into this wiki-page   - copy-paste the result into this wiki-page
Line 18: Line 20:
<sortable> <sortable>
^ OS ^ SoC ^ Device ^ [[doc:hardware:CPU]] ^ BogoMIPS ^ OpenSSL Version ^ [[wp>MD5]] ^ [[wp>Secure Hash Algorithm|SHA-1]] ^ SHA-256 ^ SHA-512 ^ [[wp>Data Encryption Standard|DES]] ^ 3DES ^ [[wp>Advanced Encryption Standard|AES-128]] ^ AES-192 ^ AES-256 ^ [[wp>RSA (algorithm)|RSA]] Sign ^ RSA Verify ^ [[wp>Digital Signature Algorithm|DSA]] Sign ^ DSA Verify  ^ ^ OS ^ SoC ^ Device ^ [[doc:hardware:CPU]] ^ BogoMIPS ^ OpenSSL Version ^ [[wp>MD5]] ^ [[wp>Secure Hash Algorithm|SHA-1]] ^ SHA-256 ^ SHA-512 ^ [[wp>Data Encryption Standard|DES]] ^ 3DES ^ [[wp>Advanced Encryption Standard|AES-128]] ^ AES-192 ^ AES-256 ^ [[wp>RSA (algorithm)|RSA]] Sign ^ RSA Verify ^ [[wp>Digital Signature Algorithm|DSA]] Sign ^ DSA Verify  ^
 +| r36088 | Atheros AR7161 rev 2 | NETGEAR WNDR3700/WNDR3800/WNDRMAC | MIPS 24Kc V7.4 | 452.19 | 1.0.1e | 36215580 | 23202860 | 10995730 | 4811410 | 4946550 | 1776220 | 8524800 | 7496740 | 6571550 | 8.0 | 281.3 | 27.9 | 22.6 |
 +| r41097 | Atheros AR9341 rev 3 | TP-LINK TL-MR3420 v2 | MIPS 74Kc V4.12 | 266.64 | 1.0.1h | 31103660 | 19177470 | 8885930 | 4121940 | 4962300 | 1762990 | 9133740 | 7910060 | 6975830 | 8.5 | 300.3 | 31.2 | 25.2 |
 +| r38891 | Freescale P2020 1200 MHz | Project Turris | PowerPC e500v2 | 300 | 1.0.1g | 123487210 | 44921510 | 34958680 | 10877950 | 22366690 | 7951700 | 34714280 | 30778030 | 27643900 | 21.7 | 781.5 | 78.4 | 64.0 |
 +| r41337 | Atheros AR9132 rev 2 | TP-LINK TL-WR1043ND | MIPS 24Kc V7.4 | 286.31 (overclocked 430MHZ) | 1.0.1h | 22489090 | 14695080 | 6939310 | 3079510 | 3322880 | 1187160 | 5534390 | 4770680 | 4179630 | 5.0 | 175.1 | 17.6 | 14.3 |
 +| trunk r40462 (gcc-4.8-linaro; mtune=24kc) | Atheros AR7161 rev 2 (overclocked 800mhz) | Buffalo WZR-HP-AG300H/WZR-600DHP | MIPS 24Kc V7.4 | 531.66 | 1.0.1g | 42137260 | 27525050 | 12856850 | 5183020 | 6554970 | 2332670 | 10652010 | 9063420 | 7929860 | 9.4 | 326.2 | 32.6 | 27.1 |
 +| trunk r40462 (gcc-4.8-linaro; mtune=24kc) | Atheros AR7161 rev 2 | Buffalo WZR-HP-AG300H/WZR-600DHP | MIPS 24Kc V7.4 | 452.19 | 1.0.1g | 35419100 | 22987430 | 10748250 | 4329470 | 5451780 | 1953790 | 8901270 | 7607640 | 6648830 | 7.8 | 272.7 | 27.4 | 22.3 |
 +| r40335 | AMD Sempron(tm) Processor 210U | Wyse R90L ThinClient | x86-64 | 2999.82 | 1.0.1f | 198452910 | 68489220 | 32900880 | 16330750 | 22723930 | 7842680 | 24113320 | 20579670 | 17918290 | 24.9 | 884.7 | 88.9 | 71.6 |
 +| r39969 | Atheros AR7161 rev 2 | Ubiquiti RouterStation Pro | MIPS 24Kc V7.4 | 479.23 | 1.0.1f | 37291180 | 24408190 | 11942760 | 5179060 | 5579940 | 1984980 | 9260970 | 7947210 | 7050270 | 8.4 | 270.2 | 29.6 | 23.8 |
 +| r39789 | Atheros AR9344 rev 1 | D-Link DIR-835 rev. A1 | MIPS 74Kc V4.12 | 278.93 | 1.0.1e | 33743550 | 20258770 | 9637390 | 4421370 | 4882070 | 1719270 | 9812690 | 8376570 | 7332550 | 9.4 | 340.5 | 34.2 | 28.3 |
| trunk r39753 | QCA9558@720MHz | TP-Link TL-WR1043nd v2 | MIPS 74Kc V5.0 | 358.80 | 1.0.1e |  45876220 |  27233280 |  12434770 |  5766490 |  6425940 |  2307600 |  12816040 |  11099140 |  9820130 |  8.3 |  422.5 |  44.4 |  36.4 | | trunk r39753 | QCA9558@720MHz | TP-Link TL-WR1043nd v2 | MIPS 74Kc V5.0 | 358.80 | 1.0.1e |  45876220 |  27233280 |  12434770 |  5766490 |  6425940 |  2307600 |  12816040 |  11099140 |  9820130 |  8.3 |  422.5 |  44.4 |  36.4 |
| trunk r38924 | QCA9558 | Sitecom WLR-8100 | MIPS 74Kc V5.0 | 358.80 | 1.0.1e |  46189570 |  27330220 |  12483580 |  5770240 |  6431060 |  2298540 |  12819110 |  11144480 |  9795930 |  12.4 |  443.9 |  44.6 |  36.5 | | trunk r38924 | QCA9558 | Sitecom WLR-8100 | MIPS 74Kc V5.0 | 358.80 | 1.0.1e |  46189570 |  27330220 |  12483580 |  5770240 |  6431060 |  2298540 |  12819110 |  11144480 |  9795930 |  12.4 |  443.9 |  44.6 |  36.5 |
Line 24: Line 35:
| trunk r37759 | Atheros AR9344 rev 2 | TP-LINK TL-WDR3600 | MIPS 74Kc V4.12 | 278.93 | 1.0.1e |  34957780 |  20501170 |  9654800 |  4426250 |  4904920 |  1718250 |  9812620 |  8487910 |  7457060 |  9.5 |  336.8 |  34.3 |  27.4 | | trunk r37759 | Atheros AR9344 rev 2 | TP-LINK TL-WDR3600 | MIPS 74Kc V4.12 | 278.93 | 1.0.1e |  34957780 |  20501170 |  9654800 |  4426250 |  4904920 |  1718250 |  9812620 |  8487910 |  7457060 |  9.5 |  336.8 |  34.3 |  27.4 |
| trunk r36736 | Atheros AR9344 rev 2 | TP-LINK TL-WDR3600 | MIPS 74Kc V4.12 | 278.93 | 1.0.1e |  36066450 |  20959700 |  9810830 |  4495950 |  5140000 |  1817170 |  10008730 |  8603320 |  7565920 |  9.5 |  344.4 |  35.4 |  28.5 | | trunk r36736 | Atheros AR9344 rev 2 | TP-LINK TL-WDR3600 | MIPS 74Kc V4.12 | 278.93 | 1.0.1e |  36066450 |  20959700 |  9810830 |  4495950 |  5140000 |  1817170 |  10008730 |  8603320 |  7565920 |  9.5 |  344.4 |  35.4 |  28.5 |
 +| Attitude Adjustment 12.09 r36088 | Atheros AR9344 rev 2 | TP-LINK TL-WDR3600 v1.5 | MIPS 74Kc V4.12 | 278.93 | 1.0.1g | 36008280 | 20788220 | 9738920 | 4502530 | 5168470 | 1836400 | 9955330 | 8643580 | 7624700 | 7.0 | 348.5 | 35.1 | 29.3 |
| trunk r32510 | Atheros AR9344 rev 2 | TP-LINK TL-WDR4300 | MIPS 74Kc V4.12 | 278.93 | 1.0.1c |  36544160 |  12057270 |  7958320 |  4476150 |  5037210 |  1841890 |  9245010 |  8053560 |  7086260 |  8.0 |  277.1 |  27.8 |  23.0 | | trunk r32510 | Atheros AR9344 rev 2 | TP-LINK TL-WDR4300 | MIPS 74Kc V4.12 | 278.93 | 1.0.1c |  36544160 |  12057270 |  7958320 |  4476150 |  5037210 |  1841890 |  9245010 |  8053560 |  7086260 |  8.0 |  277.1 |  27.8 |  23.0 |
| trunk r30830 | Ralink RT3052  id:1 rev:3 | Aztech HW550-3G | MIPS 24KEc V4.12 | 255.59 | 1.0.0g |  23318870 |  6779780 |  4492590 |  2746530 |  2800300 |  992390 |  4740100 |  4123060 |  3625920 |  3.4 |  116.8 |  11.7 |  9.6 | | trunk r30830 | Ralink RT3052  id:1 rev:3 | Aztech HW550-3G | MIPS 24KEc V4.12 | 255.59 | 1.0.0g |  23318870 |  6779780 |  4492590 |  2746530 |  2800300 |  992390 |  4740100 |  4123060 |  3625920 |  3.4 |  116.8 |  11.7 |  9.6 |
Line 73: Line 85:
|Attitude Adjustment (12.09,r36088) | Broadcom BCM47XX | Netgear WGT634U | Broadcom BMIPS3300 V0.7 | 197.63 Mhz | 1.0.1e |  5712210 |  4118190 |  2551750 |  1233580 |  1206830 |  434260 |  2415270 |  2103350 |  1850240 |  2.5 |  89.9 |  8.8 |  7.5 | |Attitude Adjustment (12.09,r36088) | Broadcom BCM47XX | Netgear WGT634U | Broadcom BMIPS3300 V0.7 | 197.63 Mhz | 1.0.1e |  5712210 |  4118190 |  2551750 |  1233580 |  1206830 |  434260 |  2415270 |  2103350 |  1850240 |  2.5 |  89.9 |  8.8 |  7.5 |
|ATTITUDE ADJUSTMENT (12.09, r37838)|TI AR7 (TNETD7200)|FRITZ!Box Fon 5140|MIPS 4KEc V4.8|211.35| 1.0.1e |  9671000 |  6647610 |  3264850 |  1532870 |  1518590 |  539900 |  2733450 |  2358270 |  2066110 |  2.9 |  102.5 |  10.5 |  8.6 | |ATTITUDE ADJUSTMENT (12.09, r37838)|TI AR7 (TNETD7200)|FRITZ!Box Fon 5140|MIPS 4KEc V4.8|211.35| 1.0.1e |  9671000 |  6647610 |  3264850 |  1532870 |  1518590 |  539900 |  2733450 |  2358270 |  2066110 |  2.9 |  102.5 |  10.5 |  8.6 |
 +| trunk r40019 | Atheros AR9344 rev 2 | MikroTik RouterBOARD RB2011UiAS-RM | MIPS 74Kc V4.12 | 299.82 | 1.0.1f | 36916570 | 22695470 | 10506580 | 4752180 | 5502290 | 1942860 | 10736640 | 9283810 | 8200870 | 9.0 | 375.7 | 37.8 | 30.7 | 
 +| trunk r21341 | Atheros AR7161 rev 2 | MikroTik RouterBOARD 450G | MIPS 24Kc V7.4 | 452.19 | 0.9.8m | 36776630 | 11551760 | 8425070 | 4243370 | 5383520 | 1902160 | 8235640 | 7163490 | 6349140 | 6.6 | 243.2 | 24.3 | 20.6 |
</sortable> </sortable>
Line 95: Line 108:
| Intel Celeron G1610 / Vbox4.2.16 @ Ubuntu 13.04 | 2.6GHz | 1.0.1e |  266205040 |  124131320 |  60176710 |  29479590 |  38917980 |  14238460 |  75328750 |  64528720 |  58970040 |  43.0 |  1466.4 |  146.8 |  117.1 | | Intel Celeron G1610 / Vbox4.2.16 @ Ubuntu 13.04 | 2.6GHz | 1.0.1e |  266205040 |  124131320 |  60176710 |  29479590 |  38917980 |  14238460 |  75328750 |  64528720 |  58970040 |  43.0 |  1466.4 |  146.8 |  117.1 |
| Intel Celeron 847 | 1.1GHz | 1.0.1e |  173392900 |  155067390 |  58545150 |  85354150 |  21220350 |  8056830 |  36710740 |  30482430 |  26006190 |  243.8 |  7911.6 |  794.7 |  668.2 | | Intel Celeron 847 | 1.1GHz | 1.0.1e |  173392900 |  155067390 |  58545150 |  85354150 |  21220350 |  8056830 |  36710740 |  30482430 |  26006190 |  243.8 |  7911.6 |  794.7 |  668.2 |
 +| AMD G-Series G-T40N / debian wheezy amd64 | 1.00 GHz | 1.0.1e |  191449430 |  86963540 |  51141290 |  75085820 |  24561660 |  9498620 |  68813830 |  58355710 |  50722130 |  176.8 |  5887.8 |  592.7 |  495.2 |
| AMD E-350 | 1.6GHz | 1.0.1 |  214850330 |  103554830 |  65162020 |  95568150 |  31645350 |  12288340 |  90075140 |  76489390 |  66681580 |  226.0 |  7499.6 |  755.4 |  632.0 | | AMD E-350 | 1.6GHz | 1.0.1 |  214850330 |  103554830 |  65162020 |  95568150 |  31645350 |  12288340 |  90075140 |  76489390 |  66681580 |  226.0 |  7499.6 |  755.4 |  632.0 |
| AMD FX-6100 (no-aes-ni) | 3.3GHz | 1.0.0e |  308474690 |  160753320 |  81856170 |  120036010 |  33686530 |  13283330 |  53698220 |  44554580 |  37129220 |  211.3 |  7908.7 |  820.7 |  714.5 | | AMD FX-6100 (no-aes-ni) | 3.3GHz | 1.0.0e |  308474690 |  160753320 |  81856170 |  120036010 |  33686530 |  13283330 |  53698220 |  44554580 |  37129220 |  211.3 |  7908.7 |  820.7 |  714.5 |
Line 143: Line 157:
Also you can read more about [[doc/hardware/cryptographic.hardware.accelerators|cryptographic hardware accelerators]]. Also you can read more about [[doc/hardware/cryptographic.hardware.accelerators|cryptographic hardware accelerators]].
-===== manual labor ===== 
-Instead of copying the output by hand you can drop this sausage into the CLI: 
-<code sh> 
-cat /etc/banner | awk '/\(/ {print $2 " " $3 " " $4}' 
-cat /proc/cpuinfo | awk '/system type/ {FS = ":" ; print "|" $2}; /machine/ {FS = ":" ; print $2}; /cpu model/ {FS = ":" ; print $2}; /BogoMIPS/ {FS = ":" ; print $2 " |"}' | sed ':M;N;$!bM;s#\n# |#g' 
-openssl speed md5 sha1 sha256 sha512 des des-ede3 aes-128-cbc aes-192-cbc aes-256-cbc rsa2048 dsa2048 | tee /tmp/sslspeed | awk -v ORS="" '$1 ~ /OpenSSL/ {print "| " $2 " |"} $1 ~ /(md5|sha)/ {print "  " $5 " |"} $1 ~ /(des|aes)/ {b = b "  " $6 " |"} $1 ~ /(rsa|dsa)/ {print b "  " $6 " |  " $7 " |";b=""} END { print "\n" }' | sed 's/\.\(..\)k/\10/g' 
-</code> 
- 
- 
- 
-The following code saves /tmp/sslspeed while showing progress, then output a table to check if the sort is correct, then use last command line output to copy & paste. 
-<code sh> 
-openssl speed md5 sha1 sha256 sha512 des des-ede3 aes-128-cbc aes-192-cbc aes-256-cbc rsa2048 dsa2048 | tee /tmp/sslspeed 
-awk '$1 ~ /(md5|sha)/ {print $1 "\t\t|  " $5 " |"} $1 ~ /(des|aes)/ {b = b $1 " " $2 " \t|  " $6 " |\n"} $1 ~ /(rsa|dsa)/ {print b $1 "\t\t|  " $6 " |  " $7 " |";b=""}' /tmp/sslspeed 
-awk -v ORS="" '$1 ~ /OpenSSL/ {print "| " $2 " |"} $1 ~ /(md5|sha)/ {print "  " $5 " |"} $1 ~ /(des|aes)/ {b = b "  " $6 " |"} $1 ~ /(rsa|dsa)/ {print b "  " $6 " |  " $7 " |";b=""} END { print "\n" }' /tmp/sslspeed | sed 's/\.\(..\)k/\10/g' 
-</code> 
-Output example 
-<code sh> 
-# awk '$1 ~ /(md5|sha)/ {print $1 "\t\t|  " $5 " |"} $1 ~ /(des| 
-aes)/ {b = b $1 " " $2 " \t|  " $6 " |\n"} $1 ~ /(rsa|dsa)/ {print b $1 "\t\t|   
-" $6 " |  " $7 " |";b=""}' /tmp/sslspeed 
-md5            |  26144.30k | 
-sha1            |  7654.23k | 
-sha256          |  5116.21k | 
-sha512          |  1558.07k | 
-des cbc        |  4094.63k | 
-des ede3        |  1445.24k | 
-aes-128 cbc    |  2511.21k | 
-aes-192 cbc    |  2128.14k | 
-aes-256 cbc    |  1873.44k | 
-rsa            |  5.1 |  191.7 | 
-dsa            |  19.3 |  15.9 | 
- 
-# awk -v ORS="" '$1 ~ /OpenSSL/ {print "| " $2 " |"} $1 ~ /(md5|sha)/ {print "  " $5 " |"} 
- $1 ~ /(des|aes)/ {b = b "  " $6 " |"} $1 ~ /(rsa|dsa)/ {print b "  " $6 " |  " $7 " |";b=""} 
- END { print "\n" }' /tmp/sslspeed | sed 's/\.\(..\)k/\10/g' 
-| 1.0.0d |  26144300 |  7654230 |  5116210 |  1558070 |  4094630 |  1445240 |  2511210 
- |  2128140 |  1873440 |  5.1 |  191.7 |  19.3 |  15.9 | 
-</code> 
- 
- 
-  * Benchmarks are based on running: 
-<code sh> 
-cat /proc/cpuinfo 
-cat /proc/crypto 
-openssl speed md5 sha1 sha256 sha512 des des-ede3 aes-128-cbc aes-192-cbc aes-256-cbc rsa2048 dsa2048 
-</code> 
-  * **Please include the output for 1024 byte blocks only!** 
-  * Hash and block ciphers use 1024 byte blocks; "k" refers to 1000 bytes per second, so the "k" is removed and result multiplied x1000. 
-  * Certificate verification and signing are based on 2048 bit keys;  the values are the number of signings/verifications per second. 
- 
-===== Script debug ===== 
- 
-{{tag>wip}}FIXME 
-<code sh> 
-opkg list-installed base-files | awk -v FS="-" {'print $4'} 
-r25094 
-awk 'match($0,/r[0-9]+/) {print substr($0,RSTART,RLENGTH)}' /etc/banner 
-r25094 
-awk '/r[0-9]+/ { print gensub(/([^0-9]*)(r[0-9]+)(.*)/, "\\2", "1") }' /etc/banner 
-r25094 
-awk -v FS="(" 'match($0,/r[0-9]+/) {print substr($1,2) substr($0,RSTART,RLENGTH)}' /etc/banner 
-ATTITUDE ADJUSTMENT r25661 
-awk -v FS=": " -v ORS="" '/(Processor|BogoMIPS|Hardware|machine|cpu model|system type)/ { print "| " $2 " " } END { print "|\n" }' /proc/cpuinfo 
-| Atheros AR7241 rev 1 | TP-LINK TL-MR3420 | MIPS 24Kc V7.4 | 266.24 | 
-awk -v FS=": " -v ORS="" '/(Processor|BogoMIPS|Hardware|machine|cpu model|system type)/ { print "| " $2 " " } END { print "|\n" }' /proc/cpuinfo 
-| Feroceon rev0 (v5l) | 332.59 | Netgear WNR854T | 
-</code> 
-| openssl-util  |  1.0.0d-1  |  libopenssl  |  167.442 | The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a full-strength general purpose cryptography library. This package contains the OpenSSL command-line utility.  | 
-| libopenssl    |  1.0.0d-1  |  zlib        |  582.261 | The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a full-strength general purpose cryptography library. This package contains the OpenSSL shared libraries, needed by other programs.  | 
-| zlib          |  1.2.5-1  |              |  39.403 | Library implementing the deflate compression method  | 
===== Tags ===== ===== Tags =====

Back to top

inbox/benchmark.openssl.1394057936.txt.bz2 · Last modified: 2014/03/05 23:18 (external edit)