MCPcopy Create free account
hub / github.com/PuerkitoBio/goquery / BenchmarkLast

Function BenchmarkLast

bench_array_test.go:16–23  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

14}
15
16func BenchmarkLast(b *testing.B) {
17 b.StopTimer()
18 sel := DocB().Find("dd")
19 b.StartTimer()
20 for i := 0; i < b.N; i++ {
21 sel.Last()
22 }
23}
24
25func BenchmarkEq(b *testing.B) {
26 b.StopTimer()

Callers

nothing calls this directly

Calls 3

DocBFunction · 0.85
FindMethod · 0.80
LastMethod · 0.80

Tested by

no test coverage detected