- Sort Score
- Result 10 results
- Languages All
Results 21 - 25 of 25 for cputicks (0.16 sec)
-
src/compress/flate/reader_test.go
// does not repeat, but there are only 10 possible digits, so it should be // reasonably compressible. {"Digits", "../testdata/e.txt"}, // Newton is Isaac Newtons's educational text on Opticks. {"Newton", "../../testdata/Isaac.Newton-Opticks.txt"}, } func BenchmarkDecode(b *testing.B) { doBench(b, func(b *testing.B, buf0 []byte, level, n int) { b.ReportAllocs() b.StopTimer() b.SetBytes(int64(n))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 19:12:23 UTC 2020 - 2.3K bytes - Viewed (0) -
src/internal/zstd/xxhash_test.go
} } } func TestLargeXXHash(t *testing.T) { if testing.Short() { t.Skip("skipping expensive test in short mode") } data, err := os.ReadFile("../../testdata/Isaac.Newton-Opticks.txt") if err != nil { t.Fatal(err) } var xh xxhash64 xh.reset() i := 0 for i < len(data) { // Write varying amounts to test buffering. c := i%4094 + 1 if i+c > len(data) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:34:06 UTC 2023 - 2.3K bytes - Viewed (0) -
src/compress/bzip2/bzip2_test.go
if n, err := r.Read(nil); n != 0 || err != nil { t.Errorf("Read(nil) = (%d, %v), want (0, nil)", n, err) } } var ( digits = mustLoadFile("testdata/e.txt.bz2") newton = mustLoadFile("testdata/Isaac.Newton-Opticks.txt.bz2") random = mustLoadFile("testdata/random.data.bz2") ) func benchmarkDecode(b *testing.B, compressed []byte) { // Determine the uncompressed size of testfile.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 19:12:23 UTC 2020 - 6.3K bytes - Viewed (0) -
cmd/metrics-realtime.go
if types.Contains(madmin.MetricsCPU) { m.Aggregated.CPU = &madmin.CPUMetrics{ CollectedAt: UTCNow(), } cm, err := c.Times(false) if err != nil { m.Errors = append(m.Errors, fmt.Sprintf("%s: %v (cpuTimes)", byHostName, err.Error())) } else { // not collecting per-cpu stats, so there will be only one element if len(cm) == 1 { m.Aggregated.CPU.TimesStat = &cm[0] } else {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Jun 01 05:16:24 UTC 2024 - 6.3K bytes - Viewed (0) -
src/internal/zstd/zstd_test.go
) // bigData returns the contents of our large test file repeated multiple times. func bigData(t testing.TB) []byte { bigDataOnce.Do(func() { bigDataBytes, bigDataErr = os.ReadFile("../../testdata/Isaac.Newton-Opticks.txt") if bigDataErr == nil { bigDataBytes = bytes.Repeat(bigDataBytes, 20) } }) if bigDataErr != nil { t.Fatal(bigDataErr) } return bigDataBytes }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 16:39:21 UTC 2023 - 9.5K bytes - Viewed (0)