test: add ledger load test commands

This commit is contained in:
nfel committed 2026-08-15 00:48:56 +03:30
1 parent 5b4cb5a2a3
commit a54070cfad
6 files changed
+1060

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
# GL load test
This command exercises the write and read paths of the gRPC ledger service.
Each simulated transaction:
1. appends a `CREATED` lifecycle event;
2. posts a balanced transfer between two generated user wallet accounts;
3. reads the committed journal;
4. rebuilds the receiving wallet balance;
5. appends a `SUCCESSFUL` lifecycle event.
Ledger accounts are created implicitly by `AppendJournal`; GL does not expose a
separate wallet-creation RPC.
Start GL, then run:
```bash
go run ./cmd/gl-loadtest -duration 30s -concurrency 20 -wallets 1000
```
Use a fresh `-run-id` for every dataset. The command generates one automatically
when the flag is omitted.