Skip to content

Commit dcc97e0

Browse files
authored
Update convert_bench_test.go
1 parent 93fc203 commit dcc97e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/xstring/convert_bench_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
)
77

88
// Test the performance of the standard conversion string()
9-
func Benchmark_NormalFromBytes(b *testing.B) {
9+
func Benchmark_StdFromBytes(b *testing.B) {
1010
x := []byte("Hello world! Hello world! Hello world!")
1111
for i := 0; i < b.N; i++ {
1212
_ = string(x)
@@ -22,7 +22,7 @@ func Benchmark_FromBytes(b *testing.B) {
2222
}
2323

2424
// Test the performance of standard conversion []byte
25-
func Benchmark_NormalToBytes(b *testing.B) {
25+
func Benchmark_StdToBytes(b *testing.B) {
2626
x := "Hello world! Hello world! Hello world!"
2727
for i := 0; i < b.N; i++ {
2828
_ = []byte(x)

0 commit comments

Comments
 (0)