MCPcopy Create free account
hub / github.com/github/gh-aw / BenchmarkExtractJSONMetrics_Complex

Function BenchmarkExtractJSONMetrics_Complex

pkg/cli/logs_benchmark_test.go:207–213  ·  view source on GitHub ↗

BenchmarkExtractJSONMetrics_Complex benchmarks complex JSON metrics extraction

(b *testing.B)

Source from the content-addressed store, hash-verified

205
206// BenchmarkExtractJSONMetrics_Complex benchmarks complex JSON metrics extraction
207func BenchmarkExtractJSONMetrics_Complex(b *testing.B) {
208 jsonLine := `{"type":"result","total_input_tokens":5000,"total_output_tokens":2500,"cost":0.075,"metadata":{"tool_calls":["github.issue_read","github.add_comment"],"duration_ms":1500}}`
209
210 for b.Loop() {
211 _ = workflow.ExtractJSONMetrics(jsonLine, false)
212 }
213}

Callers

nothing calls this directly

Calls 1

ExtractJSONMetricsFunction · 0.92

Tested by

no test coverage detected