Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for MemBytes (0.15 sec)

  1. src/testing/benchmark.go

    	return int64(r.MemAllocs) / int64(r.N)
    }
    
    // AllocedBytesPerOp returns the "B/op" metric,
    // which is calculated as r.MemBytes / r.N.
    func (r BenchmarkResult) AllocedBytesPerOp() int64 {
    	if v, ok := r.Extra["B/op"]; ok {
    		return int64(v)
    	}
    	if r.N <= 0 {
    		return 0
    	}
    	return int64(r.MemBytes) / int64(r.N)
    }
    
    // String returns a summary of the benchmark results.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. src/internal/fuzz/worker.go

    func (ws *workerServer) minimizeInput(ctx context.Context, vals []any, mem *sharedMem, args minimizeArgs) (success bool, retErr error) {
    	keepCoverage := args.KeepCoverage
    	memBytes := mem.valueRef()
    	bPtr := &memBytes
    	count := &mem.header().count
    	shouldStop := func() bool {
    		return ctx.Err() != nil ||
    			(args.Limit > 0 && *count >= args.Limit)
    	}
    	if shouldStop() {
    		return false, nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Benchmark", Func, 0},
    		{"BenchmarkResult", Type, 0},
    		{"BenchmarkResult.Bytes", Field, 0},
    		{"BenchmarkResult.Extra", Field, 13},
    		{"BenchmarkResult.MemAllocs", Field, 1},
    		{"BenchmarkResult.MemBytes", Field, 1},
    		{"BenchmarkResult.N", Field, 0},
    		{"BenchmarkResult.T", Field, 0},
    		{"Cover", Type, 2},
    		{"Cover.Blocks", Field, 2},
    		{"Cover.Counters", Field, 2},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  4. src/crypto/x509/x509_test.go

    		X:     big.NewInt(1), Y: big.NewInt(2),
    	})
    	if err == nil {
    		t.Errorf("expected error, got MarshalPKIXPublicKey success")
    	}
    }
    
    func testParsePKIXPublicKey(t *testing.T, pemBytes string) (pub any) {
    	block, _ := pem.Decode([]byte(pemBytes))
    	pub, err := ParsePKIXPublicKey(block.Bytes)
    	if err != nil {
    		t.Fatalf("Failed to parse public key: %s", err)
    	}
    
    	pubBytes2, err := MarshalPKIXPublicKey(pub)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  5. src/crypto/x509/verify_test.go

    	if _, ok := err.(UnhandledCriticalExtension); !ok {
    		t.Fatalf("error was not an UnhandledCriticalExtension: %v", err)
    	}
    }
    
    func certificateFromPEM(pemBytes string) (*Certificate, error) {
    	block, _ := pem.Decode([]byte(pemBytes))
    	if block == nil {
    		return nil, errors.New("failed to decode PEM")
    	}
    	return ParseCertificate(block.Bytes)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
Back to top