MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / BenchmarkNewFastTime

Function BenchmarkNewFastTime

internal/utils/fasttime/time_fast_test.go:46–53  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

44}
45
46func BenchmarkNewFastTime(b *testing.B) {
47 b.RunParallel(func(pb *testing.PB) {
48 for pb.Next() {
49 var now = fasttime.Now()
50 _ = now.Ymd()
51 }
52 })
53}
54
55func BenchmarkNewFastTime_Raw(b *testing.B) {
56 b.RunParallel(func(pb *testing.PB) {

Callers

nothing calls this directly

Calls 3

NowFunction · 0.92
NextMethod · 0.80
YmdMethod · 0.80

Tested by

no test coverage detected