diff options
Diffstat (limited to 'gateway/gateway_test.go')
-rw-r--r-- | gateway/gateway_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gateway/gateway_test.go b/gateway/gateway_test.go index 9621ab7d..677afde4 100644 --- a/gateway/gateway_test.go +++ b/gateway/gateway_test.go @@ -499,3 +499,13 @@ func TestIgnoreNicks(t *testing.T) { assert.Equalf(t, testcase.output, output, "case '%s' failed", testname) } } + +func BenchmarkTengo(b *testing.B) { + msg := &config.Message{Username: "user", Text: "blah testing", Account: "protocol.account", Channel: "mychannel"} + for n := 0; n < b.N; n++ { + err := modifyMessageTengo("bench.tengo", msg) + if err != nil { + return + } + } +} |