Closed jchris closed 5 months ago
ok it's figured out. fix coming
fix will be these types
here is the bigger file outputing in 15 seconds (4000 records). Fix will come in 0.17
fetch: 477.246ms
Fetched 4000 entries
Database initial state
Database allDocs 0
all docs: 0.74ms
log: 0 - 0
batch0: 477.796ms
log: 500 - 2
batch500: 712.422ms
log: 1000 - 4
batch1000: 1.011s
log: 1500 - 6
batch1500: 1.467s
log: 2000 - 8
batch2000: 2.017s
log: 2500 - 10
batch2500: 2.720s
log: 3000 - 12
batch3000: 3.423s
log: 3500 - 14
batch3500: 3.998s
store: 15.841s
query: 297.805ms
Query results 3
Fireproof 0.17.1 takes it down to less than 4 seconds. When I started optimizing in 0.16 it was taking HOURS. Thanks for the benchmark!
fetch: 451.733ms
Fetched 4000 entries
Database initial state
Database allDocs 0
all docs: 0.405ms
log: 0 - 0
batch0: 157.843ms
log: 500 - 2
batch500: 222.098ms
log: 1000 - 4
batch1000: 310.638ms
log: 1500 - 6
batch1500: 401.283ms
log: 2000 - 8
batch2000: 509.162ms
log: 2500 - 10
batch2500: 623.778ms
log: 3000 - 12
batch3000: 722.557ms
log: 3500 - 14
batch3500: 815.652ms
store: 3.774s
query: 244.394ms
Query results 3
There is a new benchmark here: https://github.com/fireproof-storage/fireproof/blob/45508c265aa290275a7a9cde2c26f685325c4963/packages/fireproof/test/fireproof.test.js#L131
Here is output from inserting 3000 records in 13 seconds:
Here is another benchmark tool output for inserting 1000 records in almost 6 minutes!
The tool: https://github.com/dstanesc/fireproof-playground/pull/1
I think the workloads should be close enough to the same, the next step is to do a version of the fast bencmark that does 100 item batches and see if that's comparably slow.