From 6b3c90c8909960cbd34c7cafbd07258ee888d28c Mon Sep 17 00:00:00 2001 From: Shigeki Ohtsu Date: Thu, 2 Apr 2015 13:30:35 +0900 Subject: [PATCH] benchmark: add rsa/aes-gcm performance test --- benchmark/crypto/aes-gcm-throughput.js | 38 +++++++++++++ .../crypto/rsa-encrypt-decrypt-throughput.js | 45 ++++++++++++++++ .../crypto/rsa-sign-verify-throughput.js | 53 +++++++++++++++++++ test/fixtures/keys/Makefile | 20 ++++++- test/fixtures/keys/rsa_private_1024.pem | 15 ++++++ test/fixtures/keys/rsa_private_2048.pem | 27 ++++++++++ test/fixtures/keys/rsa_private_4096.pem | 51 ++++++++++++++++++ test/fixtures/keys/rsa_public_1024.pem | 6 +++ test/fixtures/keys/rsa_public_2048.pem | 9 ++++ test/fixtures/keys/rsa_public_4096.pem | 51 ++++++++++++++++++ 10 files changed, 314 insertions(+), 1 deletion(-) create mode 100644 benchmark/crypto/aes-gcm-throughput.js create mode 100644 benchmark/crypto/rsa-encrypt-decrypt-throughput.js create mode 100644 benchmark/crypto/rsa-sign-verify-throughput.js create mode 100644 test/fixtures/keys/rsa_private_1024.pem create mode 100644 test/fixtures/keys/rsa_private_2048.pem create mode 100644 test/fixtures/keys/rsa_private_4096.pem create mode 100644 test/fixtures/keys/rsa_public_1024.pem create mode 100644 test/fixtures/keys/rsa_public_2048.pem create mode 100644 test/fixtures/keys/rsa_public_4096.pem diff --git a/benchmark/crypto/aes-gcm-throughput.js b/benchmark/crypto/aes-gcm-throughput.js new file mode 100644 index 00000000000000..65e1713f0eb1c6 --- /dev/null +++ b/benchmark/crypto/aes-gcm-throughput.js @@ -0,0 +1,38 @@ +var common = require('../common.js'); +var crypto = require('crypto'); +var keylen = {'aes-128-gcm': 16, 'aes-192-gcm': 24, 'aes-256-gcm': 32}; +var bench = common.createBenchmark(main, { + n: [500], + cipher: ['aes-128-gcm', 'aes-192-gcm', 'aes-256-gcm'], + len: [1024, 4 * 1024, 16 * 1024, 64 * 1024, 256 * 1024, 1024 * 1024] +}); + +function main(conf) { + var message = (new Buffer(conf.len)).fill('b'); + var key = crypto.randomBytes(keylen[conf.cipher]); + var iv = crypto.randomBytes(12); + var associate_data = (new Buffer(16)).fill('z'); + bench.start(); + AEAD_Bench(conf.cipher, message, associate_data, key, iv, conf.n, conf.len); +} + +function AEAD_Bench(cipher, message, associate_data, key, iv, n, len) { + var written = n * len; + var bits = written * 8; + var mbits = bits / (1024 * 1024); + + for (var i = 0; i < n; i++) { + var alice = crypto.createCipheriv(cipher, key, iv); + alice.setAAD(associate_data); + var enc = alice.update(message); + alice.final(); + var tag = alice.getAuthTag(); + var bob = crypto.createDecipheriv(cipher, key, iv); + bob.setAuthTag(tag); + bob.setAAD(associate_data); + var clear = bob.update(enc); + bob.final(); + } + + bench.end(mbits); +} diff --git a/benchmark/crypto/rsa-encrypt-decrypt-throughput.js b/benchmark/crypto/rsa-encrypt-decrypt-throughput.js new file mode 100644 index 00000000000000..1cd7a5e632910b --- /dev/null +++ b/benchmark/crypto/rsa-encrypt-decrypt-throughput.js @@ -0,0 +1,45 @@ +// throughput benchmark in signing and verifying +var common = require('../common.js'); +var crypto = require('crypto'); +var fs = require('fs'); +var path = require('path'); +var fixtures_keydir = path.resolve(__dirname, '../../test/fixtures/keys/'); +var keylen_list = ['1024', '2048', '4096']; +var RSA_PublicPem = {}; +var RSA_PrivatePem = {}; + +keylen_list.forEach(function(key) { + RSA_PublicPem[key] = fs.readFileSync(fixtures_keydir + + '/rsa_public_' + key + '.pem'); + RSA_PrivatePem[key] = fs.readFileSync(fixtures_keydir + + '/rsa_private_' + key + '.pem'); +}); + +var bench = common.createBenchmark(main, { + n: [500], + keylen: keylen_list, + len: [16, 32, 64] +}); + +function main(conf) { + var crypto = require('crypto'); + var message = (new Buffer(conf.len)).fill('b'); + + bench.start(); + StreamWrite(conf.algo, conf.keylen, message, conf.n, conf.len); +} + +function StreamWrite(algo, keylen, message, n, len) { + var written = n * len; + var bits = written * 8; + var kbits = bits / (1024); + + var privateKey = RSA_PrivatePem[keylen]; + var publicKey = RSA_PublicPem[keylen]; + for (var i = 0; i < n; i++) { + var enc = crypto.privateEncrypt(privateKey, message); + var clear = crypto.publicDecrypt(publicKey, enc); + } + + bench.end(kbits); +} diff --git a/benchmark/crypto/rsa-sign-verify-throughput.js b/benchmark/crypto/rsa-sign-verify-throughput.js new file mode 100644 index 00000000000000..fd4260417b2221 --- /dev/null +++ b/benchmark/crypto/rsa-sign-verify-throughput.js @@ -0,0 +1,53 @@ +// throughput benchmark in signing and verifying +var common = require('../common.js'); +var crypto = require('crypto'); +var fs = require('fs'); +var path = require('path'); +var fixtures_keydir = path.resolve(__dirname, '../../test/fixtures/keys/'); +var keylen_list = ['1024', '2048']; +var RSA_PublicPem = {}; +var RSA_PrivatePem = {}; + +keylen_list.forEach(function(key) { + RSA_PublicPem[key] = fs.readFileSync(fixtures_keydir + + '/rsa_public_' + key + '.pem'); + RSA_PrivatePem[key] = fs.readFileSync(fixtures_keydir + + '/rsa_private_' + key + '.pem'); +}); + +var bench = common.createBenchmark(main, { + writes: [500], + algo: ['RSA-SHA1', 'RSA-SHA224', 'RSA-SHA256', 'RSA-SHA384', 'RSA-SHA512'], + keylen: keylen_list, + len: [1024, 102400, 2 * 102400, 3 * 102400, 1024 * 1024] +}); + +function main(conf) { + var crypto = require('crypto'); + var message = (new Buffer(conf.len)).fill('b'); + + bench.start(); + StreamWrite(conf.algo, conf.keylen, message, conf.writes, conf.len); +} + +function StreamWrite(algo, keylen, message, writes, len) { + var written = writes * len; + var bits = written * 8; + var kbits = bits / (1024); + + var privateKey = RSA_PrivatePem[keylen]; + var publicKey = RSA_PublicPem[keylen]; + var s = crypto.createSign(algo); + var v = crypto.createVerify(algo); + + while (writes-- > 0) { + s.update(message); + v.update(message); + } + + var sign = s.sign(privateKey, 'binary'); + s.end(); + v.end(); + + bench.end(kbits); +} diff --git a/test/fixtures/keys/Makefile b/test/fixtures/keys/Makefile index ee667c60156db4..a096431a8c3307 100644 --- a/test/fixtures/keys/Makefile +++ b/test/fixtures/keys/Makefile @@ -1,4 +1,4 @@ -all: agent1-cert.pem agent2-cert.pem agent3-cert.pem agent4-cert.pem agent5-cert.pem ca2-crl.pem ec-cert.pem dh512.pem dh1024.pem dh2048.pem +all: agent1-cert.pem agent2-cert.pem agent3-cert.pem agent4-cert.pem agent5-cert.pem ca2-crl.pem ec-cert.pem dh512.pem dh1024.pem dh2048.pem rsa_private_1024.pem rsa_private_2048.pem rsa_private_4096.pem rsa_public_1024.pem rsa_public_2048.pem rsa_public_4096.pem # @@ -179,6 +179,24 @@ dh1024.pem: dh2048.pem: openssl dhparam -out dh2048.pem 2048 +rsa_private_1024.pem: + openssl genrsa -out rsa_private_1024.pem 1024 + +rsa_private_2048.pem: + openssl genrsa -out rsa_private_2048.pem 2048 + +rsa_private_4096.pem: + openssl genrsa -out rsa_private_4096.pem 4096 + +rsa_public_1024.pem: rsa_private_1024.pem + openssl rsa -in rsa_private_1024.pem -out rsa_public_1024.pem + +rsa_public_2048.pem: rsa_private_2048.pem + openssl rsa -in rsa_private_2048.pem -out rsa_public_2048.pem + +rsa_public_4096.pem: rsa_private_4096.pem + openssl rsa -in rsa_private_4096.pem -out rsa_public_4096.pem + clean: rm -f *.pem *.srl ca2-database.txt ca2-serial diff --git a/test/fixtures/keys/rsa_private_1024.pem b/test/fixtures/keys/rsa_private_1024.pem new file mode 100644 index 00000000000000..1ef8d3a7012764 --- /dev/null +++ b/test/fixtures/keys/rsa_private_1024.pem @@ -0,0 +1,15 @@ +-----BEGIN RSA PRIVATE KEY----- +MIICXQIBAAKBgQDOF+YjZgVg8yGFS+++0WVcTKms1Wl2Lbnzj7jWOPyZnXxww7cE +afiL3QI2RZCiVwBcueUejCbzT5iLrsWceryOCHZE4nQ5IOEYCpPzWw6oTfSM7HV0 +axQEpSzJFp20NJV9pVvBmSrrrdlGaDwHY1nlGVB3s2CKTAVxcKWoD6FhVQIDAQAB +AoGBAIoz5JRgWcMFx7jHj2H6sWoPzsij5DDnwQbfniep11p8DXLhC93d4lqIPm9+ +ftseVJPZ5RdzDLuk6Lri3IlulPnEeJZrfYQVlfge6N9swQ54j3wRGEBjcP+7pu7Q +nQ5FpOyJqQWWMUinf+o1bEkClIBPTY4x8pIoCM09wSvD9weRAkEA/hWym3rDwrcu +pKvb1VgWZtrrCv5m+2Dk5V7qA+9sUyI9Lq9dlklNMcbuJXCy8Evd2Q3EMySYQGVc +cXEKkeKefwJBAM+ll95tMX/YDEYAtOf3stz59rC4EyuD2kOZJt0dPj3vApYYq9+0 +Wnd0c8VOzJGjpVI21SY+fA+doMiZVVjSPisCQCD0R3oK7iDvCUmqUJTXG/CzLBD8 +9fZcltN4//kKsI4Hvs+zRvwa/bwbBQAuIccwz9E7C9tmP6j6fIbqFmjdb5kCQCJI +MJ6kYHu+66fTDgsONhWNn1Dl0yRoDG0EqAnxfgkzoLWvNREl8ZmvPD3jGJsi7XR5 +YQ+DWXAqkhUMW67iZykCQQCgZdOUkAWu7NsCfGSTTvrMapa5PAt/GPDzzY9JGGif +p+09SVdrnphr+MX6MCnOsixPXrMtg/LLhpQkwjVetm15 +-----END RSA PRIVATE KEY----- diff --git a/test/fixtures/keys/rsa_private_2048.pem b/test/fixtures/keys/rsa_private_2048.pem new file mode 100644 index 00000000000000..7ff76a49332820 --- /dev/null +++ b/test/fixtures/keys/rsa_private_2048.pem @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEA20oG4U+MsV45A4zG0ySoavFmWmdkVtmKh1Tk9sC3V6Fu5w1v +44lZDa57n+ghEA9Y4txUVQzm3TppwBFqUB2bBZrAhAjmjiPxjECGTV7ABaAQyihJ +R0F2LL1KmdlduFXACvNCfIseBoOY6K49vrW3/rVC1gBQ6/S3K6jECjGAvOyUcIAv +ch0YpW68v12AOUMI+CpzRQdMv6akbOVt5Qtg1vIvv0lIuirYcq9MWS++oFvHrxzX +qAiAfgc0truwbW5Lz2w7Wcy0pBYeVW6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H7wTW/ +dZb1pFMem5Ky5ujdD4hFBhHGW3rWqk61zsS3rw3CSXV48hVl5r9++q9Wd5ep66Ac +VDN3BQKBgGMkPiQ5YuhVG3zEYM/4zgW7zCEuDyocqXkv5nJGW3JxPDBuJhLbwQ8F +RqawaRhuIQZtKnbN7JIGLFYYx+LkUlj7bbkzz6iaHHBtiDqz4/bHEL3q02DpAyJR +koWbtKIbZfS0Zno3OoGdYyvwXYaaE3Q3DJOc+NUmMKhlAhcAkjQv +-----END RSA PRIVATE KEY----- diff --git a/test/fixtures/keys/rsa_private_4096.pem b/test/fixtures/keys/rsa_private_4096.pem new file mode 100644 index 00000000000000..30ca58045bdf28 --- /dev/null +++ b/test/fixtures/keys/rsa_private_4096.pem @@ -0,0 +1,51 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIJKQIBAAKCAgEArAvNBLD//h69aKy5t49I5CFdtwVuAym9qXa3IMZ7vCauW5/8 +V7xkTZeX/Yywykyxm59R3e1xQT9Wcsur0OhQby449szXEJq/ZRVIos7p/CpgzlGO +eWOhbwm6J973uJvMudvq1UPJA90vX1LGcgZfL/SOFkqRs+bVyrkjScDrDP7wCMQA +CkJTh8ScwVqURnRb61mx+sck8kuuauNAaKgXIzQZWYHGIihKVc+iWCYhAXE0Lq8B +yX125IbHIVVPKUdr5EfnNxLD9c1fO7rWNZfNlkZnEr2PZxa+T8YjD8FCJTYxLFLQ +7bH94Gh0UtydgqO2yYwr5TV7FSFa+HwqkvdBNo9c7g9608lNWXa+CZOU/HsTTcyj +WIzqnXwZf5eUc8G7oHmNMTx8xOQ9gbnS1TjgDtztvh+RGeEsMQT5UEU7Do1eeCyl +8lQ56BdZJ4eoUefAW7YqGkuYi0Qn5deX9ei1ozlefewPC/6q/sPNZHbPcdJ5yeya +N+TV4qzKlDGH3lw8g1mT3BOJhCcdxLuYuc3vKplBGx6fAW0klT39eeK4FtCEWH1r +xUzQEltngS9INYos6238KS8u3GFZFf3ggJemtxg/1oTv4L2ZGS7/j4r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z +XNSUeJRRjXTdKCFNXFzWChINaGutnF3vCwKCAQBvmjBndvF1cQW6GdYMNBpZE+gr +jsWMRQqs3TQnUI2bzhOGj/2JzWcghCuYB3pIlEGYrhaGLYa0bBwMcoE95lg/Gleg +YxQakN4Qv7Xy6zN8pT/8GNAaqBuO+4AOAITrM4xGAYYkfvQbG83PZpoUl1h82+tS +4imnGk+gzqzz52PkAYV/LkcWlBFSoqSeI2lQvaLLrijhacHKokJui3YAmqIMR6X2 +AeVV3juiLWJsCk9Jd5eLTPy4XlcNzB5MTenmUWXUFjqhSeNPMNHDE82xuZ362OKD +FvtYiLTGh2vWw/0zRHbV4S5dO5RkNLVxiu7akOoV6uBgYdNCJxYHNBVWusyA +-----END RSA PRIVATE KEY----- diff --git a/test/fixtures/keys/rsa_public_1024.pem b/test/fixtures/keys/rsa_public_1024.pem new file mode 100644 index 00000000000000..0ec72a9b23c10e --- /dev/null +++ b/test/fixtures/keys/rsa_public_1024.pem @@ -0,0 +1,6 @@ +-----BEGIN PUBLIC KEY----- +MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDOF+YjZgVg8yGFS+++0WVcTKms +1Wl2Lbnzj7jWOPyZnXxww7cEafiL3QI2RZCiVwBcueUejCbzT5iLrsWceryOCHZE +4nQ5IOEYCpPzWw6oTfSM7HV0axQEpSzJFp20NJV9pVvBmSrrrdlGaDwHY1nlGVB3 +s2CKTAVxcKWoD6FhVQIDAQAB +-----END PUBLIC KEY----- diff --git a/test/fixtures/keys/rsa_public_2048.pem b/test/fixtures/keys/rsa_public_2048.pem new file mode 100644 index 00000000000000..e43ef4c73bffc6 --- /dev/null +++ b/test/fixtures/keys/rsa_public_2048.pem @@ -0,0 +1,9 @@ +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA20oG4U+MsV45A4zG0ySo +avFmWmdkVtmKh1Tk9sC3V6Fu5w1v44lZDa57n+ghEA9Y4txUVQzm3TppwBFqUB2b +BZrAhAjmjiPxjECGTV7ABaAQyihJR0F2LL1KmdlduFXACvNCfIseBoOY6K49vrW3 +/rVC1gBQ6/S3K6jECjGAvOyUcIAvch0YpW68v12AOUMI+CpzRQdMv6akbOVt5Qtg +1vIvv0lIuirYcq9MWS++oFvHrxzXqAiAfgc0truwbW5Lz2w7Wcy0pBYeVW6HvBFP +wUEV/2rn+RHrbgE9yQ+p4gDkdfHVyuMx21Mf449UwQUuI3HZ4BPqmyWkwSEYsfVY +MQIDAQAB +-----END PUBLIC KEY----- diff --git a/test/fixtures/keys/rsa_public_4096.pem b/test/fixtures/keys/rsa_public_4096.pem new file mode 100644 index 00000000000000..30ca58045bdf28 --- /dev/null +++ b/test/fixtures/keys/rsa_public_4096.pem @@ -0,0 +1,51 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIJKQIBAAKCAgEArAvNBLD//h69aKy5t49I5CFdtwVuAym9qXa3IMZ7vCauW5/8 +V7xkTZeX/Yywykyxm59R3e1xQT9Wcsur0OhQby449szXEJq/ZRVIos7p/CpgzlGO +eWOhbwm6J973uJvMudvq1UPJA90vX1LGcgZfL/SOFkqRs+bVyrkjScDrDP7wCMQA +CkJTh8ScwVqURnRb61mx+sck8kuuauNAaKgXIzQZWYHGIihKVc+iWCYhAXE0Lq8B +yX125IbHIVVPKUdr5EfnNxLD9c1fO7rWNZfNlkZnEr2PZxa+T8YjD8FCJTYxLFLQ +7bH94Gh0UtydgqO2yYwr5TV7FSFa+HwqkvdBNo9c7g9608lNWXa+CZOU/HsTTcyj +WIzqnXwZf5eUc8G7oHmNMTx8xOQ9gbnS1TjgDtztvh+RGeEsMQT5UEU7Do1eeCyl +8lQ56BdZJ4eoUefAW7YqGkuYi0Qn5deX9ei1ozlefewPC/6q/sPNZHbPcdJ5yeya +N+TV4qzKlDGH3lw8g1mT3BOJhCcdxLuYuc3vKplBGx6fAW0klT39eeK4FtCEWH1r +xUzQEltngS9INYos6238KS8u3GFZFf3ggJemtxg/1oTv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