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

Function BenchmarkSort2

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

Source from the content-addressed store, hash-verified

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}
141
142func BenchmarkFibonnaci(b *testing.B) {
143 l := NewState()

Callers

nothing calls this directly

Calls 1

benchmarkSortFunction · 0.85

Tested by

no test coverage detected