mohae/joefriday · net.go
go logo
func BenchNetDevDeserializeJSON(b *testing.B) {
	var inf *structs.DevInfo
	p, _ := djson.NewProfiler()
	tmp, _ := p.Get()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		inf, _ = djson.Deserialize(tmp)
	}
	_ = inf
}
Similar code snippets
1.
mohae/joefriday · net.go
Match rating: 78.57% · See similar code snippets
go logo
func BenchNetDevDeserializeFB(b *testing.B) {
	var inf *structs.DevInfo
	p, _ := dfb.NewProfiler()
	tmp, _ := p.Get()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		inf = dfb.Deserialize(tmp)
	}
	_ = inf
}
2.
mohae/joefriday · mem.go
Match rating: 77.78% · See similar code snippets
go logo
func BenchMemInfoDeserializeJSON(b *testing.B) {
	var inf *meminfo.Info
	p, _ := mjson.NewProfiler()
	tmp, _ := p.Get()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		inf, _ = mjson.Deserialize(tmp)
	}
	_ = inf
}
3.
mohae/joefriday · net.go
Match rating: 71.02% · See similar code snippets
go logo
func BenchNetUsageDeserializeJSON(b *testing.B) {
	var u *structs.DevUsage
	p, _ := ujson.NewProfiler()
	tmp, _ := p.Get()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		u, _ = ujson.Deserialize(tmp)
	}
	_ = u
}
4.
mohae/joefriday · system.go
Match rating: 68.46% · See similar code snippets
go logo
func BenchSystemVersionDeserializeJSON(b *testing.B) {
	var k *version.Kernel
	p, _ := vjson.NewProfiler()
	tmp, _ := p.Get()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		k, _ = vjson.Deserialize(tmp)
	}
	_ = k
}
5.
mohae/joefriday · disk.go
Match rating: 66.85% · See similar code snippets
go logo
func BenchDiskUsageDeserializeJSON(b *testing.B) {
	var u *structs.DiskUsage
	p, _ := ujson.NewProfiler()
	tmp, _ := p.Get()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		u, _ = ujson.Deserialize(tmp)
	}
	_ = u
}
6.
mohae/joefriday · system.go
Match rating: 65.16% · See similar code snippets
go logo
func BenchSystemOSDeserializeJSON(b *testing.B) {
	var o *os.OS
	p, _ := osjson.NewProfiler()
	tmp, _ := p.Get()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		o, _ = osjson.Deserialize(tmp)
	}
	_ = o
}
7.
mohae/joefriday · disk.go
Match rating: 63.5% · See similar code snippets
go logo
func BenchDiskStatsDeserializeJSON(b *testing.B) {
	var sts *structs.DiskStats
	p, _ := sjson.NewProfiler()
	tmp, _ := p.Get()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		sts, _ = sjson.Deserialize(tmp)
	}
	_ = sts
}
8.
mohae/joefriday · cpu.go
Match rating: 63.3% · See similar code snippets
go logo
func BenchCPUInfoDeserializeJSON(b *testing.B) {
	var fct *cpuinfo.CPUInfo
	p, _ := infojson.NewProfiler()
	tmp, _ := p.Get()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		fct, _ = infojson.Deserialize(tmp)
	}
	_ = fct
}
9.
mohae/joefriday · system.go
Match rating: 62.81% · See similar code snippets
go logo
func BenchSystemUptimeDeserializeJSON(b *testing.B) {
	var u uptime.Uptime
	p, _ := ujson.NewProfiler()
	tmp, _ := p.Get()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		u, _ = ujson.Deserialize(tmp)
	}
	_ = u
}
10.
mohae/joefriday · sysinfo.go
Match rating: 60.89% · See similar code snippets
go logo
func BenchSysinfoUptimeDeserializeJSON(b *testing.B) {
	var u *uptime.Uptime
	tmp, _ := ujson.Get()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		u, _ = ujson.Deserialize(tmp)
	}
	_ = u
}