Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkCall (0.21 sec)

  1. src/hash/crc32/crc32_test.go

    			return castagnoli.Sum32()
    		})
    	}
    }
    
    func BenchmarkCRC32(b *testing.B) {
    	b.Run("poly=IEEE", benchmarkAll(NewIEEE()))
    	b.Run("poly=Castagnoli", benchmarkAll(New(MakeTable(Castagnoli))))
    	b.Run("poly=Koopman", benchmarkAll(New(MakeTable(Koopman))))
    }
    
    func benchmarkAll(h hash.Hash32) func(b *testing.B) {
    	return func(b *testing.B) {
    		for _, size := range []int{15, 40, 512, 1 << 10, 4 << 10, 32 << 10} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top