This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
Starting Nostr Relay Benchmark (Badger Backend)
|
||||
Data Directory: /tmp/benchmark_khatru-badger_8
|
||||
Events: 50000, Workers: 24, Duration: 1m0s
|
||||
1764840830987179ℹ️ migrating to version 1... /build/pkg/database/migrations.go:68
|
||||
1764840830987255ℹ️ migrating to version 2... /build/pkg/database/migrations.go:75
|
||||
1764840830987278ℹ️ migrating to version 3... /build/pkg/database/migrations.go:82
|
||||
1764840830987283ℹ️ cleaning up ephemeral events (kinds 20000-29999)... /build/pkg/database/migrations.go:304
|
||||
1764840830987292ℹ️ cleaned up 0 ephemeral events from database /build/pkg/database/migrations.go:349
|
||||
1764840830987305ℹ️ migrating to version 4... /build/pkg/database/migrations.go:89
|
||||
1764840830987310ℹ️ converting events to optimized inline storage (Reiser4 optimization)... /build/pkg/database/migrations.go:357
|
||||
1764840830987336ℹ️ found 0 events to convert (0 regular, 0 replaceable, 0 addressable) /build/pkg/database/migrations.go:446
|
||||
1764840830987364ℹ️ migration complete: converted 0 events to optimized inline storage, deleted 0 old keys /build/pkg/database/migrations.go:555
|
||||
1764840830987412ℹ️ migrating to version 5... /build/pkg/database/migrations.go:96
|
||||
1764840830987419ℹ️ re-encoding events with optimized tag binary format... /build/pkg/database/migrations.go:562
|
||||
1764840830987429ℹ️ found 0 events with e/p tags to re-encode /build/pkg/database/migrations.go:649
|
||||
1764840830987435ℹ️ no events need re-encoding /build/pkg/database/migrations.go:652
|
||||
1764840830987452ℹ️ migrating to version 6... /build/pkg/database/migrations.go:103
|
||||
1764840830987458ℹ️ converting events to compact serial-reference format... /build/pkg/database/migrations.go:706
|
||||
1764840830987473ℹ️ found 0 events to convert to compact format /build/pkg/database/migrations.go:846
|
||||
1764840830987479ℹ️ no events need conversion /build/pkg/database/migrations.go:849
|
||||
|
||||
╔════════════════════════════════════════════════════════╗
|
||||
║ BADGER BACKEND BENCHMARK SUITE ║
|
||||
╚════════════════════════════════════════════════════════╝
|
||||
|
||||
=== Starting Badger benchmark ===
|
||||
RunPeakThroughputTest (Badger)..
|
||||
|
||||
=== Peak Throughput Test ===
|
||||
2025/12/04 09:33:50 INFO: Successfully loaded embedded libsecp256k1 v5.0.0 from /tmp/orly-libsecp256k1/libsecp256k1.so
|
||||
Events saved: 50000/50000 (100.0%), errors: 0
|
||||
Duration: 3.213866224s
|
||||
Events/sec: 15557.59
|
||||
Avg latency: 1.456848ms
|
||||
P90 latency: 1.953553ms
|
||||
P95 latency: 2.322455ms
|
||||
P99 latency: 4.316566ms
|
||||
Bottom 10% Avg latency: 793.956µs
|
||||
Wiping database between tests...
|
||||
RunBurstPatternTest (Badger)..
|
||||
|
||||
=== Burst Pattern Test ===
|
||||
Burst completed: 5000 events in 336.223018ms
|
||||
Burst completed: 5000 events in 314.023603ms
|
||||
Burst completed: 5000 events in 296.961158ms
|
||||
Burst completed: 5000 events in 313.470891ms
|
||||
Burst completed: 5000 events in 312.977339ms
|
||||
Burst completed: 5000 events in 304.290846ms
|
||||
Burst completed: 5000 events in 279.718158ms
|
||||
Burst completed: 5000 events in 351.360773ms
|
||||
Burst completed: 5000 events in 413.446584ms
|
||||
Burst completed: 5000 events in 412.074279ms
|
||||
Burst test completed: 50000 events in 8.341599033s, errors: 0
|
||||
Events/sec: 5994.05
|
||||
Wiping database between tests...
|
||||
RunMixedReadWriteTest (Badger)..
|
||||
|
||||
=== Mixed Read/Write Test ===
|
||||
Generating 1000 unique synthetic events (minimum 300 bytes each)...
|
||||
Generated 1000 events:
|
||||
Average content size: 312 bytes
|
||||
All events are unique (incremental timestamps)
|
||||
All events are properly signed
|
||||
|
||||
Pre-populating database for read tests...
|
||||
Generating 50000 unique synthetic events (minimum 300 bytes each)...
|
||||
Generated 50000 events:
|
||||
Average content size: 314 bytes
|
||||
All events are unique (incremental timestamps)
|
||||
All events are properly signed
|
||||
|
||||
Mixed test completed: 25000 writes, 25000 reads in 24.442820936s
|
||||
Combined ops/sec: 2045.59
|
||||
Wiping database between tests...
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
RELAY_NAME: khatru-sqlite
|
||||
RELAY_URL: ws://khatru-sqlite:3334
|
||||
TEST_TIMESTAMP: 2025-12-04T09:33:45+00:00
|
||||
BENCHMARK_CONFIG:
|
||||
Events: 50000
|
||||
Workers: 24
|
||||
Duration: 60s
|
||||
@@ -1,78 +0,0 @@
|
||||
Starting Nostr Relay Benchmark (Badger Backend)
|
||||
Data Directory: /tmp/benchmark_next-orly-neo4j_8
|
||||
Events: 50000, Workers: 24, Duration: 1m0s
|
||||
1764840427673892ℹ️ migrating to version 1... /build/pkg/database/migrations.go:68
|
||||
1764840427674007ℹ️ migrating to version 2... /build/pkg/database/migrations.go:75
|
||||
1764840427674031ℹ️ migrating to version 3... /build/pkg/database/migrations.go:82
|
||||
1764840427674036ℹ️ cleaning up ephemeral events (kinds 20000-29999)... /build/pkg/database/migrations.go:304
|
||||
1764840427674056ℹ️ cleaned up 0 ephemeral events from database /build/pkg/database/migrations.go:349
|
||||
1764840427674081ℹ️ migrating to version 4... /build/pkg/database/migrations.go:89
|
||||
1764840427674087ℹ️ converting events to optimized inline storage (Reiser4 optimization)... /build/pkg/database/migrations.go:357
|
||||
1764840427674097ℹ️ found 0 events to convert (0 regular, 0 replaceable, 0 addressable) /build/pkg/database/migrations.go:446
|
||||
1764840427674102ℹ️ migration complete: converted 0 events to optimized inline storage, deleted 0 old keys /build/pkg/database/migrations.go:555
|
||||
1764840427674116ℹ️ migrating to version 5... /build/pkg/database/migrations.go:96
|
||||
1764840427674121ℹ️ re-encoding events with optimized tag binary format... /build/pkg/database/migrations.go:562
|
||||
1764840427674128ℹ️ found 0 events with e/p tags to re-encode /build/pkg/database/migrations.go:649
|
||||
1764840427674132ℹ️ no events need re-encoding /build/pkg/database/migrations.go:652
|
||||
1764840427674146ℹ️ migrating to version 6... /build/pkg/database/migrations.go:103
|
||||
1764840427674151ℹ️ converting events to compact serial-reference format... /build/pkg/database/migrations.go:706
|
||||
1764840427674168ℹ️ found 0 events to convert to compact format /build/pkg/database/migrations.go:846
|
||||
1764840427674172ℹ️ no events need conversion /build/pkg/database/migrations.go:849
|
||||
|
||||
╔════════════════════════════════════════════════════════╗
|
||||
║ BADGER BACKEND BENCHMARK SUITE ║
|
||||
╚════════════════════════════════════════════════════════╝
|
||||
|
||||
=== Starting Badger benchmark ===
|
||||
RunPeakThroughputTest (Badger)..
|
||||
|
||||
=== Peak Throughput Test ===
|
||||
2025/12/04 09:27:07 INFO: Successfully loaded embedded libsecp256k1 v5.0.0 from /tmp/orly-libsecp256k1/libsecp256k1.so
|
||||
Events saved: 50000/50000 (100.0%), errors: 0
|
||||
Duration: 3.004845722s
|
||||
Events/sec: 16639.79
|
||||
Avg latency: 1.323689ms
|
||||
P90 latency: 1.758038ms
|
||||
P95 latency: 2.077948ms
|
||||
P99 latency: 3.856256ms
|
||||
Bottom 10% Avg latency: 730.568µs
|
||||
Wiping database between tests...
|
||||
RunBurstPatternTest (Badger)..
|
||||
|
||||
=== Burst Pattern Test ===
|
||||
Burst completed: 5000 events in 283.966934ms
|
||||
Burst completed: 5000 events in 294.692625ms
|
||||
Burst completed: 5000 events in 363.280618ms
|
||||
Burst completed: 5000 events in 340.745621ms
|
||||
Burst completed: 5000 events in 304.674199ms
|
||||
Burst completed: 5000 events in 280.09038ms
|
||||
Burst completed: 5000 events in 266.781378ms
|
||||
Burst completed: 5000 events in 277.70181ms
|
||||
Burst completed: 5000 events in 271.658408ms
|
||||
Burst completed: 5000 events in 309.272288ms
|
||||
Burst test completed: 50000 events in 8.000384614s, errors: 0
|
||||
Events/sec: 6249.70
|
||||
Wiping database between tests...
|
||||
RunMixedReadWriteTest (Badger)..
|
||||
|
||||
=== Mixed Read/Write Test ===
|
||||
Generating 1000 unique synthetic events (minimum 300 bytes each)...
|
||||
Generated 1000 events:
|
||||
Average content size: 312 bytes
|
||||
All events are unique (incremental timestamps)
|
||||
All events are properly signed
|
||||
|
||||
Pre-populating database for read tests...
|
||||
Generating 50000 unique synthetic events (minimum 300 bytes each)...
|
||||
Generated 50000 events:
|
||||
Average content size: 314 bytes
|
||||
All events are unique (incremental timestamps)
|
||||
All events are properly signed
|
||||
|
||||
Mixed test completed: 25000 writes, 25000 reads in 24.409054146s
|
||||
Combined ops/sec: 2048.42
|
||||
Wiping database between tests...
|
||||
RunQueryTest (Badger)..
|
||||
|
||||
=== Query Test ===
|
||||
Generating 10000 unique synthetic events (minimum 300 bytes each)...
|
||||
Reference in New Issue
Block a user