- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkMulconstI32 (0.13 sec)
-
src/cmd/compile/internal/test/mulconst_test.go
// operations. It is platform-dependent whether these transformations // are actually applied. var ( mulSinkI32 int32 mulSinkI64 int64 mulSinkU32 uint32 mulSinkU64 uint64 ) func BenchmarkMulconstI32(b *testing.B) { // 3x = 2x + x b.Run("3", func(b *testing.B) { x := int32(1) for i := 0; i < b.N; i++ { x *= 3 } mulSinkI32 = x }) // 5x = 4x + x b.Run("5", func(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 18 15:39:44 UTC 2020 - 4.3K bytes - Viewed (0)