These two files are for simple testing of KV-storages:
- Perl program tests GDBM, Berkeley and SDBM
- PHP program tests custom B-Tree implementation (https://github.com/jakubkulhan/btree)
They generate sequence of strings by applying md5 again and again (starting with some seed phrase).
By now there is some queer behavior of PHP version - result is different from perl when 5-letter key is used:
$ perl kvtest.pl
1653 for 15f2e09c57461ca47604dfc8b8bcd678
$ php kvtest.php
2935 for bf2926396fc07f370f454ee07dd5c1d2
while replacing btest with inmemory hash (array) makes result consistent (1653 steps also)