Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions contract/TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,13 @@

## Plan Steps
- [x] Create branch `add-load-testing-contract-concurrent-usage`
- [x] Update `Cargo.toml` → add tokio dependency
- [x] Create `load_tests.rs` → sequential load scenarios (Soroban Env is not Send)
- [x] Scenarios: game starts, reveals, cash-outs, continues
- [x] Reserve depletion stress tests
- [x] Metrics: ≥95% success rate, state consistency assertions
- [ ] Update `Cargo.toml` → add tokio dependency
- [ ] Create `load_tests.rs` → 100 concurrent players
- [ ] Scenarios: game starts, reveals, cash-outs, continues
- [ ] Reserve depletion stress tests
- [ ] Metrics: 100% success rate, state consistency
- [ ] `cargo test --release` verification
- [ ] Commit: `test: add load testing...`
- [ ] PR creation

**Note**: Soroban's `Env` is not `Send`, so tests use sequential loops with
per-player unique seeds rather than OS threads. Metrics (throughput, p95/p99
latency) are still collected and printed for each scenario.

**Run**:
```bash
cargo test --test load_tests --release
# Heavy 1000-cycle test:
cargo test --test load_tests --release -- --ignored
```
**Next**: Update Cargo.toml + create load_tests.rs
Loading