github.com/dshulyak/uring@v0.0.0-20210209113719-1b2ec51f1542/core_test.go (about)

     1  package uring
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func BenchmarkSQEntryReset(b *testing.B) {
     8  	var sqe SQEntry
     9  	for i := 0; i < b.N; i++ {
    10  		sqe.Reset()
    11  	}
    12  	if sqe.userData != 0 {
    13  		b.Error("dummy test to prevent optimization")
    14  	}
    15  }