Skip to content

Benchmark

Patrick Favre-Bulle edited this page Jul 19, 2018 · 31 revisions

Bcrypt Performance Micro Benchmark Comparison

The timing values are for a single bcrypt hash in milliseconds.

PC/x86

Surface Pro 4

  • Hardware: i5-6300u, 8GB Ram
  • Software: Java 1.8.0_172 (Oracle Corporation), Windows 10 (10.0)
  • Tool-Version: 0.4.0
cost 6 cost 8 cost 9 cost 10 cost 11 cost 12 cost 14 cost 15
FavreBcrypt 7.08 ms 26.15 ms 51.47 ms 105.71 ms 275.55 ms 557.4 ms 1590.68 ms 3029.48 ms
JBcrypt 6.88 ms 28.24 ms 54.84 ms 106.8 ms 300.18 ms 389.31 ms 2038.58 ms 3246.88 ms
BC 6.38 ms 24.67 ms 49.58 ms 94.81 ms 283.87 ms 350.12 ms 1398.12 ms 2785.76 ms

Desktop i7-7700K

  • Hardware: i7-7700K, 24GB Ram
  • Software: Java 1.8.0_172 (Oracle Corporation), Windows 10 (10.0)
  • Tool-Version: 0.4.0 (250 rounds max)
cost 6 cost 8 cost 9 cost 10 cost 11 cost 12 cost 14 cost 15
FavreBcrypt 3.39 ms 13.57 ms 27.19 ms 55.08 ms 110.14 ms 217.71 ms 865.1 ms 1733.96 ms
JBcrypt 3.42 ms 13.8 ms 27.78 ms 56.31 ms 110.65 ms 221.6 ms 881.0 ms 1759.64 ms
BC 3.12 ms 12.51 ms 26.0 ms 50.59 ms 100.82 ms 203.43 ms 799.86 ms 1601.0 ms

Android

Samsung Galaxy S8+

  • Hardware: SM-G955F, 64GB
  • Software: SDK 26, G955FXXU2CRF7, R16NW
  • Tool-Version: 0.4.0 (250 rounds max)
cost 6 cost 8 cost 9 cost 10 cost 11 cost 12 cost 14 cost 15
FavreBcrypt 8.04 ms 28.52 ms 55.72 ms 110.18 ms 219.75 ms 438.69 ms 1760.12 ms 3538.72 ms
JBcrypt 7.92 ms 29.43 ms 58.01 ms 115.51 ms 231.14 ms 462.24 ms 1856.24 ms 4037.4 ms
BC 10.06 ms 37.38 ms 76.74 ms 152.87 ms 300.66 ms 600.19 ms 2427.3 ms 4793.96 ms

Pixel 2 SDK 27 Emulator

  • Hardware: i7-7700K, 24GB Ram
  • Software: Android Emulator (HAXM), SDK 27, Java 1.8.0_172 (Oracle Corporation), Windows 10 (10.0)
  • Tool-Version: 0.4.0 (250 rounds max)
cost 6 cost 8 cost 9 cost 10 cost 11 cost 12 cost 14 cost 15
FavreBcrypt 6.56 ms 15.16 ms 30.41 ms 58.9 ms 120.32 ms 234.25 ms 941.22 ms 1805.56 ms
JBcrypt 3.86 ms 15.56 ms 30.02 ms 60.78 ms 122.66 ms 242.26 ms 961.44 ms 1830.48 ms
BC 4.64 ms 17.95 ms 36.48 ms 72.56 ms 146.56 ms 286.69 ms 1098.52 ms 2149.92 ms
Clone this wiki locally