Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for StopTimer (0.21 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/bytes/compare_test.go

    	b2 := []byte("Hello, Gophers!")
    	for i := 0; i < b.N; i++ {
    		if Compare(b1, b2) != -1 {
    			b.Fatal("b1 < b2 failed")
    		}
    	}
    }
    
    func benchmarkCompareBytesBigUnaligned(b *testing.B, offset int) {
    	b.StopTimer()
    	b1 := make([]byte, 0, 1<<20)
    	for len(b1) < 1<<20 {
    		b1 = append(b1, "Hello Gophers!"...)
    	}
    	b2 := append([]byte("12345678")[:offset], b1...)
    	b.StartTimer()
    	for j := 0; j < b.N; j++ {
    Created: 2026-04-07 11:13
    - Last Modified: 2023-07-13 23:11
    - 6.8K bytes
    - Click Count (0)
  2. cmd/benchmark-utils_test.go

    		}
    		if objInfo.ETag != md5hex {
    			b.Fatalf("Write no: %d: Md5Sum mismatch during object write into the bucket: Expected %s, got %s", i+1, objInfo.ETag, md5hex)
    		}
    	}
    	// Benchmark ends here. Stop timer.
    	b.StopTimer()
    }
    
    // Benchmark utility functions for ObjectLayer.PutObjectPart().
    // Creates Object layer setup ( MakeBucket ) and then runs the PutObjectPart benchmark.
    Created: 2026-04-05 19:28
    - Last Modified: 2025-08-29 02:39
    - 8.1K bytes
    - Click Count (0)
  3. api/go1.txt

    pkg testing, method (*B) Logf(string, ...interface{})
    pkg testing, method (*B) ResetTimer()
    pkg testing, method (*B) SetBytes(int64)
    pkg testing, method (*B) StartTimer()
    pkg testing, method (*B) StopTimer()
    pkg testing, method (*T) Error(...interface{})
    pkg testing, method (*T) Errorf(string, ...interface{})
    pkg testing, method (*T) Fail()
    pkg testing, method (*T) FailNow()
    Created: 2026-04-07 11:13
    - Last Modified: 2013-08-14 18:58
    - 1.7M bytes
    - Click Count (0)
Back to Top