github.com/vc42/parquet-go@v0.0.0-20240320194221-1a9adb5f23f5/compare_test.go (about)

     1  package parquet
     2  
     3  import "testing"
     4  
     5  func BenchmarkCompareBE128(b *testing.B) {
     6  	v1 := [16]byte{}
     7  	v2 := [16]byte{}
     8  
     9  	for i := 0; i < b.N; i++ {
    10  		compareBE128(&v1, &v2)
    11  	}
    12  }
    13  
    14  func BenchmarkLessBE128(b *testing.B) {
    15  	v1 := [16]byte{}
    16  	v2 := [16]byte{}
    17  
    18  	for i := 0; i < b.N; i++ {
    19  		lessBE128(&v1, &v2)
    20  	}
    21  }