MCPcopy Create free account
hub / github.com/codechenx/FastTableViewer / BenchmarkMemoryLimitCheck

Function BenchmarkMemoryLimitCheck

memory_limit_test.go:316–326  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

314}
315
316func BenchmarkMemoryLimitCheck(b *testing.B) {
317 buf := createNewBuffer()
318 buf.setMemoryLimit(1024 * 1024 * 1024) // 1GB
319
320 row := []string{"test1", "test2", "test3"}
321
322 b.ResetTimer()
323 for i := 0; i < b.N; i++ {
324 _ = buf.contAppendSli(row, false)
325 }
326}

Callers

nothing calls this directly

Calls 3

createNewBufferFunction · 0.85
setMemoryLimitMethod · 0.80
contAppendSliMethod · 0.80

Tested by

no test coverage detected