BenchmarkBackendWrite 性能测试: Backend Write
(b *testing.B)
| 249 | |
| 250 | // BenchmarkBackendWrite 性能测试: Backend Write |
| 251 | func BenchmarkBackendWrite(b *testing.B) { |
| 252 | backend := backends.NewStateBackend() |
| 253 | ctx := context.Background() |
| 254 | |
| 255 | for b.Loop() { |
| 256 | _, _ = backend.Write(ctx, "/bench.txt", "test content") |
| 257 | } |
| 258 | } |
nothing calls this directly
no test coverage detected