Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for benchmarkCompareBytesBigUnaligned (0.22 sec)

  1. src/bytes/compare_test.go

    		if Compare(b1, b2[offset:]) != 0 {
    			b.Fatal("b1 != b2")
    		}
    	}
    	b.SetBytes(int64(len(b1)))
    }
    
    func BenchmarkCompareBytesBigUnaligned(b *testing.B) {
    	for i := 1; i < 8; i++ {
    		b.Run(fmt.Sprintf("offset=%d", i), func(b *testing.B) {
    			benchmarkCompareBytesBigUnaligned(b, i)
    		})
    	}
    }
    
    func benchmarkCompareBytesBigBothUnaligned(b *testing.B, offset int) {
    	b.StopTimer()
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Thu Jul 13 23:11:42 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top