diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-28 23:00:10 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-28 23:00:10 +0200 |
commit | 974a1c99ce30e20a0353e5ba7623e46164d88640 (patch) | |
tree | 6cf7a19ef663b802eba1fadcb272d83c289e4995 /bytesconv_64_test.go | |
parent | Added timing test for AppendUint (diff) | |
download | fasthttp-974a1c99ce30e20a0353e5ba7623e46164d88640.tar.gz fasthttp-974a1c99ce30e20a0353e5ba7623e46164d88640.tar.bz2 fasthttp-974a1c99ce30e20a0353e5ba7623e46164d88640.zip |
Optimized AppendUint by using stack-based buffer instead of uintBufPool
Diffstat (limited to 'bytesconv_64_test.go')
-rw-r--r-- | bytesconv_64_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bytesconv_64_test.go b/bytesconv_64_test.go index eacc686..62a7588 100644 --- a/bytesconv_64_test.go +++ b/bytesconv_64_test.go @@ -6,6 +6,12 @@ import ( "testing" ) +func TestAppendUint(t *testing.T) { + testAppendUint(t, 0) + testAppendUint(t, 123) + testAppendUint(t, 0x7fffffffffffffff) +} + func TestReadHexIntSuccess(t *testing.T) { testReadHexIntSuccess(t, "0", 0) testReadHexIntSuccess(t, "fF", 0xff) |