Benchmarks

FerriteDB and MongoDB, side by side.

One run on one machine, 100,000 small documents, MongoDB's normal settings. The test script is bench/compare.py.

FerriteDB MongoDB

Throughput

operations per second · higher is better
insert, 1 client
35.6k/s
7.6k/s
insert, 8 clients
161.6k/s
41.5k/s
get by _id
213k/s
39.8k/s
find on an indexed field
209k/s
33.7k/s
$inc update
131k/s
31.4k/s

Footprint

for 100k documents · lower is better
RAM
45 MB
240 MB
Disk
11.6 MB
≈203 MB

MongoDB's disk figure is mostly a fixed 200 MB file it reserves up front (hatched). Its documents take about 3 MB, because it compresses them and FerriteDB doesn't.

Every write fsynced

1, 8 and 32 clients

With every write fsynced, MongoDB is faster. The cases are 1, 8 and 32 clients. FerriteDB group commit takes 25k/s at 32 clients against MongoDB's 21k/s.

group commit, 32 clients
25k/s
21k/s

Engine only

no network
18M /sget by _id
0.57 µsindexed sort with limit 10