github.com/egonelbre/exp@v0.0.0-20240430123955-ed1d3aa93911/chem/element/matcher_test.go (about)

     1  package element
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func BenchmarkCountMatches(t *testing.B) {
     8  	var matcher Matcher
     9  	for i := 0; i < t.N; i++ {
    10  		matcher.Init("amputations")
    11  		matcher.Run()
    12  	}
    13  }