Skip to content

Instantly share code, notes, and snippets.

View zw963's full-sized avatar
🏠
Working from home

Billy.Zheng zw963

🏠
Working from home
View GitHub Profile
@zw963
zw963 / kv_bench.rb
Created January 2, 2019 15:57 — forked from epitron/kv_bench.rb
Benchmark Ruby's various key/value databases (GDBM, SDBM, CDB)
require 'epitools'
%w[gdbm sdbm cdb].each { |lib| require lib }
DBS = [
[GDBM, GDBM],
[SDBM, SDBM],
[CDBMake, CDB ],
]
NUM = 100000