filter: benchmark: remove \n from log

This commit is contained in:
Ella Pietraroia 2020-02-07 10:41:29 +10:30
parent 42fe6e05ac
commit 99b0ccc1b5
1 changed files with 4 additions and 4 deletions

View File

@ -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)