Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 687 for 1000L (0.04 sec)

  1. test/maplinear.go

    	checkLinear("int", 10000, func(n int) {
    		m := map[int]int{}
    		for i := 0; i < n; i++ {
    			m[i] = 1
    		}
    	})
    
    	// ~18ms on a 1.6GHz Zeon.
    	checkLinear("string", 10000, func(n int) {
    		m := map[string]int{}
    		for i := 0; i < n; i++ {
    			m[fmt.Sprint(i)] = 1
    		}
    	})
    
    	// ~6ms on a 1.6GHz Zeon.
    	checkLinear("float32", 10000, func(n int) {
    		m := map[float32]int{}
    		for i := 0; i < n; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. src/runtime/testdata/testprog/map.go

    	go func() {
    		for i := 0; i < 10000; i++ {
    			m[5] = 0
    			runtime.Gosched()
    		}
    		c <- struct{}{}
    	}()
    	go func() {
    		for i := 0; i < 10000; i++ {
    			m[6] = 0
    			runtime.Gosched()
    		}
    		c <- struct{}{}
    	}()
    	<-c
    	<-c
    }
    
    func concurrentMapReadWrite() {
    	m := map[int]int{}
    	c := make(chan struct{})
    	go func() {
    		for i := 0; i < 10000; i++ {
    			m[5] = 0
    			runtime.Gosched()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 16 21:52:44 UTC 2016
    - 1.3K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/noderesources/least_allocated_test.go

    				Req(map[v1.ResourceName]string{"cpu": "1000", "memory": "2000"}).
    				Req(map[v1.ResourceName]string{"cpu": "2000", "memory": "3000"}).
    				Obj(),
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node1").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    				st.MakeNode().Name("node2").Capacity(map[v1.ResourceName]string{"cpu": "6000", "memory": "10000"}).Obj(),
    			},
    			existingPods:   nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 18.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/validation/validation_test.go

    			in:   "1.2.3.400",
    			err:  "must be a valid IP address",
    		},
    		{
    			name: "ipv4 with negative octets",
    			in:   "-1.0.0.0",
    			err:  "must be a valid IP address",
    		},
    		{
    			name: "ipv6 with out-of-range segment",
    			in:   "2001:db8::10005",
    			err:  "must be a valid IP address",
    		},
    		{
    			name: "ipv4:port",
    			in:   "1.2.3.4:80",
    			err:  "must be a valid IP address",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 04:51:54 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/noderesources/most_allocated_test.go

    				Req(map[v1.ResourceName]string{"cpu": "1000", "memory": "2000"}).
    				Req(map[v1.ResourceName]string{"cpu": "2000", "memory": "3000"}).
    				Obj(),
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node1").Capacity(map[v1.ResourceName]string{"cpu": "4000", "memory": "10000"}).Obj(),
    				st.MakeNode().Name("node2").Capacity(map[v1.ResourceName]string{"cpu": "6000", "memory": "10000"}).Obj(),
    			},
    			existingPods:   nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 16K bytes
    - Viewed (0)
  6. pkg/proxy/ipvs/graceful_termination_test.go

    			vs: &utilipvs.VirtualServer{
    				Address:  netutils.ParseIPSloppy("1.1.1.1"),
    				Protocol: "tcp",
    				Port:     uint16(80),
    			},
    			rs: &utilipvs.RealServer{
    				Address:      netutils.ParseIPSloppy("10.0.0.1"),
    				Port:         uint16(80),
    				Weight:       100,
    				ActiveConn:   0,
    				InactiveConn: 0,
    			},
    			existingIPVS: &utilipvstest.FakeIPVS{
    				Services: map[utilipvstest.ServiceKey]*utilipvs.VirtualServer{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 11K bytes
    - Viewed (0)
  7. test/fixedbugs/issue13559.go

    	_ int64 = 1e-10      // ERROR "1e\-10 truncated|.* truncated to int64|truncated"
    	_ int64 = 1e-100     // ERROR "1e\-100 truncated|.* truncated to int64|truncated"
    	_ int64 = 1e-1000    // ERROR "1e\-1000 truncated|.* truncated to int64|truncated"
    	_ int64 = 1e-10000   // ERROR "1e\-10000 truncated|.* truncated to int64|truncated"
    	_ int64 = 1e-100000  // ERROR "1e\-100000 truncated|.* truncated to int64|truncated"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 23 05:11:09 UTC 2021
    - 5.9K bytes
    - Viewed (0)
  8. test/fixedbugs/issue24419.go

    	defer bytes.Compare(nil, nil)
    	growstack(10000)
    	c <- struct{}{}
    }
    func equal(c chan struct{}) {
    	defer bytes.Equal(nil, nil)
    	growstack(10000)
    	c <- struct{}{}
    }
    func indexByte(c chan struct{}) {
    	defer bytes.IndexByte(nil, 0)
    	growstack(10000)
    	c <- struct{}{}
    }
    func indexByteString(c chan struct{}) {
    	defer strings.IndexByte("", 0)
    	growstack(10000)
    	c <- struct{}{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 10 17:13:53 UTC 2018
    - 813 bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/imagelocality/image_locality_test.go

    			// Node1
    			// Image: gcr.io/600:latest 600MB, gcr.io/900:latest 900MB
    			// Score: 100 * (600M * 2/3 + 900M * 2/3 - 23M) / (1000M * 3 - 23M) = 32
    
    			// Node2
    			// Image: gcr.io/300:latest 300MB, gcr.io/600:latest 600MB, gcr.io/900:latest 900MB
    			// Score: 100 * (300M * 1/3 + 600M * 2/3 + 900M * 2/3 - 23M) / (1000M *3 - 23M) = 36
    
    			// Node3
    			// Image:
    			// Score: 0
    			pod:          &v1.Pod{Spec: test300600900},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 06:17:57 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. src/runtime/rwmutex_test.go

    		n := atomic.AddInt32(activity, 1)
    		if n < 1 || n >= 10000 {
    			panic(fmt.Sprintf("wlock(%d)\n", n))
    		}
    		for i := 0; i < 100; i++ {
    		}
    		atomic.AddInt32(activity, -1)
    		rwm.RUnlock()
    	}
    	cdone <- true
    }
    
    func writer(rwm *RWMutex, num_iterations int, activity *int32, cdone chan bool) {
    	for i := 0; i < num_iterations; i++ {
    		rwm.Lock()
    		n := atomic.AddInt32(activity, 10000)
    		if n != 10000 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 22:00:45 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top