- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for BenchmarkMap (0.15 sec)
-
src/reflect/benchmark_test.go
v.Interface() } }) } func BenchmarkNew(b *testing.B) { v := TypeOf(XM{}) b.RunParallel(func(pb *testing.PB) { for pb.Next() { New(v) } }) } func BenchmarkMap(b *testing.B) { type V *int type S string value := ValueOf((V)(nil)) stringKeys := []string{} mapOfStrings := map[string]V{} uint64Keys := []uint64{} mapOfUint64s := map[uint64]V{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Nov 19 17:09:03 UTC 2023 - 8.8K bytes - Viewed (0) -
src/strings/replace_test.go
} } var mapdata = []struct{ name, data string }{ {"ASCII", "a b c d e f g h i j k l m n o p q r s t u v w x y z"}, {"Greek", "α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ ς σ τ υ φ χ ψ ω"}, } func BenchmarkMap(b *testing.B) { mapidentity := func(r rune) rune { return r } b.Run("identity", func(b *testing.B) { for _, md := range mapdata { b.Run(md.name, func(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 22:53:05 UTC 2017 - 14.1K bytes - Viewed (0) -
src/internal/trace/traceviewer/static/trace_viewer_full.html
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 20:45:06 UTC 2023 - 2.5M bytes - Viewed (0)