ssbc / ssb-db2

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

fix license name #420

Closed mixmix closed 1 year ago

mixmix commented 1 year ago

this license keeps getting alerts on socket.dev Lets see if this fixes it

mixmix commented 1 year ago

Deprecation: https://spdx.org/licenses/LGPL-3.0.html Updated to: https://spdx.org/licenses/LGPL-3.0-only.html

github-actions[bot] commented 1 year ago

Benchmark results

Part Duration
Create 5000 new messages 363.81ms
Validate 5000 messages 450.71ms
Native to db format 5000 messages 113.16ms
Db to native format 5000 messages 84.77ms
Add 1000 elements 367.28ms
Add 1000 box1 msgs 924.30ms
Unbox 1000 box1 msgs first run 218.29ms
Unbox 1000 box1 msgs second run 105.08ms
Add 1000 box1 msgs 892.73ms
Query 1000 msgs first run 54.97ms
Query 1000 msgs second run 13.42ms
Add 1000 box2 msgs 1255.39ms
Unbox 1000 box2 msgs first run 323.88ms
Unbox 1000 box2 msgs second run 149.31ms
Migrate (+db1) 11271.86ms
Migrate (alone) 3891.92ms
Migrate (+db1 +db2) 8067.15ms
Migrate (+db2) 5990.18ms
Migrate continuation (+db2) 864.67ms
Memory usage without indexes 746.70 MB = 37.15 MB + etc
Initial indexing 1622.07ms
Initial indexing maxcpu=86 5020.85ms
Initial indexing compat 631.20ms
Two indexes updating concurrently 2787.48ms
Key one initial 46.97ms
Key two 0.88ms
Key one again 1.03ms
Reboot and key one again 41.36ms
Latest root posts 1749.51ms
Latest posts 8.94ms
Votes one initial 1447.91ms
Votes again 0.50ms
HasRoot 1312.64ms
HasRoot again 0.36ms
Author one posts 1404.76ms
Author two posts 15.45ms
Dedicated author one posts 1401.18ms
Dedicated author one posts again 0.51ms
DeleteFeed 5621.19ms
Maximum memory usage 981.47 MB = 64.17 MB + etc
Indexes folder size 10.01mb
github-actions[bot] commented 1 year ago

Benchmark results

Part Duration
Create 5000 new messages 368.56ms
Validate 5000 messages 490.98ms
Native to db format 5000 messages 112.87ms
Db to native format 5000 messages 83.71ms
Add 1000 elements 371.42ms
Add 1000 box1 msgs 1002.75ms
Unbox 1000 box1 msgs first run 219.24ms
Unbox 1000 box1 msgs second run 105.04ms
Add 1000 box1 msgs 965.35ms
Query 1000 msgs first run 28.11ms
Query 1000 msgs second run 24.03ms
Add 1000 box2 msgs 1276.64ms
Unbox 1000 box2 msgs first run 301.50ms
Unbox 1000 box2 msgs second run 148.78ms
Migrate (+db1) 10881.04ms
Migrate (alone) 3598.03ms
Migrate (+db1 +db2) 8066.15ms
Migrate (+db2) 5634.52ms
Migrate continuation (+db2) 862.13ms
Memory usage without indexes 752.05 MB = 41.19 MB + etc
Initial indexing 1567.95ms
Initial indexing maxcpu=86 4751.10ms
Initial indexing compat 590.95ms
Two indexes updating concurrently 2753.25ms
Key one initial 49.68ms
Key two 0.52ms
Key one again 0.91ms
Reboot and key one again 54.93ms
Latest root posts 1683.78ms
Latest posts 8.71ms
Votes one initial 1453.47ms
Votes again 0.48ms
HasRoot 1272.90ms
HasRoot again 0.35ms
Author one posts 1408.52ms
Author two posts 14.72ms
Dedicated author one posts 1423.83ms
Dedicated author one posts again 0.48ms
DeleteFeed 5020.22ms
Maximum memory usage 989.73 MB = 65.18 MB + etc
Indexes folder size 10.01mb