ssbc / ssb-db2

A new database for secure-scuttlebutt
47 stars 8 forks source link

fix typo in NumsFile error handler #404

Closed staltz closed 1 year ago

staltz commented 1 year ago

Discovered via a crash report in Manyverse.

github-actions[bot] commented 1 year ago

Benchmark results

Part Duration
Create 5000 new messages 454.88ms
Validate 5000 messages 579.43ms
Native to db format 5000 messages 149.98ms
Db to native format 5000 messages 118.38ms
Add 1000 elements 515.74ms
Add 1000 box1 msgs 1116.05ms
Unbox 1000 box1 msgs first run 263.51ms
Unbox 1000 box1 msgs second run 126.67ms
Add 1000 box1 msgs 1071.42ms
Query 1000 msgs first run 59.40ms
Query 1000 msgs second run 15.18ms
Add 1000 box2 msgs 1519.04ms
Unbox 1000 box2 msgs first run 369.08ms
Unbox 1000 box2 msgs second run 162.10ms
Migrate (+db1) 13514.80ms
Migrate (alone) 4912.71ms
Migrate (+db1 +db2) 10192.41ms
Migrate (+db2) 7277.48ms
Migrate continuation (+db2) 1087.22ms
Memory usage without indexes 772.36 MB = 38.59 MB + etc
Initial indexing 1981.56ms
Initial indexing maxcpu=86 6431.54ms
Initial indexing compat 952.40ms
Two indexes updating concurrently 3566.00ms
Key one initial 52.28ms
Key two 1.89ms
Key one again 1.63ms
Reboot and key one again 60.14ms
Latest root posts 2284.16ms
Latest posts 12.22ms
Votes one initial 1730.35ms
Votes again 0.65ms
HasRoot 1566.19ms
HasRoot again 0.38ms
Author one posts 1667.71ms
Author two posts 18.87ms
Dedicated author one posts 1739.80ms
Dedicated author one posts again 1.20ms
DeleteFeed 3498.04ms
Maximum memory usage 1016.47 MB = 57.32 MB + etc
Indexes folder size 10.01mb
github-actions[bot] commented 1 year ago

Benchmark results

Part Duration
Create 5000 new messages 355.12ms
Validate 5000 messages 451.03ms
Native to db format 5000 messages 117.63ms
Db to native format 5000 messages 86.71ms
Add 1000 elements 496.06ms
Add 1000 box1 msgs 940.89ms
Unbox 1000 box1 msgs first run 219.58ms
Unbox 1000 box1 msgs second run 111.21ms
Add 1000 box1 msgs 895.54ms
Query 1000 msgs first run 67.01ms
Query 1000 msgs second run 16.29ms
Add 1000 box2 msgs 1300.24ms
Unbox 1000 box2 msgs first run 326.86ms
Unbox 1000 box2 msgs second run 147.92ms
Migrate (+db1) 12102.45ms
Migrate (alone) 4275.39ms
Migrate (+db1 +db2) 7828.04ms
Migrate (+db2) 6380.15ms
Migrate continuation (+db2) 972.54ms
Memory usage without indexes 740.76 MB = 41.85 MB + etc
Initial indexing 1662.38ms
Initial indexing maxcpu=86 4611.72ms
Initial indexing compat 742.61ms
Two indexes updating concurrently 2812.86ms
Key one initial 61.43ms
Key two 0.57ms
Key one again 1.14ms
Reboot and key one again 43.65ms
Latest root posts 1758.31ms
Latest posts 8.66ms
Votes one initial 1545.46ms
Votes again 0.64ms
HasRoot 1325.71ms
HasRoot again 0.53ms
Author one posts 1380.95ms
Author two posts 18.71ms
Dedicated author one posts 1418.68ms
Dedicated author one posts again 0.74ms
DeleteFeed 3223.56ms
Maximum memory usage 1001.62 MB = 59.11 MB + etc
Indexes folder size 10.01mb