8000 Use 50, 200, 500 max token counts (PRIME-654) by vdavid · Pull Request #1137 · sourcegraph/src-cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use 50, 200, 500 max token counts (PRIME-654) #1137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
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
8000
Diff view
14 changes: 8 additions & 6 deletions cmd/src/gateway_benchmark_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,20 @@ Examples:
fmt.Printf("Starting benchmark with %d requests per endpoint...\n", *requestCount)
if *gatewayEndpoint != "" {
fmt.Println("Benchmarking Cody Gateway instance:", *gatewayEndpoint)
endpoint := buildGatewayHttpEndpoint(*gatewayEndpoint, *sgdToken, 200)
cgResults := benchmarkCodeCompletions("gateway", httpClient, endpoint, *requestCount)
results = append(results, cgResults)
cgResults50 := benchmarkCodeCompletions("gateway-50", httpClient, buildGatewayHttpEndpoint(*gatewayEndpoint, *sgdToken, 50), *requestCount)
cgResults200 := benchmarkCodeCompletions("gateway-200", httpClient, buildGatewayHttpEndpoint(*gatewayEndpoint, *sgdToken, 200), *requestCount)
cgResults500 := benchmarkCodeCompletions("gateway-500", httpClient, buildGatewayHttpEndpoint(*gatewayEndpoint, *sgdToken, 500), *requestCount)
results = append(results, cgResults50, cgResults200, cgResults500)
fmt.Println()
} else {< 6D54 /td>
fmt.Println("warning: not benchmarking Cody Gateway (-gateway endpoint not provided)")
}
if *sgEndpoint != "" {
fmt.Println("Benchmarking Sourcegraph instance:", *sgEndpoint)
endpoint := buildSourcegraphHttpEndpoint(*sgEndpoint, *sgpToken, 200)
sgResults := benchmarkCodeCompletions("sourcegraph", httpClient, endpoint, *requestCount)
results = append(results, sgResults)
sgResults50 := benchmarkCodeCompletions("sourcegraph-50", httpClient, buildSourcegraphHttpEndpoint(*sgEndpoint, *sgpToken, 50), *requestCount)
sgResults200 := benchmarkCodeCompletions("sourcegraph-200", httpClient, buildSourcegraphHttpEndpoint(*sgEndpoint, *sgpToken, 200), *requestCount)
sgResults500 := benchmarkCodeCompletions("sourcegraph-500", httpClient, buildSourcegraphHttpEndpoint(*sgEndpoint, *sgpToken, 500), *requestCount)
results = append(results, sgResults50, sgResults200, sgResults500)
fmt.Println()
} else {
fmt.Println("warning: not benchmarking Sourcegraph instance (-sourcegraph endpoint not provided)")
Expand Down
Loading
0