BenchmarkExtractJSONMetrics_Complex benchmarks complex JSON metrics extraction
(b *testing.B)
| 205 | |
| 206 | // BenchmarkExtractJSONMetrics_Complex benchmarks complex JSON metrics extraction |
| 207 | func 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 | } |
nothing calls this directly
no test coverage detected