Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkFibo (0.15 sec)

  1. src/math/big/nat_test.go

    	for i, want := range fiboNums {
    		n := i * 10
    		got := string(fibo(n).utoa(10))
    		if got != want {
    			t.Errorf("fibo(%d) failed: got %s want %s", n, got, want)
    		}
    	}
    }
    
    func BenchmarkFibo(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		fibo(1e0)
    		fibo(1e1)
    		fibo(1e2)
    		fibo(1e3)
    		fibo(1e4)
    		fibo(1e5)
    	}
    }
    
    var bitTests = []struct {
    	x    string
    	i    uint
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 09 15:29:36 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top