Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkInt64N1e8 (0.16 sec)

  1. src/math/rand/v2/rand_test.go

    }
    
    func BenchmarkInt64N1000(b *testing.B) {
    	r := testRand()
    	var t int64
    	arg := keep(int64(1000))
    	for n := b.N; n > 0; n-- {
    		t += r.Int64N(arg)
    	}
    	Sink = uint64(t)
    }
    
    func BenchmarkInt64N1e8(b *testing.B) {
    	r := testRand()
    	var t int64
    	arg := keep(int64(1e8))
    	for n := b.N; n > 0; n-- {
    		t += r.Int64N(arg)
    	}
    	Sink = uint64(t)
    }
    
    func BenchmarkInt64N1e9(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top