ssbc / ssb-db2

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

fix usage of prettier-ignore #332

Closed staltz closed 2 years ago

staltz commented 2 years ago

Housekeeping PR.

Turns out we can't use // prettier-ignore at the end of the line, it makes prettier error/crash and then it doesn't do any actual code formatting.

It has to be on its own line, before the statement.

github-actions[bot] commented 2 years ago

Benchmark results

Part Duration
add 1000 elements 503ms
add 1000 private box1 elements 1130ms
unbox 1000 private box1 elements first run 123ms
unbox 1000 private box1 elements second run 84ms
add 1000 private box1 elements 1121ms
query 1000 elements first run 33ms
query 1000 elements second run 18ms
add 1000 private box2 elements 621ms
unbox 1000 private box2 elements first run 330ms
unbox 1000 private box2 elements second run 306ms
Migrate (+db1) 11085ms
Migrate (alone) 3654ms
Migrate (+db1 +db2) 7628ms
Migrate (+db2) 5881ms
Migrate continuation (+db2) 1078ms
Memory usage without indexes 717.69 MB = 30.87 MB + etc
Initial indexing 587ms
Initial indexing maxCpu=86 2630ms
Initial indexing compat 749ms
Two indexes updating concurrently 754ms
key one initial 48ms
key two 1ms
key one again 2ms
reboot and key one again 45ms
latest root posts 549ms
latest posts 15ms
votes one initial 465ms
votes again 0ms
hasRoot 316ms
hasRoot again 1ms
author one posts 249ms
author two posts 17ms
dedicated author one posts 258ms
dedicated author one posts again 1ms
Maximum memory usage 858.65 MB = 47.62 MB + etc
Indexes folder size 12.76mb
github-actions[bot] commented 2 years ago

Benchmark results

Part Duration
add 1000 elements 492ms
add 1000 private box1 elements 1195ms
unbox 1000 private box1 elements first run 127ms
unbox 1000 private box1 elements second run 91ms
add 1000 private box1 elements 1177ms
query 1000 elements first run 33ms
query 1000 elements second run 16ms
add 1000 private box2 elements 596ms
unbox 1000 private box2 elements first run 339ms
unbox 1000 private box2 elements second run 327ms
Migrate (+db1) 10646ms
Migrate (alone) 3477ms
Migrate (+db1 +db2) 8005ms
Migrate (+db2) 5621ms
Migrate continuation (+db2) 952ms
Memory usage without indexes 729.67 MB = 30.58 MB + etc
Initial indexing 556ms
Initial indexing maxCpu=86 3800ms
Initial indexing compat 813ms
Two indexes updating concurrently 792ms
key one initial 44ms
key two 4ms
key one again 1ms
reboot and key one again 44ms
latest root posts 523ms
latest posts 8ms
votes one initial 465ms
votes again 1ms
hasRoot 359ms
hasRoot again 2ms
author one posts 260ms
author two posts 17ms
dedicated author one posts 321ms
dedicated author one posts again 2ms
Maximum memory usage 812.86 MB = 50.26 MB + etc
Indexes folder size 12.76mb
github-actions[bot] commented 2 years ago

Benchmark results

Part Duration
add 1000 elements 500ms
add 1000 private box1 elements 1194ms
unbox 1000 private box1 elements first run 125ms
unbox 1000 private box1 elements second run 87ms
add 1000 private box1 elements 1181ms
query 1000 elements first run 38ms
query 1000 elements second run 18ms
add 1000 private box2 elements 586ms
unbox 1000 private box2 elements first run 344ms
unbox 1000 private box2 elements second run 327ms
Migrate (+db1) 10750ms
Migrate (alone) 3369ms
Migrate (+db1 +db2) 7879ms
Migrate (+db2) 5479ms
Migrate continuation (+db2) 1002ms
Memory usage without indexes 729.18 MB = 30.64 MB + etc
Initial indexing 574ms
Initial indexing maxCpu=86 2805ms
Initial indexing compat 690ms
Two indexes updating concurrently 780ms
key one initial 43ms
key two 3ms
key one again 1ms
reboot and key one again 39ms
latest root posts 578ms
latest posts 28ms
votes one initial 465ms
votes again 1ms
hasRoot 302ms
hasRoot again 2ms
author one posts 286ms
author two posts 15ms
dedicated author one posts 309ms
dedicated author one posts again 2ms
Maximum memory usage 868.84 MB = 53.05 MB + etc
Indexes folder size 12.76mb