Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestCalibrate (0.14 sec)

  1. src/math/big/calibrate_test.go

    // Usage: go test -run='^TestCalibrate$' -v -calibrate
    
    package big
    
    import (
    	"flag"
    	"fmt"
    	"testing"
    	"time"
    )
    
    var calibrate = flag.Bool("calibrate", false, "run calibration test")
    
    const (
    	sqrModeMul       = "mul(x, x)"
    	sqrModeBasic     = "basicSqr(x)"
    	sqrModeKaratsuba = "karatsubaSqr(x)"
    )
    
    func TestCalibrate(t *testing.T) {
    	if !*calibrate {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. src/unicode/letter_test.go

    // of an effective cutoff value. In practice we could probably set it higher
    // than what this function recommends.
    
    var calibrate = flag.Bool("calibrate", false, "compute crossover for linear vs. binary search")
    
    func TestCalibrate(t *testing.T) {
    	if !*calibrate {
    		return
    	}
    
    	if runtime.GOARCH == "amd64" {
    		fmt.Printf("warning: running calibration on %s\n", runtime.GOARCH)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 09 01:46:03 UTC 2023
    - 14.8K bytes
    - Viewed (0)
Back to top