Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 240 for startTimer (0.14 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/helpers_test.go

    		MatchLabels: map[string]string{
    			"foo": "foo",
    			"bar": "bar",
    		},
    		MatchExpressions: []LabelSelectorRequirement{{
    			Key:      "baz",
    			Operator: LabelSelectorOpExists,
    		}},
    	}
    	b.StartTimer()
    	for i := 0; i < b.N; i++ {
    		_, err := LabelSelectorAsSelector(selector)
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    }
    
    func TestLabelSelectorAsMap(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. src/image/draw/bench_test.go

    				if a >= 0xc0 {
    					mask1.SetAlpha(x, y, color.Alpha{a})
    				}
    			}
    		}
    		mask = mask1
    	default:
    		b.Fatal("unknown mask color model", mcm)
    	}
    
    	b.StartTimer()
    	for i := 0; i < b.N; i++ {
    		// Scatter the destination rectangle to draw into.
    		x := 3 * i % (dstw - srcw)
    		y := 7 * i % (dsth - srch)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  3. src/net/http/server_test.go

    	mux.HandleFunc("/admin/products/delete", fn)
    
    	paths := []string{"/", "/notfound", "/admin/", "/admin/foo", "/contact", "/products",
    		"/products/", "/products/3/image.jpg"}
    	b.StartTimer()
    	for i := 0; i < b.N; i++ {
    		r, err := NewRequest("GET", "http://example.com/"+paths[i%len(paths)], nil)
    		if err != nil {
    			b.Fatal(err)
    		}
    		if h, p, _, _ := mux.findHandler(r); h != nil && p == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 13:54:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. pkg/util/sets/set_test.go

    		for n := 0; n < b.N; n++ {
    			containsTest.Contains("100")
    		}
    	})
    	b.Run("sorted", func(b *testing.B) {
    		for n := 0; n < b.N; n++ {
    			b.StopTimer()
    			s := New(sortOrder...)
    			b.StartTimer()
    			SortedList(s)
    		}
    	})
    }
    
    func TestMapOfSet(t *testing.T) {
    	m := map[int]String{}
    	InsertOrNew(m, 1, "a")
    	InsertOrNew(m, 1, "b")
    	InsertOrNew(m, 2, "c")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. src/image/jpeg/dct_test.go

    	"testing"
    )
    
    func benchmarkDCT(b *testing.B, f func(*block)) {
    	b.StopTimer()
    	blocks := make([]block, 0, b.N*len(testBlocks))
    	for i := 0; i < b.N; i++ {
    		blocks = append(blocks, testBlocks[:]...)
    	}
    	b.StartTimer()
    	for i := range blocks {
    		f(&blocks[i])
    	}
    }
    
    func BenchmarkFDCT(b *testing.B) {
    	benchmarkDCT(b, fdct)
    }
    
    func BenchmarkIDCT(b *testing.B) {
    	benchmarkDCT(b, idct)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:30 UTC 2022
    - 8.6K bytes
    - Viewed (0)
  6. src/internal/zstd/zstd_test.go

    	b.StopTimer()
    	b.ReportAllocs()
    
    	compressed := zstdBigData(b)
    
    	b.SetBytes(int64(len(compressed)))
    
    	input := bytes.NewReader(compressed)
    	r := NewReader(input)
    
    	b.StartTimer()
    	for i := 0; i < b.N; i++ {
    		input.Reset(compressed)
    		r.Reset(input)
    		io.Copy(io.Discard, r)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:39:21 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/starttime.go

    package util
    
    import (
    	"time"
    )
    
    // startTime is a variable that represents the start time of the kubeadm process.
    // It can be used to consistently use the same start time instead of calling time.Now()
    // in multiple locations and ending up with minor time deviations.
    var startTime time.Time
    
    func init() {
    	startTime = time.Now()
    }
    
    // StartTimeUTC returns startTime with its location set to UTC.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 1K bytes
    - Viewed (0)
  8. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/junit/result/TestClassResult.java

        private final String classDisplayName;
        private long startTime;
        private int failuresCount;
        private int skippedCount;
        private long id;
    
        public TestClassResult(long id, String className, long startTime) {
            this(id, className, null, startTime);
        }
    
        public TestClassResult(long id, String className, @Nullable String classDisplayName, long startTime) {
            if (id < 1) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. src/cmd/trace/jsontrace.go

    				return
    			}
    			opts.mode = traceviewer.ModeGoroutineOriented
    			if g.StartTime != 0 {
    				opts.startTime = g.StartTime.Sub(parsed.startTime())
    			} else {
    				opts.startTime = 0
    			}
    			if g.EndTime != 0 {
    				opts.endTime = g.EndTime.Sub(parsed.startTime())
    			} else { // The goroutine didn't end.
    				opts.endTime = parsed.endTime().Sub(parsed.startTime())
    			}
    			opts.focusGoroutine = goid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/internal/buildevents/BuildStartedTime.java

    public class BuildStartedTime {
    
        private volatile long startTime;
    
        public static BuildStartedTime startingAt(long startTime) {
            return new BuildStartedTime(startTime);
        }
    
        public BuildStartedTime(long startTime) {
            this.startTime = startTime;
        }
    
        public long getStartTime() {
            return startTime;
        }
    
        public void reset(long startTime) {
            this.startTime = startTime;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 13 03:50:47 UTC 2017
    - 1.4K bytes
    - Viewed (0)
Back to top