Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: GnuPG: gcrypt

[patch] Make cipher benchmark tests easier to read

 

 

GnuPG gcrypt RSS feed   Index | Next | Previous | View Threaded


bradh at frogmouth

Jun 7, 2009, 6:13 PM

Post #1 of 2 (1111 views)
Permalink
[patch] Make cipher benchmark tests easier to read

Hi,

Currently the benchmark code lays things out like this
(best viewed in a fixed width font, without wrapping...)
ECB CBC CFB OFB CTR STREAM
--------------- --------------- --------------- --------------- --------------- ---------------
3DES 70ms 70ms 70ms 70ms 80ms 70ms 70ms 70ms 110ms 110ms
CAST5 30ms 30ms 30ms 30ms 30ms 30ms 30ms 30ms 70ms 70ms
BLOWFISH 20ms 30ms 30ms 30ms 30ms 30ms 20ms 20ms 70ms 70ms
AES 30ms 30ms 20ms 30ms 20ms 20ms 30ms 30ms 60ms 70ms
AES192 30ms 40ms 20ms 30ms 30ms 20ms 40ms 30ms 70ms 70ms
AES256 40ms 40ms 30ms 30ms 30ms 30ms 30ms 40ms 70ms 80ms
TWOFISH 10ms 20ms 20ms 20ms 20ms 20ms 20ms 20ms 50ms 60ms
ARCFOUR 10ms 10ms
DES 40ms 30ms 40ms 40ms 40ms 30ms 40ms 40ms 80ms 80ms
TWOFISH128 10ms 20ms 20ms 20ms 20ms 20ms 20ms 20ms 50ms 60ms
SERPENT128 30ms 20ms 30ms 30ms 30ms 30ms 30ms 30ms 60ms 70ms
SERPENT192 30ms 20ms 30ms 30ms 30ms 30ms 30ms 30ms 70ms 60ms
SERPENT256 30ms 30ms 30ms 30ms 30ms 30ms 20ms 40ms 60ms 70ms
RFC2268_40 30ms 20ms 30ms 20ms 30ms 30ms 30ms 30ms 70ms 70ms
SEED 30ms 20ms 30ms 30ms 30ms 30ms 20ms 30ms 70ms 60ms
CAMELLIA128 60ms 50ms 60ms 50ms 60ms 50ms 60ms 60ms 90ms 90ms
CAMELLIA192 60ms 60ms 60ms 60ms 60ms 60ms 60ms 60ms 100ms 90ms
CAMELLIA256 60ms 60ms 60ms 60ms 60ms 60ms 60ms 60ms 100ms 90ms

I think that is a bit hard to read - it would be better if
the mode label was centred over the encrypt and decrypt
time columns, like:
ECB CBC CFB OFB CTR STREAM
--------------- --------------- --------------- --------------- --------------- ---------------
3DES 70ms 70ms 70ms 70ms 70ms 70ms 70ms 70ms 110ms 110ms
CAST5 30ms 30ms 30ms 30ms 30ms 30ms 30ms 30ms 70ms 70ms
BLOWFISH 30ms 20ms 30ms 30ms 30ms 30ms 30ms 20ms 70ms 70ms
AES 30ms 30ms 20ms 30ms 20ms 20ms 30ms 30ms 60ms 70ms
AES192 30ms 40ms 20ms 40ms 20ms 30ms 30ms 30ms 70ms 70ms
AES256 40ms 40ms 30ms 30ms 30ms 30ms 40ms 30ms 80ms 70ms
TWOFISH 20ms 20ms 20ms 20ms 10ms 20ms 20ms 20ms 60ms 50ms
ARCFOUR 20ms 10ms
DES 30ms 40ms 40ms 40ms 40ms 30ms 40ms 40ms 80ms 80ms
TWOFISH128 20ms 20ms 20ms 20ms 20ms 10ms 20ms 20ms 60ms 60ms
SERPENT128 20ms 30ms 30ms 30ms 30ms 20ms 30ms 30ms 70ms 70ms
SERPENT192 30ms 20ms 30ms 30ms 30ms 30ms 30ms 30ms 60ms 70ms
SERPENT256 30ms 20ms 30ms 30ms 30ms 30ms 30ms 30ms 70ms 60ms
RFC2268_40 30ms 20ms 30ms 30ms 30ms 20ms 30ms 30ms 70ms 70ms
SEED 30ms 30ms 30ms 20ms 30ms 30ms 30ms 30ms 60ms 70ms
CAMELLIA128 50ms 50ms 60ms 60ms 50ms 60ms 50ms 60ms 90ms 100ms
CAMELLIA192 50ms 60ms 60ms 60ms 60ms 60ms 60ms 60ms 100ms 90ms
CAMELLIA256 60ms 60ms 60ms 60ms 60ms 60ms 60ms 60ms 100ms 90ms

Trivial patch is attached. I considered adding some code that
would automatically line it up, but that seemed excessively
complicated for this.

Brad
Attachments: benchmark-prettify-2009-06-08.patch (0.87 KB)


wk at gnupg

Jun 8, 2009, 12:02 AM

Post #2 of 2 (1029 views)
Permalink
Re: [patch] Make cipher benchmark tests easier to read [In reply to]

On Mon, 8 Jun 2009 03:13, bradh [at] frogmouth said:

> I think that is a bit hard to read - it would be better if
> the mode label was centred over the encrypt and decrypt
> time columns, like:

Thanks. I changed my working copy.


Shalom-Salam,

Werner

--
Die Gedanken sind frei. Auschnahme regelt ein Bundeschgesetz.


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel

GnuPG gcrypt RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.