Sign in
fuchsia
/
third_party
/
github.com
/
smartystreets
/
go-disruptor
/
3fa69b573f9ae2258a09f9556db351ed703ee5ee
/
.
/
cursor_test.go
blob: 762996ad86867f0888876344700746f61fd3c7cf [
file
] [
log
] [
blame
]
package disruptor
import "testing"
func BenchmarkWrites(b *testing.B) {
iterations := int64(b.N)
cursor := NewCursor()
b.ReportAllocs()
b.ResetTimer()
for i := int64(0); i < iterations; i++ {
cursor.Store(i)
}
}