mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-09-22 14:05:13 +00:00
load
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# Quick Start Recipes
|
||||
|
||||
```bash
|
||||
# 1. Realistic Traffic with Parameter Variance (Recommended)
|
||||
go run ./test/loadtest.go \
|
||||
-url 'https://nba.turbo-data.com/api/playeradvancedstats' \
|
||||
-n 3000 \
|
||||
-c 20 \
|
||||
-varyParams \
|
||||
-complexity high \
|
||||
-rotateIPs \
|
||||
-benchmarkKey 'your-benchmark-token' \
|
||||
-pageMix '1-3:60,4-10:30,11-20:10' \
|
||||
-log ./test/results.log
|
||||
|
||||
|
||||
# 2. Pure Cold-Cache / Origin Database Benchmark (100% Cache Misses)
|
||||
go run ./test/loadtest.go \
|
||||
-url 'https://nba.turbo-data.com/api/playeradvancedstats' \
|
||||
-n 1000 \
|
||||
-c 15 \
|
||||
-varyParams \
|
||||
-cacheBust \
|
||||
-benchmarkKey 'your-benchmark-token' \
|
||||
-log ./test/results.log
|
||||
|
||||
# 3. Multi-Endpoint Traffic Mix
|
||||
go run ./test/loadtest.go \
|
||||
-url 'https://nba.turbo-data.com' \
|
||||
-endpointMix 'playeradvancedstats:40,playertotals:30,games:30' \
|
||||
-varyParams \
|
||||
-n 2000 \
|
||||
-c 20 \
|
||||
-benchmarkKey 'your-benchmark-token' \
|
||||
-log ./test/results.log
|
||||
```
|
||||
Reference in New Issue
Block a user