Identity/AttachedServices/Key Stretching Performance Tests: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4: Line 4:
! Browser / Test !! Firefox 23 Desktop !! Google Chrome 28 !! Firefox Android Beta 24 !! Firefox OS !! Android WebView !! Android + OpenSSL
! Browser / Test !! Firefox 23 Desktop !! Google Chrome 28 !! Firefox Android Beta 24 !! Firefox OS !! Android WebView !! Android + OpenSSL
|-
|-
! [1] pbkdf2 key [https://wiki.mozilla.org/Identity/AttachedServices/KeyServerProtocol#stretch-KDF #stretch-KDF]
! [1] 20k PBKDF2-SHA256
|  5.39 ops/sec ±4.20% (30 runs sampled) || 8.12 ops/sec ±1.15% (43 runs sampled) || 0.47 ops/sec ±7.73% (7 runs sampled)  || 0.24 ops/sec ±7.06% (6 runs sampled)  || 0.66 ops/sec ±4.35% (8 runs sampled) || 2.85 ops/sec (**1 run sampled**)
|  5.39 ops/sec ±4.20% (30 runs sampled) || 8.12 ops/sec ±1.15% (43 runs sampled) || 0.47 ops/sec ±7.73% (7 runs sampled)  || 0.24 ops/sec ±7.06% (6 runs sampled)  || 0.66 ops/sec ±4.35% (8 runs sampled) || 2.85 ops/sec (**1 run sampled**)
|-
|-
! [2] Key Stretch w/ Remote Helper
! [2] 20k*PBKDF + scrypt(64k,8,1) + 20k*PBKDF
| 0.66 ops/sec ±10.70% (8 runs sampled) || 0.79 ops/sec ±1.98% (8 runs sampled) || 0.16 ops/sec ±9.02% (5 runs sampled) || 0.10 ops/sec ±3.37% (5 runs sampled)  || 0.18 ops/sec ±21.96% (6 runs sampled) || --
| 0.66 ops/sec ±10.70% (8 runs sampled) || 0.79 ops/sec ±1.98% (8 runs sampled) || 0.16 ops/sec ±9.02% (5 runs sampled) || 0.10 ops/sec ±3.37% (5 runs sampled)  || 0.18 ops/sec ±21.96% (6 runs sampled) || --
|-
|-
|-
|-
! [3] Key Stretch w/ local code
! [3] 20kPBKDF + local(scrypt(64k,8,1)) + 20kPBKDF
| -- || -- || -- || --  || -- || 0.1369 ops/sec (10 runs sampled, extremes discarded -- 7362-7505msec)
| -- || -- || -- || --  || -- || 0.1369 ops/sec (10 runs sampled, extremes discarded -- 7362-7505msec)
|-
|-
Line 18: Line 18:


'''Tests'''
'''Tests'''
* [1] 20k PBKDF2, pdbkdf2.derive(...) - Client pdbkdf2 derivation [https://wiki.mozilla.org/Identity/AttachedServices/KeyServerProtocol#stretch-KDF #stretch-KDF]
* [1] '''20k PBKDF2-SHA256''', pdbkdf2.derive(...) - Client pdbkdf2 derivation [https://wiki.mozilla.org/Identity/AttachedServices/KeyServerProtocol#stretch-KDF #stretch-KDF]
* [2] keyStretch.derive(email, password) - Full Key Stretch with a remote helper at "http://scrypt.dev.lcip.org/".  [https://wiki.mozilla.org/Identity/AttachedServices/KeyServerProtocol#stretch-KDF #stretch-KDF + #main-KDF]
* [2] '''20k*PBKDF+scrypt(64k,8,1)+20k*PBKDF''' keyStretch.derive(email, password) - Full Key Stretch with a remote helper at "http://scrypt.dev.lcip.org/".  [https://wiki.mozilla.org/Identity/AttachedServices/KeyServerProtocol#stretch-KDF #stretch-KDF + #main-KDF]
* [3]  20k PBKDF2, scrypt 65536 iter, 20k PBKDF2.
* [3]  '''20kPBKDF + local(scrypt(64k,8,1)) + 20kPBKDF'''


'''Test Framework'''
'''Test Framework'''
Confirmed users
43

edits