Skip to content

Instantly share code, notes, and snippets.

@plewin
Last active October 24, 2016 19:24
Show Gist options
  • Save plewin/2e2944d4c6a4f3c7fedf71488f666f20 to your computer and use it in GitHub Desktop.
Save plewin/2e2944d4c6a4f3c7fedf71488f666f20 to your computer and use it in GitHub Desktop.
Password blacklist benchmark results
method, file, number of iterations, duration (lower is better)
bench_stream_get_line 10_million_password_list_top_1000.txt 1 0 ms
bench_fgets_rtrim 10_million_password_list_top_1000.txt 1 0 ms
bench_fgets 10_million_password_list_top_1000.txt 1 0 ms
bench_file_in_array 10_million_password_list_top_1000.txt 1 0 ms
bench_cached_file_in_array 10_million_password_list_top_1000.txt 1 0 ms
bench_array_key_exists 10_million_password_list_top_1000.txt 1 0 ms
bench_cached_array_key_exists 10_million_password_list_top_1000.txt 1 0 ms
bench_grep 10_million_password_list_top_1000.txt 1 2 ms
bench_stream_get_line 10_million_password_list_top_10000.txt 1 2 ms
bench_fgets_rtrim 10_million_password_list_top_10000.txt 1 3 ms
bench_fgets 10_million_password_list_top_10000.txt 1 3 ms
bench_file_in_array 10_million_password_list_top_10000.txt 1 0 ms
bench_cached_file_in_array 10_million_password_list_top_10000.txt 1 1 ms
bench_array_key_exists 10_million_password_list_top_10000.txt 1 1 ms
bench_cached_array_key_exists 10_million_password_list_top_10000.txt 1 1 ms
bench_grep 10_million_password_list_top_10000.txt 1 2 ms
bench_stream_get_line 10_million_password_list_top_100000.txt 1 23 ms
bench_fgets_rtrim 10_million_password_list_top_100000.txt 1 27 ms
bench_fgets 10_million_password_list_top_100000.txt 1 25 ms
bench_file_in_array 10_million_password_list_top_100000.txt 1 5 ms
bench_cached_file_in_array 10_million_password_list_top_100000.txt 1 9 ms
bench_array_key_exists 10_million_password_list_top_100000.txt 1 11 ms
bench_cached_array_key_exists 10_million_password_list_top_100000.txt 1 14 ms
bench_grep 10_million_password_list_top_100000.txt 1 3 ms
bench_stream_get_line 10_million_password_list_top_1000000.txt 1 207 ms
bench_fgets_rtrim 10_million_password_list_top_1000000.txt 1 248 ms
bench_fgets 10_million_password_list_top_1000000.txt 1 245 ms
bench_file_in_array 10_million_password_list_top_1000000.txt 1 58 ms
bench_cached_file_in_array 10_million_password_list_top_1000000.txt 1 101 ms
bench_array_key_exists 10_million_password_list_top_1000000.txt 1 174 ms
bench_cached_array_key_exists 10_million_password_list_top_1000000.txt 1 213 ms
bench_grep 10_million_password_list_top_1000000.txt 1 16 ms
bench_stream_get_line openwall_all.txt 1 773 ms
bench_fgets_rtrim openwall_all.txt 1 995 ms
bench_fgets openwall_all.txt 1 905 ms
bench_file_in_array openwall_all.txt 1 381 ms
bench_cached_file_in_array openwall_all.txt 1 595 ms
bench_array_key_exists openwall_all.txt 1 810 ms
bench_cached_array_key_exists openwall_all.txt 1 1112 ms
bench_grep openwall_all.txt 1 37 ms
bench_stream_get_line 10_million_password_list_top_1000.txt 10 3 ms
bench_fgets_rtrim 10_million_password_list_top_1000.txt 10 5 ms
bench_fgets 10_million_password_list_top_1000.txt 10 5 ms
bench_file_in_array 10_million_password_list_top_1000.txt 10 1 ms
bench_cached_file_in_array 10_million_password_list_top_1000.txt 10 1 ms
bench_array_key_exists 10_million_password_list_top_1000.txt 10 1 ms
bench_cached_array_key_exists 10_million_password_list_top_1000.txt 10 2 ms
bench_grep 10_million_password_list_top_1000.txt 10 46 ms
bench_stream_get_line 10_million_password_list_top_10000.txt 10 27 ms
bench_fgets_rtrim 10_million_password_list_top_10000.txt 10 31 ms
bench_fgets 10_million_password_list_top_10000.txt 10 27 ms
bench_file_in_array 10_million_password_list_top_10000.txt 10 7 ms
bench_cached_file_in_array 10_million_password_list_top_10000.txt 10 12 ms
bench_array_key_exists 10_million_password_list_top_10000.txt 10 10 ms
bench_cached_array_key_exists 10_million_password_list_top_10000.txt 10 13 ms
bench_grep 10_million_password_list_top_10000.txt 10 51 ms
bench_stream_get_line 10_million_password_list_top_100000.txt 10 219 ms
bench_fgets_rtrim 10_million_password_list_top_100000.txt 10 248 ms
bench_fgets 10_million_password_list_top_100000.txt 10 243 ms
bench_file_in_array 10_million_password_list_top_100000.txt 10 57 ms
bench_cached_file_in_array 10_million_password_list_top_100000.txt 10 117 ms
bench_array_key_exists 10_million_password_list_top_100000.txt 10 122 ms
bench_cached_array_key_exists 10_million_password_list_top_100000.txt 10 163 ms
bench_grep 10_million_password_list_top_100000.txt 10 43 ms
bench_stream_get_line 10_million_password_list_top_1000000.txt 10 2111 ms
bench_fgets_rtrim 10_million_password_list_top_1000000.txt 10 2494 ms
bench_fgets 10_million_password_list_top_1000000.txt 10 2564 ms
bench_file_in_array 10_million_password_list_top_1000000.txt 10 604 ms
bench_cached_file_in_array 10_million_password_list_top_1000000.txt 10 1460 ms
bench_array_key_exists 10_million_password_list_top_1000000.txt 10 1839 ms
bench_cached_array_key_exists 10_million_password_list_top_1000000.txt 10 2666 ms
bench_grep 10_million_password_list_top_1000000.txt 10 130 ms
bench_stream_get_line openwall_all.txt 10 8561 ms
bench_fgets_rtrim openwall_all.txt 10 10274 ms
bench_fgets openwall_all.txt 10 10031 ms
bench_file_in_array openwall_all.txt 10 3699 ms
bench_cached_file_in_array openwall_all.txt 10 7724 ms
bench_array_key_exists openwall_all.txt 10 8767 ms
bench_cached_array_key_exists openwall_all.txt 10 11866 ms
bench_grep openwall_all.txt 10 473 ms
bench_stream_get_line 10_million_password_list_top_1000.txt 100 26 ms
bench_fgets_rtrim 10_million_password_list_top_1000.txt 100 29 ms
bench_fgets 10_million_password_list_top_1000.txt 100 28 ms
bench_file_in_array 10_million_password_list_top_1000.txt 100 8 ms
bench_cached_file_in_array 10_million_password_list_top_1000.txt 100 19 ms
bench_array_key_exists 10_million_password_list_top_1000.txt 100 17 ms
bench_cached_array_key_exists 10_million_password_list_top_1000.txt 100 23 ms
bench_grep 10_million_password_list_top_1000.txt 100 885 ms
bench_stream_get_line 10_million_password_list_top_10000.txt 100 203 ms
bench_fgets_rtrim 10_million_password_list_top_10000.txt 100 292 ms
bench_fgets 10_million_password_list_top_10000.txt 100 263 ms
bench_file_in_array 10_million_password_list_top_10000.txt 100 64 ms
bench_cached_file_in_array 10_million_password_list_top_10000.txt 100 116 ms
bench_array_key_exists 10_million_password_list_top_10000.txt 100 104 ms
bench_cached_array_key_exists 10_million_password_list_top_10000.txt 100 133 ms
bench_grep 10_million_password_list_top_10000.txt 100 855 ms
bench_stream_get_line 10_million_password_list_top_100000.txt 100 2025 ms
bench_fgets_rtrim 10_million_password_list_top_100000.txt 100 2484 ms
bench_fgets 10_million_password_list_top_100000.txt 100 2505 ms
bench_file_in_array 10_million_password_list_top_100000.txt 100 644 ms
bench_cached_file_in_array 10_million_password_list_top_100000.txt 100 1329 ms
bench_array_key_exists 10_million_password_list_top_100000.txt 100 1362 ms
bench_cached_array_key_exists 10_million_password_list_top_100000.txt 100 1873 ms
bench_grep 10_million_password_list_top_100000.txt 100 906 ms
bench_stream_get_line 10_million_password_list_top_1000000.txt 100 21716 ms
bench_fgets_rtrim 10_million_password_list_top_1000000.txt 100 26997 ms
bench_fgets 10_million_password_list_top_1000000.txt 100 27135 ms
bench_file_in_array 10_million_password_list_top_1000000.txt 100 6883 ms
bench_cached_file_in_array 10_million_password_list_top_1000000.txt 100 13755 ms
bench_array_key_exists 10_million_password_list_top_1000000.txt 100 19519 ms
bench_cached_array_key_exists 10_million_password_list_top_1000000.txt 100 24047 ms
bench_grep 10_million_password_list_top_1000000.txt 100 1671 ms
bench_stream_get_line openwall_all.txt 100 75521 ms
bench_fgets_rtrim openwall_all.txt 100 96213 ms
bench_fgets openwall_all.txt 100 91866 ms
bench_file_in_array openwall_all.txt 100 27616 ms
bench_cached_file_in_array openwall_all.txt 100 63091 ms
bench_array_key_exists openwall_all.txt 100 87705 ms
bench_cached_array_key_exists openwall_all.txt 100 110889 ms
bench_grep openwall_all.txt 100 5333 ms
plewin@azuka ~ $ php -v
PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v6.0.2, Copyright (c) 2002-2016, by ionCube Ltd.
with Zend OPcache v7.0.8-0ubuntu0.16.04.3, Copyright (c) 1999-2016, by Zend Technologies
plewin@azuka ~ $ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz
stepping : 7
microcode : 0x18
cpu MHz : 2799.937
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx lahf_lm epb tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts
bugs :
bogomips : 4788.85
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz
stepping : 7
microcode : 0x18
cpu MHz : 2803.125
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx lahf_lm epb tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts
bugs :
bogomips : 4788.85
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz
stepping : 7
microcode : 0x18
cpu MHz : 2799.937
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx lahf_lm epb tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts
bugs :
bogomips : 4788.85
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz
stepping : 7
microcode : 0x18
cpu MHz : 2801.906
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx lahf_lm epb tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts
bugs :
bogomips : 4788.85
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment