MCPcopy Index your code
hub / github.com/devfeel/mapper / BenchmarkAutoMapper_Map

Function BenchmarkAutoMapper_Map

mapper_test.go:485–492  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

483}
484
485func BenchmarkAutoMapper_Map(b *testing.B) {
486 from := &FromStruct{Name: "From", Sex: true, AA: "AA"}
487 to := make(map[string]interface{})
488
489 for i := 0; i < b.N; i++ {
490 Mapper(from, &to)
491 }
492}
493
494func BenchmarkMapperMap(b *testing.B) {
495 Register(&testStruct{})

Callers

nothing calls this directly

Calls 1

MapperFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…