forked from mirror/logrus
tweak timing tests to handle slower VMs and older GoLang
This commit is contained in:
parent
f08011a10f
commit
306956c385
|
@ -328,7 +328,7 @@ func logLoop(iterations int, reportCaller bool) {
|
||||||
|
|
||||||
// Assertions for upper bounds to reporting overhead
|
// Assertions for upper bounds to reporting overhead
|
||||||
func TestCallerReportingOverhead(t *testing.T) {
|
func TestCallerReportingOverhead(t *testing.T) {
|
||||||
iterations := 10000
|
iterations := 5000
|
||||||
before := time.Now()
|
before := time.Now()
|
||||||
logLoop(iterations, false)
|
logLoop(iterations, false)
|
||||||
during := time.Now()
|
during := time.Now()
|
||||||
|
|
Loading…
Reference in New Issue