======================================== PostgreSQL Load Test - Foxhunt Trading Using pgbench with custom trading workload Test Duration: 30 seconds per scenario Start Time: Sun Oct 12 01:20:11 AM CEST 2025 ======================================== === Database Health Check === PostgreSQL Version: PostgreSQL 16.10 on x86_64-pc-linux-musl, compiled by gcc (Alpine 14.2.0) 14.2.0, 64-bit Configuration: max_connections: 100 max_connections: shared_buffers: 7954MB shared_buffers: synchronous_commit: off synchronous_commit: Cache Hit Ratio: 99.96% === Baseline Table Counts === table_name | count ------------+------- orders | 1257 executions | 0 fills | 0 positions | 0 (4 rows) ======================================== TEST: BASELINE (Single Client) Concurrent Clients: 1 ======================================== Error: You must install at least one postgresql-client- package === Connection Pool Status === state | count --------+------- idle | 12 active | 1 (2 rows) === Lock Contention === Locks waiting: 0 === Deadlock Statistics === datname | deadlocks | conflicts ---------+-----------+----------- foxhunt | 0 | 0 (1 row) ======================================== TEST: MODERATE LOAD (10 Clients) Concurrent Clients: 10 ======================================== Error: You must install at least one postgresql-client- package === Connection Pool Status === state | count --------+------- idle | 12 active | 1 (2 rows) === Lock Contention === Locks waiting: 0 === Deadlock Statistics === datname | deadlocks | conflicts ---------+-----------+----------- foxhunt | 0 | 0 (1 row) ======================================== TEST: HIGH LOAD (50 Clients) Concurrent Clients: 50 ======================================== Error: You must install at least one postgresql-client- package === Connection Pool Status === state | count --------+------- idle | 12 active | 1 (2 rows) === Lock Contention === Locks waiting: 0 === Deadlock Statistics === datname | deadlocks | conflicts ---------+-----------+----------- foxhunt | 0 | 0 (1 row) ======================================== TEST: STRESS TEST (100 Clients) Concurrent Clients: 100 ======================================== Error: You must install at least one postgresql-client- package === Connection Pool Status === state | count --------+------- idle | 12 active | 1 (2 rows) === Lock Contention === Locks waiting: 0 === Deadlock Statistics === datname | deadlocks | conflicts ---------+-----------+----------- foxhunt | 0 | 0 (1 row) ======================================== QUERY PERFORMANCE ANALYSIS ======================================== === Table Statistics === relname | inserts | updates | deletes | seq_scan | idx_scan | idx_scan_pct ------------+---------+---------+---------+----------+----------+-------------- orders | 149482 | 12 | 148046 | 44 | 156207 | 99.97 fills | 0 | 0 | 0 | 18 | 148046 | 99.99 positions | 0 | 0 | 0 | 19 | 174 | 90.16 executions | 0 | 0 | 0 | 17 | 148172 | 99.99 (4 rows) === Index Usage === ======================================== RESOURCE UTILIZATION ======================================== === Database Size === datname | size ---------+-------- foxhunt | 543 MB (1 row) === Table Sizes === relname | total_size | table_size | index_size ------------+------------+------------+------------ orders | 7072 kB | 272 kB | 6800 kB fills | 64 kB | 0 bytes | 64 kB positions | 56 kB | 0 bytes | 56 kB executions | 40 kB | 0 bytes | 40 kB (4 rows) === Final Cache Hit Ratio === 99.96% === Final Table Counts === table_name | count ------------+------- orders | 1257 executions | 0 fills | 0 positions | 0 (4 rows) ======================================== Test Completed: Sun Oct 12 01:20:12 AM CEST 2025 Results saved to: DB_LOAD_TEST_RESULTS_20251012_012011.txt ========================================