Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vdavid committed Dec 20, 2024
1 parent d580f23 commit 48f2088
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cmd/src/gateway_benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Examples:
$ src gateway benchmark --sgp <token>
$ src gateway benchmark --requests 50 --sgp <token>
$ src gateway benchmark --gateway http://localhost:9992 --sourcegraph http://localhost:3082 --sgp <token>
$ src gateway benchmark --requests 50 --csv results.csv --sgp <token>
$ src gateway benchmark --requests 50 --csv results.csv --request-csv requests.csv --sgp <token>
$ src gateway benchmark --gateway https://cody-gateway.sourcegraph.com --sourcegraph https://sourcegraph.com --sgp <token> --use-special-header
`

Expand All @@ -54,8 +54,8 @@ Examples:
requestCount = flagSet.Int("requests", 1000, "Number of requests to make per endpoint")
csvOutput = flagSet.String("csv", "", "Export results to CSV file (provide filename)")
requestLevelCsvOutput = flagSet.String("request-csv", "", "Export request results to CSV file (provide filename)")
gatewayEndpoint = flagSet.String("gateway", "https://cody-gateway.sourcegraph.com", "Cody Gateway endpoint")
sgEndpoint = flagSet.String("sourcegraph", "https://sourcegraph.com", "Sourcegraph endpoint")
gatewayEndpoint = flagSet.String("gateway", "", "Cody Gateway endpoint")
sgEndpoint = flagSet.String("sourcegraph", "", "Sourcegraph endpoint")
sgpToken = flagSet.String("sgp", "", "Sourcegraph personal access token for the called instance")
useSpecialHeader = flagSet.Bool("use-special-header", false, "Use special header to test the gateway")
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/src/gateway_benchmark_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Examples:
$ src gateway benchmark-stream --requests 50 --csv results.csv --sgd <token> --sgp <token>
$ src gateway benchmark-stream --gateway http://localhost:9992 --sourcegraph http://localhost:3082 --sgd <token> --sgp <token>
$ src gateway benchmark-stream --gateway http://localhost:9992 --sourcegraph http://localhost:3082 --sgd <token> --sgp <token> --max-tokens 50
$ src gateway benchmark-stream --requests 250 --gateway http://localhost:9992 --sourcegraph http://localhost:3082 --sgd <token> --sgp <token> --max-tokens 50 --provider fireworks --stream
`

flagSet := flag.NewFlagSet("benchmark-stream", flag.ExitOnError)
Expand Down

0 comments on commit 48f2088

Please sign in to comment.