We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93fc203 commit dcc97e0Copy full SHA for dcc97e0
internal/xstring/convert_bench_test.go
@@ -6,7 +6,7 @@ import (
6
)
7
8
// Test the performance of the standard conversion string()
9
-func Benchmark_NormalFromBytes(b *testing.B) {
+func Benchmark_StdFromBytes(b *testing.B) {
10
x := []byte("Hello world! Hello world! Hello world!")
11
for i := 0; i < b.N; i++ {
12
_ = string(x)
@@ -22,7 +22,7 @@ func Benchmark_FromBytes(b *testing.B) {
22
}
23
24
// Test the performance of standard conversion []byte
25
-func Benchmark_NormalToBytes(b *testing.B) {
+func Benchmark_StdToBytes(b *testing.B) {
26
x := "Hello world! Hello world! Hello world!"
27
28
_ = []byte(x)
0 commit comments