aboutsummaryrefslogtreecommitdiff
path: root/bytesconv_timing_test.go
diff options
context:
space:
mode:
authorGravatar ZYunH <zyunhjob@163.com> 2019-09-19 22:31:32 +0800
committerGravatar Kirill Danshin <kirill@danshin.pro> 2019-09-20 06:33:34 +0300
commitbe93fbd21b9cb2641736175bb76c7d929079141c (patch)
treeb3da2f350bb015227f7826786d69e424fdf2f901 /bytesconv_timing_test.go
parentUse 0xf instead of 15 (diff)
downloadfasthttp-be93fbd21b9cb2641736175bb76c7d929079141c.tar.gz
fasthttp-be93fbd21b9cb2641736175bb76c7d929079141c.tar.bz2
fasthttp-be93fbd21b9cb2641736175bb76c7d929079141c.zip
Add lowerhex
Diffstat (limited to 'bytesconv_timing_test.go')
-rw-r--r--bytesconv_timing_test.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/bytesconv_timing_test.go b/bytesconv_timing_test.go
index f817cf4..b747181 100644
--- a/bytesconv_timing_test.go
+++ b/bytesconv_timing_test.go
@@ -65,18 +65,6 @@ func BenchmarkAppendIPv4(b *testing.B) {
})
}
-func BenchmarkInt2HexByte(b *testing.B) {
- buf := []int{1, 0xf, 2, 0xd, 3, 0xe, 4, 0xa, 5, 0xb, 6, 0xc, 7, 0xf, 0, 0xf, 6, 0xd, 9, 8, 4, 0x5}
- b.RunParallel(func(pb *testing.PB) {
- var n int
- for pb.Next() {
- for _, n = range buf {
- int2hexbyte(n)
- }
- }
- })
-}
-
func BenchmarkWriteHexInt(b *testing.B) {
b.RunParallel(func(pb *testing.PB) {
var w bytebufferpool.ByteBuffer