Skip to content

Commit

Permalink
tests: radio ID: remove useless benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
USA-RedDragon committed Dec 3, 2023
1 parent 940f25a commit 1adfd57
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
9 changes: 0 additions & 9 deletions internal/repeaterdb/repeaterdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,6 @@ func TestUpdate(t *testing.T) {
})
}

func BenchmarkRepeaterDB(b *testing.B) {
for i := 0; i < b.N; i++ {
UnpackDB()
repeaterDB.isInited.Store(false)
repeaterDB.isDone.Store(false)
repeaterDB.dmrRepeaters.Store(dmrRepeaterDB{})
}
}

func BenchmarkRepeaterSearch(b *testing.B) {
// The first run will decompress the database, so we'll do that first
b.StopTimer()
Expand Down
9 changes: 0 additions & 9 deletions internal/userdb/userdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,6 @@ func TestUpdate(t *testing.T) {
})
}

func BenchmarkUserDB(b *testing.B) {
for i := 0; i < b.N; i++ {
UnpackDB()
userDB.isInited.Store(false)
userDB.isDone.Store(false)
userDB.dmrUsers.Store(dmrUserDB{})
}
}

func BenchmarkUserSearch(b *testing.B) {
// The first run will decompress the database, so we'll do that first
b.StopTimer()
Expand Down

0 comments on commit 1adfd57

Please sign in to comment.