MCPcopy Index your code
hub / github.com/Shopify/go-lua / BenchmarkSort

Function BenchmarkSort

vm_test.go:137–137  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

135}
136
137func BenchmarkSort(b *testing.B) { benchmarkSort(b, "table.sort(a)") }
138func BenchmarkSort2(b *testing.B) {
139 benchmarkSort(b, "i = 0; table.sort(a, function(x,y) i=i+1; return y<x end)")
140}

Callers

nothing calls this directly

Calls 1

benchmarkSortFunction · 0.85

Tested by

no test coverage detected