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

Function BenchmarkObjectAutoMapper_Map

mapper_object_test.go:441–449  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

439}
440
441func BenchmarkObjectAutoMapper_Map(b *testing.B) {
442 m := NewMapper()
443 from := &FromStruct{Name: "From", Sex: true, AA: "AA"}
444 to := make(map[string]interface{})
445
446 for i := 0; i < b.N; i++ {
447 m.Mapper(from, &to)
448 }
449}
450
451func BenchmarkObjectMapperMap(b *testing.B) {
452 m := NewMapper()

Callers

nothing calls this directly

Calls 2

NewMapperFunction · 0.85
MapperMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…