Skip to content

Instantly share code, notes, and snippets.

View kolyshkin's full-sized avatar

Kir Kolyshkin kolyshkin

  • Red Hat
  • Seattle, WA, USA
  • 20:00 (UTC -07:00)
  • X @kolyshkin
View GitHub Profile
func BenchmarkApplyDestroy(b *testing.B) {
requireV1(b)
cg := &configs.Cgroup{
Name: "system-runc_test_freeze_1.slice",
Parent: "system.slice",
Resources: &configs.Resources{
SkipDevices: true,
},
}
package main
import "testing"
// Original version that returns by value
type Thing struct {
c *Config
}
func (t *Thing) Config() Config {