性能比leveldb好的数据库:Sophia

By youbbs at 2014-07-06 10:00:20 • 1330次点击

c client 下 3 million 和 10 million 数据的性能比较
http://sphia.org/benchmarks.html 7
结果完爆leveldb

Number of operations: 3 million and 10 million
Key size: 16 bytes
Value size: 100 bytes
Batch size: 512 key-value pairs

RANDOM (3M)

Write
leveldb 78957 op/sec
sophia 258042 op/sec
Read
leveldb 167476 op/sec
sophia 438084 op/sec
Iteration
leveldb 1.7M op/sec
sophia 2.5M op/sec

RANDOM (10M)

Write
leveldb 43890 op/sec
sophia 228555 op/sec
Read
leveldb 167695 op/sec
sophia 467180 op/sec
Iteration
leveldb 1.7 op/sec
sophia 2.3M op/sec

RANDOM (3M, cached)

Read
leveldb 296941 op/sec
sophia 707547 op/sec
Iteration
leveldb 3.8M op/sec
sophia 22M op/sec

RANDOM (10M, cached)

Read
leveldb 146621 op/sec
sophia 571657 op/sec
Iteration
leveldb 2.4M op/sec
sophia 21.6M op/sec

BATCH

Random
leveldb 100006 op/sec
sophia 630119 op/sec

各语言的接口
lua: https://github.com/mkottman/lua-sophia
luajit: https://github.com/Wiladams/LJIT2Sophia 1
python: https://github.com/saghul/pysophia https://github.com/doukremt/python-sophia
nodejs: https://github.com/mmalecki/node-sophia
haskell: https://github.com/Peaker/hssophia
go: https://github.com/craigmj/gophia

SOURCE
github: http://github.com/pmwkaa/sophia.git 3

TOOLS
sphia: https://github.com/sphia/sphia 2

性能, , leveldb, 数据库, sophia


登录 后发表评论