openssl benchmark

Leave a comment

Good or Bad???

OpenSSL 0.9.8r 8 Feb 2011 built on: Apr 22 2011 options:bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr2) compiler: -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O3 -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DMD32_REG_T=int -DOPENSSL_NO_IDEA -DOPENSSL_PIC -DOPENSSL_THREADS -DZLIB -mmacosx-version-min=10.6 available timing options: TIMEB USE_TOD HZ=100 [sysconf value] timing function used: getrusage The ‘numbers’ are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes md2 1964.95k 4086.22k 5597.40k 6175.24k 6353.13k mdc2 7309.46k 8097.14k 8313.95k 8365.31k 8382.60k md4 28705.69k 98447.12k 284023.25k 527234.15k 707306.08k md5 23100.07k 74908.53k 195627.12k 327604.64k 411660.77k hmac(md5) 25934.68k 81967.63k 206492.14k 336316.56k 413630.23k sha1 22755.56k 69857.34k 163544.70k 245485.16k 288169.95k rmd160 18335.12k 50771.36k 106225.50k 145315.96k 162974.06k rc4 211462.38k 237169.09k 244242.71k 245681.23k 246479.38k des cbc 40087.72k 41504.16k 42140.58k 42358.20k 42408.70k des ede3 15850.35k 16036.74k 16145.02k 16167.24k 16166.82k idea cbc 0.00 0.00 0.00 0.00 0.00 seed cbc 51450.57k 51369.47k 51886.62k 52682.03k 52891.09k rc2 cbc 24640.61k 25384.18k 25469.89k 25541.21k 25584.21k rc5-32/12 cbc 138441.24k 152689.36k 155849.38k 157298.05k 157560.37k blowfish cbc 80957.14k 85049.79k 85805.24k 86353.04k 86502.82k cast cbc 62414.33k 65091.35k 65999.75k 66401.86k 66541.05k aes-128 cbc 119393.70k 114373.40k 120090.60k 123629.86k 124579.96k aes-192 cbc 104670.80k 101273.27k 105958.59k 108819.47k 109732.79k aes-256 cbc 93304.11k 91171.23k 94851.75k 96895.74k 97555.55k camellia-128 cbc 0.00 0.00 0.00 0.00 0.00 camellia-192 cbc 0.00 0.00 0.00 0.00 0.00 camellia-256 cbc 0.00 0.00 0.00 0.00 0.00 sha256 15755.64k 38477.67k 71447.78k 91218.33k 99222.68k sha512 12447.23k 49417.13k 87587.66k 130414.83k 152945.46k aes-128 ige 118283.86k 126699.81k 129669.63k 130648.81k 130513.96k aes-192 ige 103420.88k 111115.33k 113591.28k 114226.64k 114084.70k aes-256 ige 93433.98k 98916.16k 100644.82k 101255.51k 101164.86k sign verify sign/s verify/s rsa 512 bits 0.000386s 0.000031s 2591.0 32300.0 rsa 1024 bits 0.001847s 0.000088s 541.5 11337.1 rsa 2048 bits 0.010959s 0.000291s 91.3 3433.7 rsa 4096 bits 0.070687s 0.001019s 14.1 980.9 sign verify sign/s verify/s dsa 512 bits 0.000320s 0.000350s 3125.0 2859.8 dsa 1024 bits 0.000897s 0.001046s 1114.7 955.8 dsa 2048 bits 0.002905s 0.003421s 344.2 292.3

QJson – Home

Leave a comment

QJson – Home.


the easiest way to manage JSON objects with Qt

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It can represents integer, real number, string, an ordered sequence of value, and a collection of name/value pairs.

QJson is a qt-based library that maps JSON data to QVariant objects: JSON arrays will be mapped to QVariantList instances, while JSON objects will be mapped to QVariantMap.

Easy to use

QJson is fast and reliable. Don’t waste your time writing another JSON parser!

Converting a JSON object to a QVariant requires just three lines of code:

1 // create a JSonDriver instance
2 QJson::Parser parser;
3 bool ok;
5 // json is a QString containing the data to convert
6 QVariant result = parser.parse (json, &ok);

It’s also possible to convert QVariant instances to JSON objects:

1 // create a Serializer instance
2 QJson::Serializer serializer;
3 const QByteArray serialized = serializer.serialize( json_object );

It’s possible to serialize QObject instances into JSON and also to initialize a QObject using the values stored inside of a JSON object.

Check out the usage section for more code snippets.