Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
16
func
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
25
func
BenchmarkEq(b *testing.B) {
26
b.StopTimer()
Callers
nothing calls this directly
Calls
3
DocB
Function · 0.85
Find
Method · 0.80
Last
Method · 0.80
Tested by
no test coverage detected