mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/bytesutil: go fmt
after 2ec17bed2c
This commit is contained in:
parent
e6e30667b1
commit
a24e08e6de
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ func BenchmarkToUnsafeString(b *testing.B) {
|
||||||
buf := []byte("foobarbaz abcde fafdsfds")
|
buf := []byte("foobarbaz abcde fafdsfds")
|
||||||
b.ReportAllocs()
|
b.ReportAllocs()
|
||||||
b.SetBytes(int64(len(buf)))
|
b.SetBytes(int64(len(buf)))
|
||||||
b.RunParallel(func (pb *testing.PB) {
|
b.RunParallel(func(pb *testing.PB) {
|
||||||
n := 0
|
n := 0
|
||||||
for pb.Next() {
|
for pb.Next() {
|
||||||
for i := range buf {
|
for i := range buf {
|
||||||
|
@ -25,7 +25,7 @@ func BenchmarkToUnsafeBytes(b *testing.B) {
|
||||||
s := "foobarbaz abcde fafdsfds"
|
s := "foobarbaz abcde fafdsfds"
|
||||||
b.ReportAllocs()
|
b.ReportAllocs()
|
||||||
b.SetBytes(int64(len(s)))
|
b.SetBytes(int64(len(s)))
|
||||||
b.RunParallel(func (pb *testing.PB) {
|
b.RunParallel(func(pb *testing.PB) {
|
||||||
n := 0
|
n := 0
|
||||||
for pb.Next() {
|
for pb.Next() {
|
||||||
for i := range s {
|
for i := range s {
|
||||||
|
|
Loading…
Reference in a new issue