func benchmarkStoreState(b *testing.B, c *foosbot.Context) { b.ResetTimer() b.ReportAllocs() for i := 0; i < b.N; i++ { c.Store() } }
func backup(c *foosbot.Context) { for { time.Sleep(1 * time.Hour) c.Store() } }