Skip to content

Commit

Permalink
Add benchmark to Nucleotide Count (#2820)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerfcsantos authored Jul 17, 2024
1 parent 9fbb9c3 commit 4b4015e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions exercises/practice/nucleotide-count/nucleotide_count_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ func TestCounts(t *testing.T) {
})
}
}

func BenchmarkCounts(b *testing.B) {
for i := 0; i < b.N; i++ {
for _, tc := range testCases {
dna := DNA(tc.strand)
dna.Counts()
}
}
}

0 comments on commit 4b4015e

Please sign in to comment.