Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 248 for FLOAT64 (0.16 sec)

  1. src/runtime/gc_test.go

    	b.ReportMetric(0, "B/op")
    	b.ReportMetric(0, "allocs/op")
    
    	// Sort latencies then report percentiles.
    	slices.Sort(latencies)
    	b.ReportMetric(float64(latencies[len(latencies)*50/100]), "p50-ns")
    	b.ReportMetric(float64(latencies[len(latencies)*90/100]), "p90-ns")
    	b.ReportMetric(float64(latencies[len(latencies)*99/100]), "p99-ns")
    }
    
    func TestUserForcedGC(t *testing.T) {
    	// Test that runtime.GC() triggers a GC even if GOGC=off.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. src/log/slog/value_test.go

    	var (
    		i  int64
    		u  uint64
    		f  float64
    		b  bool
    		s  string
    		x  any
    		p  = &i
    		d  time.Duration
    		tm time.Time
    	)
    	a := int(testing.AllocsPerRun(5, func() {
    		i = Int64Value(1).Int64()
    		u = Uint64Value(1).Uint64()
    		f = Float64Value(1).Float64()
    		b = BoolValue(true).Bool()
    		s = StringValue("foo").String()
    		d = DurationValue(d).Duration()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. src/database/sql/convert.go

    		switch sv.Kind() {
    		case reflect.Bool,
    			reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64,
    			reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64,
    			reflect.Float32, reflect.Float64:
    			*d = asString(src)
    			return nil
    		}
    	case *[]byte:
    		sv = reflect.ValueOf(src)
    		if b, ok := asBytes(nil, sv); ok {
    			*d = b
    			return nil
    		}
    	case *RawBytes:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. src/runtime/runtime_test.go

    			}
    			b.StopTimer()
    
    			// Sort latencies then report percentiles.
    			slices.Sort(latencies)
    			b.ReportMetric(float64(latencies[len(latencies)*50/100]), "p50-ns")
    			b.ReportMetric(float64(latencies[len(latencies)*90/100]), "p90-ns")
    			b.ReportMetric(float64(latencies[len(latencies)*99/100]), "p99-ns")
    		}
    		return func(b *testing.B) {
    			b.Run("idle", runOne)
    
    			b.Run("loaded", func(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  5. pkg/kubelet/certificate/kubelet.go

    			Subsystem: metrics.KubeletSubsystem,
    			Name:      "certificate_manager_server_rotation_seconds",
    			Help:      "Histogram of the number of seconds the previous certificate lived before being rotated.",
    			Buckets: []float64{
    				60,        // 1  minute
    				3600,      // 1  hour
    				14400,     // 4  hours
    				86400,     // 1  day
    				604800,    // 1  week
    				2592000,   // 1  month
    				7776000,   // 3  months
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 03:07:16 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. src/time/time.go

    // differently.
    
    // Seconds returns the duration as a floating point number of seconds.
    func (d Duration) Seconds() float64 {
    	sec := d / Second
    	nsec := d % Second
    	return float64(sec) + float64(nsec)/1e9
    }
    
    // Minutes returns the duration as a floating point number of minutes.
    func (d Duration) Minutes() float64 {
    	min := d / Minute
    	nsec := d % Minute
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    	}
    }
    
    // AsApproximateFloat64 returns a float64 representation of the quantity which may
    // lose precision. If the value of the quantity is outside the range of a float64
    // +Inf/-Inf will be returned.
    func (q *Quantity) AsApproximateFloat64() float64 {
    	var base float64
    	var exponent int
    	if q.d.Dec != nil {
    		base, _ = big.NewFloat(0).SetInt(q.d.Dec.UnscaledBig()).Float64()
    		exponent = int(-q.d.Dec.Scale())
    	} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/rewrite.go

    	return math.Float32frombits(r)
    }
    
    // extend32Fto64F converts a float32 value to a float64 value preserving the bit
    // pattern of the mantissa.
    func extend32Fto64F(f float32) float64 {
    	if !math.IsNaN(float64(f)) {
    		return float64(f)
    	}
    	// NaN bit patterns aren't necessarily preserved across conversion
    	// instructions so we need to do the conversion manually.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation_test.go

    	fuzz "github.com/google/gofuzz"
    )
    
    func TestValidateStructuralMetadataInvariants(t *testing.T) {
    	fuzzer := fuzz.New()
    	fuzzer.Funcs(
    		func(s *JSON, c fuzz.Continue) {
    			if c.RandBool() {
    				s.Object = float64(42.0)
    			}
    		},
    		func(s **StructuralOrBool, c fuzz.Continue) {
    			if c.RandBool() {
    				*s = &StructuralOrBool{}
    			}
    		},
    		func(s **Structural, c fuzz.Continue) {
    			if c.RandBool() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 18:20:00 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. pkg/proxy/metrics/metrics.go

    		case kubeproxyconfig.ProxyModeKernelspace:
    			// currently no winkernel-specific metrics
    		}
    	})
    }
    
    // SinceInSeconds gets the time since the specified start in seconds.
    func SinceInSeconds(start time.Time) float64 {
    	return time.Since(start).Seconds()
    }
    
    var _ metrics.StableCollector = &nfacctMetricCollector{}
    
    func newNFAcctMetricCollector(counter string, description *metrics.Desc) *nfacctMetricCollector {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top