strings

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

$ go test -bench='^\QBenchmarkToBytes\E$' -benchtime=5s -count=3
goos: darwin
goarch: amd64
pkg: pkg/x/strings
cpu: Intel(R) Core(TM) i3-8100B CPU @ 3.60GHz
BenchmarkToBytes-4      1000000000               0.2804 ns/op
BenchmarkToBytes-4      1000000000               0.2790 ns/op
BenchmarkToBytes-4      1000000000               0.2789 ns/op
PASS
ok      pkg/x/strings   1.022s
$ go test -bench='^\QBenchmarkBytes\E$' -benchtime=5s -count=3
goos: darwin
goarch: amd64
pkg: pkg/x/strings
cpu: Intel(R) Core(TM) i3-8100B CPU @ 3.60GHz
BenchmarkBytes-4        1000000000               5.075 ns/op
BenchmarkBytes-4        1000000000               5.057 ns/op
BenchmarkBytes-4        1000000000               5.056 ns/op
PASS
ok      pkg/x/strings   16.902s

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBytes

func ToBytes(str string) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL