filter: benchmark: change function calls to suit rebase

This commit is contained in:
Ella Pietraroia 2020-02-07 16:02:54 +10:30
parent 87498f125d
commit 85ca6014c4
1 changed files with 4 additions and 5 deletions

View File

@ -29,7 +29,6 @@ import (
)
const (
debug = false
motionDownscaling = 1
motionInterval = 1
@ -56,7 +55,7 @@ func (d *d) Close() error { return nil }
func BenchmarkBasic(b *testing.B) {
buffer := &d{}
f := NewBasic(buffer, debug, BasicThreshold, BasicPixels)
f := NewBasic(buffer, BasicThreshold, BasicPixels)
b.Log("Frames: ", len(testPackets))
for n := 0; n < b.N; n++ {
for _, x := range testPackets {
@ -70,7 +69,7 @@ func BenchmarkBasic(b *testing.B) {
func BenchmarkDifference(b *testing.B) {
buffer := &d{}
f := NewDifference(buffer, debug, DiffThreshold)
f := NewDifference(buffer, DiffThreshold)
b.Log("Frames: ", len(testPackets))
for n := 0; n < b.N; n++ {
for _, x := range testPackets {
@ -84,7 +83,7 @@ func BenchmarkDifference(b *testing.B) {
func BenchmarkKNN(b *testing.B) {
buffer := &d{}
f := NewKNN(buffer, KNNMinArea, KNNThreshold, KNNHistory, KNNKernel, debug, motionInterval, motionDownscaling)
f := NewKNN(buffer, KNNMinArea, KNNThreshold, KNNHistory, KNNKernel, motionInterval, motionDownscaling)
b.Log("Frames: ", len(testPackets))
for n := 0; n < b.N; n++ {
for _, x := range testPackets {
@ -98,7 +97,7 @@ func BenchmarkKNN(b *testing.B) {
func BenchmarkMOG(b *testing.B) {
buffer := &d{}
f := NewMOG(buffer, MOGMinArea, MOGThreshold, MOGHistory, debug, motionInterval, motionDownscaling)
f := NewMOG(buffer, MOGMinArea, MOGThreshold, MOGHistory, motionInterval, motionDownscaling)
b.Log("Frames: ", len(testPackets))
for n := 0; n < b.N; n++ {
for _, x := range testPackets {