Skip to content

Instantly share code, notes, and snippets.

@raycoll
Created December 12, 2016 07:08
Show Gist options
  • Select an option

  • Save raycoll/0af27b88562b12b980e93dc6d977580f to your computer and use it in GitHub Desktop.

Select an option

Save raycoll/0af27b88562b12b980e93dc6d977580f to your computer and use it in GitHub Desktop.
x25519 vs p-256
/w/x25519_test ❯❯❯ ../s2n/libcrypto-root-1.1.0-master/bin/openssl s_server -cipher $(../s2n/libcrypto-root-1.1.0-master/bin/openssl ciphers ECDHE) -curves X25519 -ign_eof -quiet -nbio
...
/w/s2n ❯❯❯ ./libcrypto-root-1.1.0-master/bin/openssl s_time -new -cipher ECDHE-RSA-AES256-GCM-SHA384
Collecting connection statistics for 30 seconds
***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
3903 connections in 2.15s; 1815.35 connections/user sec, bytes read 0
3903 connections in 31 real seconds, 0 bytes read per connection
/w/x25519_test ❯❯❯ ../s2n/libcrypto-root-1.1.0-master/bin/openssl s_server -cipher $(../s2n/libcrypto-root-1.1.0-master/bin/openssl ciphers ECDHE) -curves prime256v1 -ign_eof -quiet -nbio
...
/w/s2n ❯❯❯ ./libcrypto-root-1.1.0-master/bin/openssl s_time -new -cipher ECDHE-RSA-AES256-GCM-SHA384
Collecting connection statistics for 30 seconds
*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
4465 connections in 2.30s; 1941.30 connections/user sec, bytes read 0
4465 connections in 31 real seconds, 0 bytes read per connection
/w/s2n ❯❯❯
@gerrydoro
Copy link

Please, can you explain the results of this test?
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment