diff options
author | ZYunH <zyunhjob@163.com> | 2019-09-19 22:31:32 +0800 |
---|---|---|
committer | Kirill Danshin <kirill@danshin.pro> | 2019-09-20 06:33:34 +0300 |
commit | be93fbd21b9cb2641736175bb76c7d929079141c (patch) | |
tree | b3da2f350bb015227f7826786d69e424fdf2f901 /bytesconv_timing_test.go | |
parent | Use 0xf instead of 15 (diff) | |
download | fasthttp-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.go | 12 |
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 |