Files
gocqlx/mapper_bench_test.go
2018-05-23 09:39:22 +02:00

23 lines
432 B
Go

// Copyright (C) 2017 ScyllaDB
// Use of this source code is governed by a ALv2-style
// license that can be found in the LICENSE file.
package gocqlx
import (
"strings"
"testing"
)
func BenchmarkSnakeCase(b *testing.B) {
for i := 0; i < b.N; i++ {
snakeCase(snakeTable[b.N%len(snakeTable)].N)
}
}
func BenchmarkToLower(b *testing.B) {
for i := 0; i < b.N; i++ {
strings.ToLower(snakeTable[b.N%len(snakeTable)].N)
}
}