Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkSwitchInterfaceTypeUnpredictable (0.43 sec)

  1. src/cmd/compile/internal/test/switch_test.go

    			n += 7
    		case uint64:
    			n += 8
    		}
    	}
    	sink = n
    }
    
    func BenchmarkSwitchInterfaceTypePredictable(b *testing.B) {
    	benchmarkSwitchInterfaceType(b, true)
    }
    func BenchmarkSwitchInterfaceTypeUnpredictable(b *testing.B) {
    	benchmarkSwitchInterfaceType(b, false)
    }
    
    type SI0 interface {
    	si0()
    }
    type ST0 struct {
    }
    
    func (ST0) si0() {
    }
    
    type SI1 interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top