mirror of https://bitbucket.org/ausocean/av.git
filter: benchmark: remove \n from log
This commit is contained in:
parent
42fe6e05ac
commit
99b0ccc1b5
|
@ -59,7 +59,7 @@ const (
|
||||||
func BenchmarkBasic(b *testing.B) {
|
func BenchmarkBasic(b *testing.B) {
|
||||||
file, _ := os.Create(outBasic)
|
file, _ := os.Create(outBasic)
|
||||||
f := NewBasic(io.WriteCloser(file), debug, BasicThreshold, BasicPixels)
|
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 n := 0; n < b.N; n++ {
|
||||||
for _, x := range testPackets {
|
for _, x := range testPackets {
|
||||||
f.Write(x)
|
f.Write(x)
|
||||||
|
@ -70,7 +70,7 @@ func BenchmarkBasic(b *testing.B) {
|
||||||
func BenchmarkDifference(b *testing.B) {
|
func BenchmarkDifference(b *testing.B) {
|
||||||
file, _ := os.Create(outDiff)
|
file, _ := os.Create(outDiff)
|
||||||
f := NewDifference(io.WriteCloser(file), debug, DiffThreshold)
|
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 n := 0; n < b.N; n++ {
|
||||||
for _, x := range testPackets {
|
for _, x := range testPackets {
|
||||||
f.Write(x)
|
f.Write(x)
|
||||||
|
@ -81,7 +81,7 @@ func BenchmarkDifference(b *testing.B) {
|
||||||
func BenchmarkKNN(b *testing.B) {
|
func BenchmarkKNN(b *testing.B) {
|
||||||
file, _ := os.Create(outKNN)
|
file, _ := os.Create(outKNN)
|
||||||
f := NewKNN(io.WriteCloser(file), KNNMinArea, KNNThreshold, KNNHistory, KNNKernel, debug, motionInterval, motionDownscaling)
|
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 n := 0; n < b.N; n++ {
|
||||||
for _, x := range testPackets {
|
for _, x := range testPackets {
|
||||||
f.Write(x)
|
f.Write(x)
|
||||||
|
@ -92,7 +92,7 @@ func BenchmarkKNN(b *testing.B) {
|
||||||
func BenchmarkMOG(b *testing.B) {
|
func BenchmarkMOG(b *testing.B) {
|
||||||
file, _ := os.Create(outMOG)
|
file, _ := os.Create(outMOG)
|
||||||
f := NewMOG(io.WriteCloser(file), MOGMinArea, MOGThreshold, MOGHistory, debug, motionInterval, motionDownscaling)
|
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 n := 0; n < b.N; n++ {
|
||||||
for _, x := range testPackets {
|
for _, x := range testPackets {
|
||||||
f.Write(x)
|
f.Write(x)
|
||||||
|
|
Loading…
Reference in New Issue