add dgraph backend to benchmark suite with safe type assertions for multi-backend support
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
Starting Nostr Relay Benchmark
|
||||
Data Directory: /tmp/benchmark_khatru-badger_8
|
||||
Events: 50000, Workers: 24, Duration: 1m0s
|
||||
1763397432159815ℹ️ /tmp/benchmark_khatru-badger_8: All 0 tables opened in 0s
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/levels.go:161 /build/pkg/database/logger.go:56
|
||||
1763397432162963ℹ️ /tmp/benchmark_khatru-badger_8: Discard stats nextEmptySlot: 0
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/discard.go:55 /build/pkg/database/logger.go:56
|
||||
1763397432163005ℹ️ /tmp/benchmark_khatru-badger_8: Set nextTxnTs to 0
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:358 /build/pkg/database/logger.go:56
|
||||
1763397432163282ℹ️ migrating to version 1... /build/pkg/database/migrations.go:66
|
||||
1763397432163367ℹ️ migrating to version 2... /build/pkg/database/migrations.go:73
|
||||
1763397432163401ℹ️ migrating to version 3... /build/pkg/database/migrations.go:80
|
||||
1763397432163409ℹ️ cleaning up ephemeral events (kinds 20000-29999)... /build/pkg/database/migrations.go:287
|
||||
1763397432163473ℹ️ cleaned up 0 ephemeral events from database /build/pkg/database/migrations.go:332
|
||||
1763397432163564ℹ️ migrating to version 4... /build/pkg/database/migrations.go:87
|
||||
1763397432163574ℹ️ converting events to optimized inline storage (Reiser4 optimization)... /build/pkg/database/migrations.go:340
|
||||
1763397432163594ℹ️ found 0 events to convert (0 regular, 0 replaceable, 0 addressable) /build/pkg/database/migrations.go:429
|
||||
1763397432163600ℹ️ migration complete: converted 0 events to optimized inline storage, deleted 0 old keys /build/pkg/database/migrations.go:538
|
||||
|
||||
=== Starting test round 1/2 ===
|
||||
RunPeakThroughputTest..
|
||||
|
||||
=== Peak Throughput Test ===
|
||||
2025/11/17 16:37:12 INFO: Successfully loaded libsecp256k1 v5.0.0 from libsecp256k1.so.2
|
||||
1763397434164165ℹ️ /tmp/benchmark_khatru-badger_8: database warmup complete, ready to serve requests
|
||||
/usr/local/go/src/runtime/asm_amd64.s:1693 /build/pkg/database/logger.go:56
|
||||
Events saved: 50000/50000 (100.0%)
|
||||
Duration: 4.924203666s
|
||||
Events/sec: 10153.93
|
||||
Avg latency: 1.696974ms
|
||||
P90 latency: 2.11483ms
|
||||
P95 latency: 2.344067ms
|
||||
P99 latency: 3.241477ms
|
||||
Bottom 10% Avg latency: 2.7865ms
|
||||
RunBurstPatternTest..
|
||||
|
||||
=== Burst Pattern Test ===
|
||||
Burst completed: 5000 events in 312.680497ms
|
||||
Burst completed: 5000 events in 320.868898ms
|
||||
Burst completed: 5000 events in 317.096109ms
|
||||
Burst completed: 5000 events in 356.971689ms
|
||||
Burst completed: 5000 events in 301.615682ms
|
||||
Burst completed: 5000 events in 306.525096ms
|
||||
Burst completed: 5000 events in 320.037813ms
|
||||
Burst completed: 5000 events in 318.017102ms
|
||||
Burst completed: 5000 events in 320.394281ms
|
||||
Burst completed: 5000 events in 333.619741ms
|
||||
Burst test completed: 50000 events in 9.552105607s
|
||||
Events/sec: 5234.45
|
||||
RunMixedReadWriteTest..
|
||||
|
||||
=== Mixed Read/Write Test ===
|
||||
Pre-populating database for read tests...
|
||||
@@ -0,0 +1,323 @@
|
||||
Starting Nostr Relay Benchmark
|
||||
Data Directory: /tmp/benchmark_khatru-sqlite_8
|
||||
Events: 50000, Workers: 24, Duration: 1m0s
|
||||
1763397017138391ℹ️ /tmp/benchmark_khatru-sqlite_8: All 0 tables opened in 0s
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/levels.go:161 /build/pkg/database/logger.go:56
|
||||
1763397017141550ℹ️ /tmp/benchmark_khatru-sqlite_8: Discard stats nextEmptySlot: 0
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/discard.go:55 /build/pkg/database/logger.go:56
|
||||
1763397017141593ℹ️ /tmp/benchmark_khatru-sqlite_8: Set nextTxnTs to 0
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:358 /build/pkg/database/logger.go:56
|
||||
1763397017141951ℹ️ migrating to version 1... /build/pkg/database/migrations.go:66
|
||||
1763397017142013ℹ️ migrating to version 2... /build/pkg/database/migrations.go:73
|
||||
1763397017142036ℹ️ migrating to version 3... /build/pkg/database/migrations.go:80
|
||||
1763397017142042ℹ️ cleaning up ephemeral events (kinds 20000-29999)... /build/pkg/database/migrations.go:287
|
||||
1763397017142055ℹ️ cleaned up 0 ephemeral events from database /build/pkg/database/migrations.go:332
|
||||
1763397017142080ℹ️ migrating to version 4... /build/pkg/database/migrations.go:87
|
||||
1763397017142086ℹ️ converting events to optimized inline storage (Reiser4 optimization)... /build/pkg/database/migrations.go:340
|
||||
1763397017142103ℹ️ found 0 events to convert (0 regular, 0 replaceable, 0 addressable) /build/pkg/database/migrations.go:429
|
||||
1763397017142109ℹ️ migration complete: converted 0 events to optimized inline storage, deleted 0 old keys /build/pkg/database/migrations.go:538
|
||||
|
||||
=== Starting test round 1/2 ===
|
||||
RunPeakThroughputTest..
|
||||
|
||||
=== Peak Throughput Test ===
|
||||
2025/11/17 16:30:17 INFO: Successfully loaded libsecp256k1 v5.0.0 from libsecp256k1.so.2
|
||||
1763397019142156ℹ️ /tmp/benchmark_khatru-sqlite_8: database warmup complete, ready to serve requests
|
||||
/usr/local/go/src/runtime/asm_amd64.s:1693 /build/pkg/database/logger.go:56
|
||||
Events saved: 50000/50000 (100.0%)
|
||||
Duration: 4.697220167s
|
||||
Events/sec: 10644.59
|
||||
Avg latency: 1.589521ms
|
||||
P90 latency: 1.927686ms
|
||||
P95 latency: 2.072081ms
|
||||
P99 latency: 2.794007ms
|
||||
Bottom 10% Avg latency: 2.449508ms
|
||||
RunBurstPatternTest..
|
||||
|
||||
=== Burst Pattern Test ===
|
||||
Burst completed: 5000 events in 331.053594ms
|
||||
Burst completed: 5000 events in 339.97436ms
|
||||
Burst completed: 5000 events in 352.328844ms
|
||||
Burst completed: 5000 events in 376.613834ms
|
||||
Burst completed: 5000 events in 321.307729ms
|
||||
Burst completed: 5000 events in 314.265411ms
|
||||
Burst completed: 5000 events in 321.656622ms
|
||||
Burst completed: 5000 events in 325.689539ms
|
||||
Burst completed: 5000 events in 367.767832ms
|
||||
Burst completed: 5000 events in 367.275402ms
|
||||
Burst test completed: 50000 events in 9.780316233s
|
||||
Events/sec: 5112.31
|
||||
RunMixedReadWriteTest..
|
||||
|
||||
=== Mixed Read/Write Test ===
|
||||
Pre-populating database for read tests...
|
||||
Mixed test completed: 25000 writes, 25000 reads in 24.45356557s
|
||||
Combined ops/sec: 2044.69
|
||||
1763397077132611⚠️ /tmp/benchmark_khatru-sqlite_8: Block cache might be too small. Metrics: hit: 164850 miss: 294509 keys-added: 226622 keys-updated: 54881 keys-evicted: 226603 cost-added: 12429978548485 cost-evicted: 12428976154843 sets-dropped: 0 sets-rejected: 12954 gets-dropped: 192 gets-kept: 458368 gets-total: 459359 hit-ratio: 0.36
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:450 /build/pkg/database/logger.go:46
|
||||
1763397077132680⚠️ /tmp/benchmark_khatru-sqlite_8: Cache life expectancy (in seconds):
|
||||
-- Histogram:
|
||||
Min value: 0
|
||||
Max value: 11
|
||||
Count: 226603
|
||||
50p: 2.00
|
||||
75p: 2.00
|
||||
90p: 2.00
|
||||
[0, 2) 226567 99.98% 99.98%
|
||||
[8, 16) 36 0.02% 100.00%
|
||||
--
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:451 /build/pkg/database/logger.go:46
|
||||
RunQueryTest..
|
||||
|
||||
=== Query Test ===
|
||||
Pre-populating database with 10000 events for query tests...
|
||||
Query test completed: 253442 queries in 1m0.011742602s
|
||||
Queries/sec: 4223.21
|
||||
Avg query latency: 4.105842ms
|
||||
P95 query latency: 13.288591ms
|
||||
P99 query latency: 23.937862ms
|
||||
RunConcurrentQueryStoreTest..
|
||||
|
||||
=== Concurrent Query/Store Test ===
|
||||
Pre-populating database with 5000 events for concurrent query/store test...
|
||||
Concurrent test completed: 237910 operations (187910 queries, 50000 writes) in 1m0.007412985s
|
||||
Operations/sec: 3964.68
|
||||
Avg latency: 2.360698ms
|
||||
Avg query latency: 2.630397ms
|
||||
Avg write latency: 1.347113ms
|
||||
P95 latency: 4.390739ms
|
||||
P99 latency: 6.940329ms
|
||||
|
||||
Pausing 10s before next round...
|
||||
|
||||
=== Test round completed ===
|
||||
|
||||
|
||||
=== Starting test round 2/2 ===
|
||||
RunPeakThroughputTest..
|
||||
|
||||
=== Peak Throughput Test ===
|
||||
Events saved: 50000/50000 (100.0%)
|
||||
Duration: 4.792392684s
|
||||
Events/sec: 10433.20
|
||||
Avg latency: 1.649743ms
|
||||
P90 latency: 1.991666ms
|
||||
P95 latency: 2.145348ms
|
||||
P99 latency: 2.77034ms
|
||||
Bottom 10% Avg latency: 2.781523ms
|
||||
RunBurstPatternTest..
|
||||
|
||||
=== Burst Pattern Test ===
|
||||
Burst completed: 5000 events in 330.357755ms
|
||||
Burst completed: 5000 events in 334.984623ms
|
||||
Burst completed: 5000 events in 345.478382ms
|
||||
Burst completed: 5000 events in 340.589233ms
|
||||
Burst completed: 5000 events in 348.792025ms
|
||||
Burst completed: 5000 events in 354.019658ms
|
||||
Burst completed: 5000 events in 356.823662ms
|
||||
Burst completed: 5000 events in 347.496865ms
|
||||
Burst completed: 5000 events in 342.618798ms
|
||||
Burst completed: 5000 events in 337.759666ms
|
||||
Burst test completed: 50000 events in 9.775603327s
|
||||
Events/sec: 5114.77
|
||||
1763397250998218ℹ️ /tmp/benchmark_khatru-sqlite_8: [6] [E] LOG Compact 0->6 (8, 0 -> 4 tables with 1 splits). [00001 00002 00003 00004 00005 00006 00007 00008 . .] -> [00009 00010 00011 00012 .], took 2.922s
|
||||
, deleted 1932516 bytes
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/levels.go:1479 /build/pkg/database/logger.go:56
|
||||
RunMixedReadWriteTest..
|
||||
|
||||
=== Mixed Read/Write Test ===
|
||||
Pre-populating database for read tests...
|
||||
Mixed test completed: 25000 writes, 25000 reads in 24.35620806s
|
||||
Combined ops/sec: 2052.86
|
||||
RunQueryTest..
|
||||
|
||||
=== Query Test ===
|
||||
Pre-populating database with 10000 events for query tests...
|
||||
Query test completed: 334922 queries in 1m0.011826287s
|
||||
Queries/sec: 5580.93
|
||||
Avg query latency: 2.871941ms
|
||||
P95 query latency: 8.86787ms
|
||||
P99 query latency: 16.075646ms
|
||||
RunConcurrentQueryStoreTest..
|
||||
|
||||
=== Concurrent Query/Store Test ===
|
||||
Pre-populating database with 5000 events for concurrent query/store test...
|
||||
1763397377131811ℹ️ /tmp/benchmark_khatru-sqlite_8: Block cache metrics: hit: 485497199 miss: 4802603 keys-added: 1628313 keys-updated: 2776240 keys-evicted: 1628292 cost-added: 85662348259200 cost-evicted: 85661362474446 sets-dropped: 0 sets-rejected: 336231 gets-dropped: 382997632 gets-kept: 107185536 gets-total: 490299843 hit-ratio: 0.99
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:454 /build/pkg/database/logger.go:56
|
||||
Concurrent test completed: 266462 operations (216462 queries, 50000 writes) in 1m0.004503525s
|
||||
Operations/sec: 4440.70
|
||||
Avg latency: 1.968296ms
|
||||
Avg query latency: 2.154689ms
|
||||
Avg write latency: 1.161355ms
|
||||
P95 latency: 3.329033ms
|
||||
P99 latency: 4.878236ms
|
||||
|
||||
=== Test round completed ===
|
||||
|
||||
|
||||
================================================================================
|
||||
BENCHMARK REPORT
|
||||
================================================================================
|
||||
|
||||
Test: Peak Throughput
|
||||
Duration: 4.697220167s
|
||||
Total Events: 50000
|
||||
Events/sec: 10644.59
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 432 MB
|
||||
Avg Latency: 1.589521ms
|
||||
P90 Latency: 1.927686ms
|
||||
P95 Latency: 2.072081ms
|
||||
P99 Latency: 2.794007ms
|
||||
Bottom 10% Avg Latency: 2.449508ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Burst Pattern
|
||||
Duration: 9.780316233s
|
||||
Total Events: 50000
|
||||
Events/sec: 5112.31
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 147 MB
|
||||
Avg Latency: 3.589724ms
|
||||
P90 Latency: 7.397294ms
|
||||
P95 Latency: 9.015658ms
|
||||
P99 Latency: 12.848707ms
|
||||
Bottom 10% Avg Latency: 10.286462ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Mixed Read/Write
|
||||
Duration: 24.45356557s
|
||||
Total Events: 50000
|
||||
Events/sec: 2044.69
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 189 MB
|
||||
Avg Latency: 439.984µs
|
||||
P90 Latency: 878.495µs
|
||||
P95 Latency: 980.94µs
|
||||
P99 Latency: 1.17514ms
|
||||
Bottom 10% Avg Latency: 1.261937ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Query Performance
|
||||
Duration: 1m0.011742602s
|
||||
Total Events: 253442
|
||||
Events/sec: 4223.21
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 165 MB
|
||||
Avg Latency: 4.105842ms
|
||||
P90 Latency: 8.468483ms
|
||||
P95 Latency: 13.288591ms
|
||||
P99 Latency: 23.937862ms
|
||||
Bottom 10% Avg Latency: 15.251447ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Concurrent Query/Store
|
||||
Duration: 1m0.007412985s
|
||||
Total Events: 237910
|
||||
Events/sec: 3964.68
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 149 MB
|
||||
Avg Latency: 2.360698ms
|
||||
P90 Latency: 3.517024ms
|
||||
P95 Latency: 4.390739ms
|
||||
P99 Latency: 6.940329ms
|
||||
Bottom 10% Avg Latency: 5.015416ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Peak Throughput
|
||||
Duration: 4.792392684s
|
||||
Total Events: 50000
|
||||
Events/sec: 10433.20
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 523 MB
|
||||
Avg Latency: 1.649743ms
|
||||
P90 Latency: 1.991666ms
|
||||
P95 Latency: 2.145348ms
|
||||
P99 Latency: 2.77034ms
|
||||
Bottom 10% Avg Latency: 2.781523ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Burst Pattern
|
||||
Duration: 9.775603327s
|
||||
Total Events: 50000
|
||||
Events/sec: 5114.77
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 541 MB
|
||||
Avg Latency: 2.925486ms
|
||||
P90 Latency: 5.542703ms
|
||||
P95 Latency: 7.775478ms
|
||||
P99 Latency: 11.125804ms
|
||||
Bottom 10% Avg Latency: 8.91184ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Mixed Read/Write
|
||||
Duration: 24.35620806s
|
||||
Total Events: 50000
|
||||
Events/sec: 2052.86
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 200 MB
|
||||
Avg Latency: 424.333µs
|
||||
P90 Latency: 865.429µs
|
||||
P95 Latency: 968.085µs
|
||||
P99 Latency: 1.174568ms
|
||||
Bottom 10% Avg Latency: 1.224002ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Query Performance
|
||||
Duration: 1m0.011826287s
|
||||
Total Events: 334922
|
||||
Events/sec: 5580.93
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 129 MB
|
||||
Avg Latency: 2.871941ms
|
||||
P90 Latency: 5.60422ms
|
||||
P95 Latency: 8.86787ms
|
||||
P99 Latency: 16.075646ms
|
||||
Bottom 10% Avg Latency: 10.23636ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Concurrent Query/Store
|
||||
Duration: 1m0.004503525s
|
||||
Total Events: 266462
|
||||
Events/sec: 4440.70
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 155 MB
|
||||
Avg Latency: 1.968296ms
|
||||
P90 Latency: 2.729181ms
|
||||
P95 Latency: 3.329033ms
|
||||
P99 Latency: 4.878236ms
|
||||
Bottom 10% Avg Latency: 3.768185ms
|
||||
----------------------------------------
|
||||
|
||||
Report saved to: /tmp/benchmark_khatru-sqlite_8/benchmark_report.txt
|
||||
AsciiDoc report saved to: /tmp/benchmark_khatru-sqlite_8/benchmark_report.adoc
|
||||
1763397425682348ℹ️ /tmp/benchmark_khatru-sqlite_8: Lifetime L0 stalled for: 0s
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:536 /build/pkg/database/logger.go:56
|
||||
1763397426982581ℹ️ /tmp/benchmark_khatru-sqlite_8:
|
||||
Level 0 [ ]: NumTables: 00. Size: 0 B of 0 B. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 61 MiB
|
||||
Level 1 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 61 MiB
|
||||
Level 2 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 61 MiB
|
||||
Level 3 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 61 MiB
|
||||
Level 4 [B]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 61 MiB
|
||||
Level 5 [ ]: NumTables: 01. Size: 94 MiB of 23 MiB. Score: 4.08->4.08 StaleData: 0 B Target FileSize: 122 MiB
|
||||
Level 6 [ ]: NumTables: 04. Size: 230 MiB of 230 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 244 MiB
|
||||
Level Done
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:615 /build/pkg/database/logger.go:56
|
||||
|
||||
RELAY_NAME: khatru-sqlite
|
||||
RELAY_URL: ws://khatru-sqlite:3334
|
||||
TEST_TIMESTAMP: 2025-11-17T16:37:07+00:00
|
||||
BENCHMARK_CONFIG:
|
||||
Events: 50000
|
||||
Workers: 24
|
||||
Duration: 60s
|
||||
@@ -0,0 +1,311 @@
|
||||
Starting Nostr Relay Benchmark
|
||||
Data Directory: /tmp/benchmark_next-orly-badger_8
|
||||
Events: 50000, Workers: 24, Duration: 1m0s
|
||||
1763396182850462ℹ️ /tmp/benchmark_next-orly-badger_8: All 0 tables opened in 0s
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/levels.go:161 /build/pkg/database/logger.go:56
|
||||
1763396182853668ℹ️ /tmp/benchmark_next-orly-badger_8: Discard stats nextEmptySlot: 0
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/discard.go:55 /build/pkg/database/logger.go:56
|
||||
1763396182853712ℹ️ /tmp/benchmark_next-orly-badger_8: Set nextTxnTs to 0
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:358 /build/pkg/database/logger.go:56
|
||||
1763396182854009ℹ️ migrating to version 1... /build/pkg/database/migrations.go:66
|
||||
1763396182854056ℹ️ migrating to version 2... /build/pkg/database/migrations.go:73
|
||||
1763396182854078ℹ️ migrating to version 3... /build/pkg/database/migrations.go:80
|
||||
1763396182854082ℹ️ cleaning up ephemeral events (kinds 20000-29999)... /build/pkg/database/migrations.go:287
|
||||
1763396182854129ℹ️ cleaned up 0 ephemeral events from database /build/pkg/database/migrations.go:332
|
||||
1763396182854260ℹ️ migrating to version 4... /build/pkg/database/migrations.go:87
|
||||
1763396182854271ℹ️ converting events to optimized inline storage (Reiser4 optimization)... /build/pkg/database/migrations.go:340
|
||||
1763396182854295ℹ️ found 0 events to convert (0 regular, 0 replaceable, 0 addressable) /build/pkg/database/migrations.go:429
|
||||
1763396182854302ℹ️ migration complete: converted 0 events to optimized inline storage, deleted 0 old keys /build/pkg/database/migrations.go:538
|
||||
|
||||
=== Starting test round 1/2 ===
|
||||
RunPeakThroughputTest..
|
||||
|
||||
=== Peak Throughput Test ===
|
||||
2025/11/17 16:16:22 INFO: Successfully loaded libsecp256k1 v5.0.0 from libsecp256k1.so.2
|
||||
1763396184854370ℹ️ /tmp/benchmark_next-orly-badger_8: database warmup complete, ready to serve requests
|
||||
/usr/local/go/src/runtime/asm_amd64.s:1693 /build/pkg/database/logger.go:56
|
||||
Events saved: 50000/50000 (100.0%)
|
||||
Duration: 5.666497805s
|
||||
Events/sec: 8823.79
|
||||
Avg latency: 2.020722ms
|
||||
P90 latency: 2.645436ms
|
||||
P95 latency: 2.995948ms
|
||||
P99 latency: 4.460502ms
|
||||
Bottom 10% Avg latency: 3.520179ms
|
||||
RunBurstPatternTest..
|
||||
|
||||
=== Burst Pattern Test ===
|
||||
Burst completed: 5000 events in 352.025605ms
|
||||
Burst completed: 5000 events in 363.623929ms
|
||||
Burst completed: 5000 events in 367.475139ms
|
||||
Burst completed: 5000 events in 396.276199ms
|
||||
Burst completed: 5000 events in 334.007635ms
|
||||
Burst completed: 5000 events in 342.086817ms
|
||||
Burst completed: 5000 events in 360.687805ms
|
||||
Burst completed: 5000 events in 392.627451ms
|
||||
Burst completed: 5000 events in 397.635203ms
|
||||
Burst completed: 5000 events in 376.061572ms
|
||||
Burst test completed: 50000 events in 10.132858185s
|
||||
Events/sec: 4934.44
|
||||
RunMixedReadWriteTest..
|
||||
|
||||
=== Mixed Read/Write Test ===
|
||||
Pre-populating database for read tests...
|
||||
1763396242843490ℹ️ /tmp/benchmark_next-orly-badger_8: Block cache metrics: hit: 232171 miss: 337826 keys-added: 235144 keys-updated: 89642 keys-evicted: 235124 cost-added: 12615246695866 cost-evicted: 12614243474391 sets-dropped: 0 sets-rejected: 12961 gets-dropped: 1280 gets-kept: 568192 gets-total: 569997 hit-ratio: 0.41
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:454 /build/pkg/database/logger.go:56
|
||||
Mixed test completed: 25000 writes, 25000 reads in 24.625333257s
|
||||
Combined ops/sec: 2030.43
|
||||
RunQueryTest..
|
||||
|
||||
=== Query Test ===
|
||||
Pre-populating database with 10000 events for query tests...
|
||||
Query test completed: 197562 queries in 1m0.011972513s
|
||||
Queries/sec: 3292.04
|
||||
Avg query latency: 5.52205ms
|
||||
P95 query latency: 18.40165ms
|
||||
P99 query latency: 32.139723ms
|
||||
RunConcurrentQueryStoreTest..
|
||||
|
||||
=== Concurrent Query/Store Test ===
|
||||
Pre-populating database with 5000 events for concurrent query/store test...
|
||||
Concurrent test completed: 224870 operations (174870 queries, 50000 writes) in 1m0.006047854s
|
||||
Operations/sec: 3747.46
|
||||
Avg latency: 2.665369ms
|
||||
Avg query latency: 2.866192ms
|
||||
Avg write latency: 1.963009ms
|
||||
P95 latency: 5.204253ms
|
||||
P99 latency: 8.129537ms
|
||||
|
||||
Pausing 10s before next round...
|
||||
|
||||
=== Test round completed ===
|
||||
|
||||
|
||||
=== Starting test round 2/2 ===
|
||||
RunPeakThroughputTest..
|
||||
|
||||
=== Peak Throughput Test ===
|
||||
Events saved: 50000/50000 (100.0%)
|
||||
Duration: 5.145620568s
|
||||
Events/sec: 9717.00
|
||||
Avg latency: 1.788996ms
|
||||
P90 latency: 2.241725ms
|
||||
P95 latency: 2.442669ms
|
||||
P99 latency: 3.110506ms
|
||||
Bottom 10% Avg latency: 3.016821ms
|
||||
RunBurstPatternTest..
|
||||
|
||||
=== Burst Pattern Test ===
|
||||
Burst completed: 5000 events in 362.292309ms
|
||||
Burst completed: 5000 events in 446.105376ms
|
||||
Burst completed: 5000 events in 414.443306ms
|
||||
Burst completed: 5000 events in 378.792051ms
|
||||
Burst completed: 5000 events in 381.274883ms
|
||||
Burst completed: 5000 events in 397.941224ms
|
||||
Burst completed: 5000 events in 449.109795ms
|
||||
Burst completed: 5000 events in 410.566974ms
|
||||
Burst completed: 5000 events in 385.220958ms
|
||||
Burst completed: 5000 events in 383.149443ms
|
||||
1763396419122547ℹ️ /tmp/benchmark_next-orly-badger_8: [0] [E] LOG Compact 0->6 (8, 0 -> 4 tables with 1 splits). [00001 00002 00003 00004 00005 00006 00007 00008 . .] -> [00009 00010 00011 00012 .], took 3.061s
|
||||
, deleted 1899050 bytes
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/levels.go:1479 /build/pkg/database/logger.go:56
|
||||
Burst test completed: 50000 events in 10.438224172s
|
||||
Events/sec: 4790.09
|
||||
RunMixedReadWriteTest..
|
||||
|
||||
=== Mixed Read/Write Test ===
|
||||
Pre-populating database for read tests...
|
||||
Mixed test completed: 25000 writes, 25000 reads in 24.485622359s
|
||||
Combined ops/sec: 2042.01
|
||||
RunQueryTest..
|
||||
|
||||
=== Query Test ===
|
||||
Pre-populating database with 10000 events for query tests...
|
||||
Query test completed: 293294 queries in 1m0.013023948s
|
||||
Queries/sec: 4887.17
|
||||
Avg query latency: 3.408294ms
|
||||
P95 query latency: 10.965419ms
|
||||
P99 query latency: 19.184675ms
|
||||
RunConcurrentQueryStoreTest..
|
||||
|
||||
=== Concurrent Query/Store Test ===
|
||||
Pre-populating database with 5000 events for concurrent query/store test...
|
||||
1763396542843038ℹ️ /tmp/benchmark_next-orly-badger_8: Block cache metrics: hit: 411640922 miss: 5406705 keys-added: 1627143 keys-updated: 3422501 keys-evicted: 1627125 cost-added: 84304242021549 cost-evicted: 84303233712402 sets-dropped: 0 sets-rejected: 295382 gets-dropped: 325582080 gets-kept: 91360192 gets-total: 417047650 hit-ratio: 0.99
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:454 /build/pkg/database/logger.go:56
|
||||
Concurrent test completed: 254899 operations (204899 queries, 50000 writes) in 1m0.006656731s
|
||||
Operations/sec: 4247.85
|
||||
Avg latency: 2.125728ms
|
||||
Avg query latency: 2.314927ms
|
||||
Avg write latency: 1.350394ms
|
||||
P95 latency: 3.778776ms
|
||||
P99 latency: 5.393909ms
|
||||
|
||||
=== Test round completed ===
|
||||
|
||||
|
||||
================================================================================
|
||||
BENCHMARK REPORT
|
||||
================================================================================
|
||||
|
||||
Test: Peak Throughput
|
||||
Duration: 5.666497805s
|
||||
Total Events: 50000
|
||||
Events/sec: 8823.79
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 257 MB
|
||||
Avg Latency: 2.020722ms
|
||||
P90 Latency: 2.645436ms
|
||||
P95 Latency: 2.995948ms
|
||||
P99 Latency: 4.460502ms
|
||||
Bottom 10% Avg Latency: 3.520179ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Burst Pattern
|
||||
Duration: 10.132858185s
|
||||
Total Events: 50000
|
||||
Events/sec: 4934.44
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 122 MB
|
||||
Avg Latency: 7.197024ms
|
||||
P90 Latency: 12.546513ms
|
||||
P95 Latency: 15.216454ms
|
||||
P99 Latency: 23.682573ms
|
||||
Bottom 10% Avg Latency: 18.172083ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Mixed Read/Write
|
||||
Duration: 24.625333257s
|
||||
Total Events: 50000
|
||||
Events/sec: 2030.43
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 120 MB
|
||||
Avg Latency: 467.389µs
|
||||
P90 Latency: 914.891µs
|
||||
P95 Latency: 1.0349ms
|
||||
P99 Latency: 1.268268ms
|
||||
Bottom 10% Avg Latency: 1.393626ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Query Performance
|
||||
Duration: 1m0.011972513s
|
||||
Total Events: 197562
|
||||
Events/sec: 3292.04
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 152 MB
|
||||
Avg Latency: 5.52205ms
|
||||
P90 Latency: 12.226879ms
|
||||
P95 Latency: 18.40165ms
|
||||
P99 Latency: 32.139723ms
|
||||
Bottom 10% Avg Latency: 20.985445ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Concurrent Query/Store
|
||||
Duration: 1m0.006047854s
|
||||
Total Events: 224870
|
||||
Events/sec: 3747.46
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 127 MB
|
||||
Avg Latency: 2.665369ms
|
||||
P90 Latency: 4.194993ms
|
||||
P95 Latency: 5.204253ms
|
||||
P99 Latency: 8.129537ms
|
||||
Bottom 10% Avg Latency: 5.884586ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Peak Throughput
|
||||
Duration: 5.145620568s
|
||||
Total Events: 50000
|
||||
Events/sec: 9717.00
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 522 MB
|
||||
Avg Latency: 1.788996ms
|
||||
P90 Latency: 2.241725ms
|
||||
P95 Latency: 2.442669ms
|
||||
P99 Latency: 3.110506ms
|
||||
Bottom 10% Avg Latency: 3.016821ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Burst Pattern
|
||||
Duration: 10.438224172s
|
||||
Total Events: 50000
|
||||
Events/sec: 4790.09
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 623 MB
|
||||
Avg Latency: 9.406859ms
|
||||
P90 Latency: 21.810715ms
|
||||
P95 Latency: 35.119382ms
|
||||
P99 Latency: 66.001509ms
|
||||
Bottom 10% Avg Latency: 39.782175ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Mixed Read/Write
|
||||
Duration: 24.485622359s
|
||||
Total Events: 50000
|
||||
Events/sec: 2042.01
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 165 MB
|
||||
Avg Latency: 445.318µs
|
||||
P90 Latency: 907.915µs
|
||||
P95 Latency: 1.021172ms
|
||||
P99 Latency: 1.227095ms
|
||||
Bottom 10% Avg Latency: 1.265835ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Query Performance
|
||||
Duration: 1m0.013023948s
|
||||
Total Events: 293294
|
||||
Events/sec: 4887.17
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 136 MB
|
||||
Avg Latency: 3.408294ms
|
||||
P90 Latency: 7.156129ms
|
||||
P95 Latency: 10.965419ms
|
||||
P99 Latency: 19.184675ms
|
||||
Bottom 10% Avg Latency: 12.469832ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Concurrent Query/Store
|
||||
Duration: 1m0.006656731s
|
||||
Total Events: 254899
|
||||
Events/sec: 4247.85
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 147 MB
|
||||
Avg Latency: 2.125728ms
|
||||
P90 Latency: 3.131901ms
|
||||
P95 Latency: 3.778776ms
|
||||
P99 Latency: 5.393909ms
|
||||
Bottom 10% Avg Latency: 4.22837ms
|
||||
----------------------------------------
|
||||
|
||||
Report saved to: /tmp/benchmark_next-orly-badger_8/benchmark_report.txt
|
||||
AsciiDoc report saved to: /tmp/benchmark_next-orly-badger_8/benchmark_report.adoc
|
||||
1763396593981772ℹ️ /tmp/benchmark_next-orly-badger_8: Lifetime L0 stalled for: 0s
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:536 /build/pkg/database/logger.go:56
|
||||
1763396595378747ℹ️ /tmp/benchmark_next-orly-badger_8:
|
||||
Level 0 [ ]: NumTables: 00. Size: 0 B of 0 B. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 61 MiB
|
||||
Level 1 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 61 MiB
|
||||
Level 2 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 61 MiB
|
||||
Level 3 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 61 MiB
|
||||
Level 4 [B]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 61 MiB
|
||||
Level 5 [ ]: NumTables: 01. Size: 94 MiB of 23 MiB. Score: 4.08->4.08 StaleData: 0 B Target FileSize: 122 MiB
|
||||
Level 6 [ ]: NumTables: 04. Size: 230 MiB of 230 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 244 MiB
|
||||
Level Done
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:615 /build/pkg/database/logger.go:56
|
||||
|
||||
RELAY_NAME: next-orly-badger
|
||||
RELAY_URL: ws://next-orly-badger:8080
|
||||
TEST_TIMESTAMP: 2025-11-17T16:23:15+00:00
|
||||
BENCHMARK_CONFIG:
|
||||
Events: 50000
|
||||
Workers: 24
|
||||
Duration: 60s
|
||||
@@ -0,0 +1,323 @@
|
||||
Starting Nostr Relay Benchmark
|
||||
Data Directory: /tmp/benchmark_next-orly-dgraph_8
|
||||
Events: 50000, Workers: 24, Duration: 1m0s
|
||||
1763396600574205ℹ️ /tmp/benchmark_next-orly-dgraph_8: All 0 tables opened in 0s
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/levels.go:161 /build/pkg/database/logger.go:56
|
||||
1763396600577795ℹ️ /tmp/benchmark_next-orly-dgraph_8: Discard stats nextEmptySlot: 0
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/discard.go:55 /build/pkg/database/logger.go:56
|
||||
1763396600577852ℹ️ /tmp/benchmark_next-orly-dgraph_8: Set nextTxnTs to 0
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:358 /build/pkg/database/logger.go:56
|
||||
1763396600578216ℹ️ migrating to version 1... /build/pkg/database/migrations.go:66
|
||||
1763396600578287ℹ️ migrating to version 2... /build/pkg/database/migrations.go:73
|
||||
1763396600578319ℹ️ migrating to version 3... /build/pkg/database/migrations.go:80
|
||||
1763396600578325ℹ️ cleaning up ephemeral events (kinds 20000-29999)... /build/pkg/database/migrations.go:287
|
||||
1763396600578334ℹ️ cleaned up 0 ephemeral events from database /build/pkg/database/migrations.go:332
|
||||
1763396600578350ℹ️ migrating to version 4... /build/pkg/database/migrations.go:87
|
||||
1763396600578355ℹ️ converting events to optimized inline storage (Reiser4 optimization)... /build/pkg/database/migrations.go:340
|
||||
1763396600578372ℹ️ found 0 events to convert (0 regular, 0 replaceable, 0 addressable) /build/pkg/database/migrations.go:429
|
||||
1763396600578378ℹ️ migration complete: converted 0 events to optimized inline storage, deleted 0 old keys /build/pkg/database/migrations.go:538
|
||||
|
||||
=== Starting test round 1/2 ===
|
||||
RunPeakThroughputTest..
|
||||
|
||||
=== Peak Throughput Test ===
|
||||
2025/11/17 16:23:20 INFO: Successfully loaded libsecp256k1 v5.0.0 from libsecp256k1.so.2
|
||||
1763396602578437ℹ️ /tmp/benchmark_next-orly-dgraph_8: database warmup complete, ready to serve requests
|
||||
/usr/local/go/src/runtime/asm_amd64.s:1693 /build/pkg/database/logger.go:56
|
||||
Events saved: 50000/50000 (100.0%)
|
||||
Duration: 4.932431923s
|
||||
Events/sec: 10136.99
|
||||
Avg latency: 1.667317ms
|
||||
P90 latency: 2.069461ms
|
||||
P95 latency: 2.249895ms
|
||||
P99 latency: 2.861303ms
|
||||
Bottom 10% Avg latency: 2.592597ms
|
||||
RunBurstPatternTest..
|
||||
|
||||
=== Burst Pattern Test ===
|
||||
Burst completed: 5000 events in 335.655402ms
|
||||
Burst completed: 5000 events in 330.360552ms
|
||||
Burst completed: 5000 events in 350.90491ms
|
||||
Burst completed: 5000 events in 373.041958ms
|
||||
Burst completed: 5000 events in 347.11564ms
|
||||
Burst completed: 5000 events in 315.949199ms
|
||||
Burst completed: 5000 events in 331.42993ms
|
||||
Burst completed: 5000 events in 352.164361ms
|
||||
Burst completed: 5000 events in 359.115619ms
|
||||
Burst completed: 5000 events in 360.397544ms
|
||||
Burst test completed: 50000 events in 9.808342155s
|
||||
Events/sec: 5097.70
|
||||
RunMixedReadWriteTest..
|
||||
|
||||
=== Mixed Read/Write Test ===
|
||||
Pre-populating database for read tests...
|
||||
Mixed test completed: 25000 writes, 25000 reads in 24.59623701s
|
||||
Combined ops/sec: 2032.83
|
||||
1763396660567060⚠️ /tmp/benchmark_next-orly-dgraph_8: Block cache might be too small. Metrics: hit: 153935 miss: 305257 keys-added: 227607 keys-updated: 64636 keys-evicted: 227588 cost-added: 12452581576986 cost-evicted: 12451583862757 sets-dropped: 0 sets-rejected: 12954 gets-dropped: 256 gets-kept: 458496 gets-total: 459192 hit-ratio: 0.34
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:450 /build/pkg/database/logger.go:46
|
||||
1763396660567121⚠️ /tmp/benchmark_next-orly-dgraph_8: Cache life expectancy (in seconds):
|
||||
-- Histogram:
|
||||
Min value: 0
|
||||
Max value: 11
|
||||
Count: 227588
|
||||
50p: 2.00
|
||||
75p: 2.00
|
||||
90p: 2.00
|
||||
[0, 2) 227552 99.98% 99.98%
|
||||
[8, 16) 36 0.02% 100.00%
|
||||
--
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:451 /build/pkg/database/logger.go:46
|
||||
RunQueryTest..
|
||||
|
||||
=== Query Test ===
|
||||
Pre-populating database with 10000 events for query tests...
|
||||
Query test completed: 221626 queries in 1m0.014161671s
|
||||
Queries/sec: 3692.90
|
||||
Avg query latency: 4.849059ms
|
||||
P95 query latency: 15.966874ms
|
||||
P99 query latency: 27.859712ms
|
||||
RunConcurrentQueryStoreTest..
|
||||
|
||||
=== Concurrent Query/Store Test ===
|
||||
Pre-populating database with 5000 events for concurrent query/store test...
|
||||
Concurrent test completed: 235023 operations (185023 queries, 50000 writes) in 1m0.005568823s
|
||||
Operations/sec: 3916.69
|
||||
Avg latency: 2.401379ms
|
||||
Avg query latency: 2.672573ms
|
||||
Avg write latency: 1.397837ms
|
||||
P95 latency: 4.398002ms
|
||||
P99 latency: 6.207183ms
|
||||
|
||||
Pausing 10s before next round...
|
||||
|
||||
=== Test round completed ===
|
||||
|
||||
|
||||
=== Starting test round 2/2 ===
|
||||
RunPeakThroughputTest..
|
||||
|
||||
=== Peak Throughput Test ===
|
||||
Events saved: 50000/50000 (100.0%)
|
||||
Duration: 5.127096799s
|
||||
Events/sec: 9752.11
|
||||
Avg latency: 1.795821ms
|
||||
P90 latency: 2.25461ms
|
||||
P95 latency: 2.466785ms
|
||||
P99 latency: 3.159176ms
|
||||
Bottom 10% Avg latency: 3.072242ms
|
||||
RunBurstPatternTest..
|
||||
|
||||
=== Burst Pattern Test ===
|
||||
Burst completed: 5000 events in 358.012209ms
|
||||
Burst completed: 5000 events in 336.300441ms
|
||||
Burst completed: 5000 events in 363.657063ms
|
||||
Burst completed: 5000 events in 356.771817ms
|
||||
Burst completed: 5000 events in 368.000986ms
|
||||
Burst completed: 5000 events in 441.821658ms
|
||||
Burst completed: 5000 events in 451.146122ms
|
||||
Burst completed: 5000 events in 455.159014ms
|
||||
Burst completed: 5000 events in 359.826504ms
|
||||
Burst completed: 5000 events in 358.602207ms
|
||||
1763396835570723ℹ️ /tmp/benchmark_next-orly-dgraph_8: [6] [E] LOG Compact 0->6 (8, 0 -> 4 tables with 1 splits). [00001 00002 00003 00004 00005 00006 00007 00008 . .] -> [00009 00010 00011 00012 .], took 3.055s
|
||||
, deleted 1901003 bytes
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/levels.go:1479 /build/pkg/database/logger.go:56
|
||||
Burst test completed: 50000 events in 10.25458455s
|
||||
Events/sec: 4875.87
|
||||
RunMixedReadWriteTest..
|
||||
|
||||
=== Mixed Read/Write Test ===
|
||||
Pre-populating database for read tests...
|
||||
Mixed test completed: 25000 writes, 25000 reads in 24.474786024s
|
||||
Combined ops/sec: 2042.92
|
||||
RunQueryTest..
|
||||
|
||||
=== Query Test ===
|
||||
Pre-populating database with 10000 events for query tests...
|
||||
Query test completed: 287727 queries in 1m0.012156857s
|
||||
Queries/sec: 4794.48
|
||||
Avg query latency: 3.504598ms
|
||||
P95 query latency: 11.416502ms
|
||||
P99 query latency: 19.871886ms
|
||||
RunConcurrentQueryStoreTest..
|
||||
|
||||
=== Concurrent Query/Store Test ===
|
||||
Pre-populating database with 5000 events for concurrent query/store test...
|
||||
1763396960566384ℹ️ /tmp/benchmark_next-orly-dgraph_8: Block cache metrics: hit: 436764091 miss: 4871096 keys-added: 1584381 keys-updated: 2919606 keys-evicted: 1584361 cost-added: 83226283032882 cost-evicted: 83225259887553 sets-dropped: 0 sets-rejected: 305847 gets-dropped: 344794880 gets-kept: 96734656 gets-total: 441635219 hit-ratio: 0.99
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:454 /build/pkg/database/logger.go:56
|
||||
Concurrent test completed: 252209 operations (202209 queries, 50000 writes) in 1m0.008028818s
|
||||
Operations/sec: 4202.92
|
||||
Avg latency: 2.189461ms
|
||||
Avg query latency: 2.337704ms
|
||||
Avg write latency: 1.58994ms
|
||||
P95 latency: 3.919323ms
|
||||
P99 latency: 5.959314ms
|
||||
|
||||
=== Test round completed ===
|
||||
|
||||
|
||||
================================================================================
|
||||
BENCHMARK REPORT
|
||||
================================================================================
|
||||
|
||||
Test: Peak Throughput
|
||||
Duration: 4.932431923s
|
||||
Total Events: 50000
|
||||
Events/sec: 10136.99
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 432 MB
|
||||
Avg Latency: 1.667317ms
|
||||
P90 Latency: 2.069461ms
|
||||
P95 Latency: 2.249895ms
|
||||
P99 Latency: 2.861303ms
|
||||
Bottom 10% Avg Latency: 2.592597ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Burst Pattern
|
||||
Duration: 9.808342155s
|
||||
Total Events: 50000
|
||||
Events/sec: 5097.70
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 149 MB
|
||||
Avg Latency: 3.805495ms
|
||||
P90 Latency: 6.632151ms
|
||||
P95 Latency: 8.069195ms
|
||||
P99 Latency: 13.244195ms
|
||||
Bottom 10% Avg Latency: 9.922762ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Mixed Read/Write
|
||||
Duration: 24.59623701s
|
||||
Total Events: 50000
|
||||
Events/sec: 2032.83
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 121 MB
|
||||
Avg Latency: 467.746µs
|
||||
P90 Latency: 911.189µs
|
||||
P95 Latency: 1.018554ms
|
||||
P99 Latency: 1.250848ms
|
||||
Bottom 10% Avg Latency: 1.345857ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Query Performance
|
||||
Duration: 1m0.014161671s
|
||||
Total Events: 221626
|
||||
Events/sec: 3692.90
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 125 MB
|
||||
Avg Latency: 4.849059ms
|
||||
P90 Latency: 10.564822ms
|
||||
P95 Latency: 15.966874ms
|
||||
P99 Latency: 27.859712ms
|
||||
Bottom 10% Avg Latency: 18.180391ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Concurrent Query/Store
|
||||
Duration: 1m0.005568823s
|
||||
Total Events: 235023
|
||||
Events/sec: 3916.69
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 177 MB
|
||||
Avg Latency: 2.401379ms
|
||||
P90 Latency: 3.659643ms
|
||||
P95 Latency: 4.398002ms
|
||||
P99 Latency: 6.207183ms
|
||||
Bottom 10% Avg Latency: 4.857955ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Peak Throughput
|
||||
Duration: 5.127096799s
|
||||
Total Events: 50000
|
||||
Events/sec: 9752.11
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 480 MB
|
||||
Avg Latency: 1.795821ms
|
||||
P90 Latency: 2.25461ms
|
||||
P95 Latency: 2.466785ms
|
||||
P99 Latency: 3.159176ms
|
||||
Bottom 10% Avg Latency: 3.072242ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Burst Pattern
|
||||
Duration: 10.25458455s
|
||||
Total Events: 50000
|
||||
Events/sec: 4875.87
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 621 MB
|
||||
Avg Latency: 9.266976ms
|
||||
P90 Latency: 24.12544ms
|
||||
P95 Latency: 34.465042ms
|
||||
P99 Latency: 55.446215ms
|
||||
Bottom 10% Avg Latency: 37.317916ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Mixed Read/Write
|
||||
Duration: 24.474786024s
|
||||
Total Events: 50000
|
||||
Events/sec: 2042.92
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 182 MB
|
||||
Avg Latency: 452.46µs
|
||||
P90 Latency: 909.806µs
|
||||
P95 Latency: 1.014516ms
|
||||
P99 Latency: 1.214797ms
|
||||
Bottom 10% Avg Latency: 1.304994ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Query Performance
|
||||
Duration: 1m0.012156857s
|
||||
Total Events: 287727
|
||||
Events/sec: 4794.48
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 150 MB
|
||||
Avg Latency: 3.504598ms
|
||||
P90 Latency: 7.480817ms
|
||||
P95 Latency: 11.416502ms
|
||||
P99 Latency: 19.871886ms
|
||||
Bottom 10% Avg Latency: 12.934864ms
|
||||
----------------------------------------
|
||||
|
||||
Test: Concurrent Query/Store
|
||||
Duration: 1m0.008028818s
|
||||
Total Events: 252209
|
||||
Events/sec: 4202.92
|
||||
Success Rate: 100.0%
|
||||
Concurrent Workers: 24
|
||||
Memory Used: 98 MB
|
||||
Avg Latency: 2.189461ms
|
||||
P90 Latency: 3.213337ms
|
||||
P95 Latency: 3.919323ms
|
||||
P99 Latency: 5.959314ms
|
||||
Bottom 10% Avg Latency: 4.521426ms
|
||||
----------------------------------------
|
||||
|
||||
Report saved to: /tmp/benchmark_next-orly-dgraph_8/benchmark_report.txt
|
||||
AsciiDoc report saved to: /tmp/benchmark_next-orly-dgraph_8/benchmark_report.adoc
|
||||
1763397010410098ℹ️ /tmp/benchmark_next-orly-dgraph_8: Lifetime L0 stalled for: 0s
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:536 /build/pkg/database/logger.go:56
|
||||
1763397011943178ℹ️ /tmp/benchmark_next-orly-dgraph_8:
|
||||
Level 0 [ ]: NumTables: 00. Size: 0 B of 0 B. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 61 MiB
|
||||
Level 1 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 61 MiB
|
||||
Level 2 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 61 MiB
|
||||
Level 3 [ ]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 61 MiB
|
||||
Level 4 [B]: NumTables: 00. Size: 0 B of 10 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 61 MiB
|
||||
Level 5 [ ]: NumTables: 01. Size: 94 MiB of 23 MiB. Score: 4.08->4.08 StaleData: 0 B Target FileSize: 122 MiB
|
||||
Level 6 [ ]: NumTables: 04. Size: 230 MiB of 230 MiB. Score: 0.00->0.00 StaleData: 0 B Target FileSize: 244 MiB
|
||||
Level Done
|
||||
/go/pkg/mod/github.com/dgraph-io/badger/v4@v4.8.0/db.go:615 /build/pkg/database/logger.go:56
|
||||
|
||||
RELAY_NAME: next-orly-dgraph
|
||||
RELAY_URL: ws://next-orly-dgraph:8080
|
||||
TEST_TIMESTAMP: 2025-11-17T16:30:12+00:00
|
||||
BENCHMARK_CONFIG:
|
||||
Events: 50000
|
||||
Workers: 24
|
||||
Duration: 60s
|
||||
Reference in New Issue
Block a user