Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 168 for resetTimer (0.22 sec)

  1. cmd/tier-last-day-stats_gen_test.go

    	v := DailyAllTierStats{}
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.MarshalMsg(nil)
    	}
    }
    
    func BenchmarkAppendMsgDailyAllTierStats(b *testing.B) {
    	v := DailyAllTierStats{}
    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bts, _ = v.MarshalMsg(bts[0:0])
    	}
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. cmd/metacache-set_gen_test.go

    	v := listPathOptions{}
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.MarshalMsg(nil)
    	}
    }
    
    func BenchmarkAppendMsglistPathOptions(b *testing.B) {
    	v := listPathOptions{}
    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bts, _ = v.MarshalMsg(bts[0:0])
    	}
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. cmd/metacache-walk_gen_test.go

    	v := WalkDirOptions{}
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.MarshalMsg(nil)
    	}
    }
    
    func BenchmarkAppendMsgWalkDirOptions(b *testing.B) {
    	v := WalkDirOptions{}
    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bts, _ = v.MarshalMsg(bts[0:0])
    	}
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. cmd/bootstrap-peer-server_gen_test.go

    	v := ServerSystemConfig{}
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.MarshalMsg(nil)
    	}
    }
    
    func BenchmarkAppendMsgServerSystemConfig(b *testing.B) {
    	v := ServerSystemConfig{}
    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bts, _ = v.MarshalMsg(bts[0:0])
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jan 24 21:36:44 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. src/encoding/binary/binary_test.go

    	b.SetBytes(int64(len(buf)))
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bsr.remain = buf
    		Read(bsr, BigEndian, slice)
    	}
    }
    
    func BenchmarkReadStruct(b *testing.B) {
    	bsr := &byteSliceReader{}
    	var buf bytes.Buffer
    	Write(&buf, BigEndian, &s)
    	b.SetBytes(int64(dataSize(reflect.ValueOf(s))))
    	t := s
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bsr.remain = buf.Bytes()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  6. src/slices/sort_benchmark_test.go

    			floats := make([]float64, size)
    			for i := range floats {
    				floats[i] = float64(i)
    			}
    			midpoint := len(floats) / 2
    			needle := (floats[midpoint] + floats[midpoint+1]) / 2
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				slices.BinarySearch(floats, needle)
    			}
    		})
    	}
    }
    
    type myStruct struct {
    	a, b, c, d string
    	n          int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. test/fixedbugs/issue16008.go

    func BenchmarkUpdateNodeTransaction(b B) {
    	s, nodeIDs := setupNodes(benchmarkNumNodes)
    	b.ResetTimer()
    	for i := 0; i < b.N(); i++ {
    		_ = s.Update(func(tx1 Tx) error {
    			_ = UpdateNode(tx1, &Node{
    				ID: nodeIDs[i%benchmarkNumNodes],
    			})
    			return nil
    		})
    	}
    }
    
    type B interface {
    	ResetTimer()
    	N() int
    }
    
    type Tx interface {
    }
    
    type Node struct {
    	ID string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1K bytes
    - Viewed (0)
  8. cmd/jwt_test.go

    	}
    
    	creds := globalActiveCred
    	b.Run("uncached", func(b *testing.B) {
    		fn := authenticateNode
    		b.ResetTimer()
    		b.ReportAllocs()
    		for i := 0; i < b.N; i++ {
    			fn(creds.AccessKey, creds.SecretKey, "aud")
    		}
    	})
    	b.Run("cached", func(b *testing.B) {
    		fn := newCachedAuthToken()
    		b.ResetTimer()
    		b.ReportAllocs()
    		for i := 0; i < b.N; i++ {
    			fn("aud")
    		}
    	})
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 19 16:45:14 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. src/net/http/mapping_test.go

    					entries = append(entries, entry[string, any]{c, nil})
    				}
    				b.ResetTimer()
    				for i := 0; i < b.N; i++ {
    					findChildLinear(key, entries)
    				}
    			})
    			b.Run("rep=map", func(b *testing.B) {
    				m := map[string]any{}
    				for _, c := range list {
    					m[c] = nil
    				}
    				var x any
    				b.ResetTimer()
    				for i := 0; i < b.N; i++ {
    					x = m[key]
    				}
    				_ = x
    			})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 17:47:07 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. src/runtime/pinner_test.go

    		data[i] = new(obj)
    	}
    	b.ResetTimer()
    	for n := 0; n < b.N; n++ {
    		var pinner runtime.Pinner
    		for i := 0; i < Batch; i++ {
    			pinner.Pin(data[i])
    		}
    		pinner.Unpin()
    	}
    }
    
    func BenchmarkPinnerPinUnpinBatchDouble(b *testing.B) {
    	const Batch = 1000
    	var data [Batch]*obj
    	for i := 0; i < Batch; i++ {
    		data[i] = new(obj)
    	}
    	b.ResetTimer()
    	for n := 0; n < b.N; n++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:36:12 UTC 2023
    - 11K bytes
    - Viewed (0)
Back to top