From 99b0ccc1b5201229176a08e1e48a41ed30be8071 Mon Sep 17 00:00:00 2001 From: Ella Pietraroia Date: Fri, 7 Feb 2020 10:41:29 +1030 Subject: [PATCH] filter: benchmark: remove \n from log --- filter/filter_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/filter/filter_test.go b/filter/filter_test.go index a6951cf6..1b64ce1d 100644 --- a/filter/filter_test.go +++ b/filter/filter_test.go @@ -59,7 +59,7 @@ const ( func BenchmarkBasic(b *testing.B) { file, _ := os.Create(outBasic) f := NewBasic(io.WriteCloser(file), debug, BasicThreshold, BasicPixels) - b.Log("\nFrames: ", len(testPackets)) + b.Log("Frames: ", len(testPackets)) for n := 0; n < b.N; n++ { for _, x := range testPackets { f.Write(x) @@ -70,7 +70,7 @@ func BenchmarkBasic(b *testing.B) { func BenchmarkDifference(b *testing.B) { file, _ := os.Create(outDiff) f := NewDifference(io.WriteCloser(file), debug, DiffThreshold) - b.Log("\nFrames: ", len(testPackets)) + b.Log("Frames: ", len(testPackets)) for n := 0; n < b.N; n++ { for _, x := range testPackets { f.Write(x) @@ -81,7 +81,7 @@ func BenchmarkDifference(b *testing.B) { func BenchmarkKNN(b *testing.B) { file, _ := os.Create(outKNN) f := NewKNN(io.WriteCloser(file), KNNMinArea, KNNThreshold, KNNHistory, KNNKernel, debug, motionInterval, motionDownscaling) - b.Log("\nFrames: ", len(testPackets)) + b.Log("Frames: ", len(testPackets)) for n := 0; n < b.N; n++ { for _, x := range testPackets { f.Write(x) @@ -92,7 +92,7 @@ func BenchmarkKNN(b *testing.B) { func BenchmarkMOG(b *testing.B) { file, _ := os.Create(outMOG) f := NewMOG(io.WriteCloser(file), MOGMinArea, MOGThreshold, MOGHistory, debug, motionInterval, motionDownscaling) - b.Log("\nFrames: ", len(testPackets)) + b.Log("Frames: ", len(testPackets)) for n := 0; n < b.N; n++ { for _, x := range testPackets { f.Write(x)