add "-full-scan" scan option to gonic scan

closes #20
This commit is contained in:
sentriz
2020-04-24 01:42:26 +01:00
parent 5bd57c42d5
commit b95f98ffcf
8 changed files with 695 additions and 684 deletions

View File

@@ -40,17 +40,17 @@ func resetTablesPause(db *db.DB, b *testing.B) {
func BenchmarkScanFresh(b *testing.B) {
for n := 0; n < b.N; n++ {
resetTablesPause(testScanner.db, b)
testScanner.Start()
testScanner.StartInc()
}
}
func BenchmarkScanIncremental(b *testing.B) {
// do a full scan and reset
testScanner.Start()
testScanner.StartInc()
b.ResetTimer()
// do the inc scans
for n := 0; n < b.N; n++ {
testScanner.Start()
testScanner.StartInc()
}
}