Skip to content

Instantly share code, notes, and snippets.

@gnzlbg
Created November 16, 2017 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnzlbg/c23123dcb5e781d653416b259f70c779 to your computer and use it in GitHub Desktop.
Save gnzlbg/c23123dcb5e781d653416b259f70c779 to your computer and use it in GitHub Desktop.
benchmark mallocx, smallocx, nallocx (flags = 5 = 32byte alignment)
test rt_even_1000000bytes_mallocx ... bench: 215 ns/iter (+/- 16)
test rt_even_1000000bytes_nallocx ... bench: 245 ns/iter (+/- 71)
test rt_even_1000000bytes_smallocx ... bench: 235 ns/iter (+/- 103)
test rt_even_100000bytes_mallocx ... bench: 229 ns/iter (+/- 149)
test rt_even_100000bytes_nallocx ... bench: 257 ns/iter (+/- 237)
test rt_even_100000bytes_smallocx ... bench: 233 ns/iter (+/- 183)
test rt_even_10000bytes_mallocx ... bench: 39 ns/iter (+/- 10)
test rt_even_10000bytes_nallocx ... bench: 47 ns/iter (+/- 42)
test rt_even_10000bytes_smallocx ... bench: 39 ns/iter (+/- 10)
test rt_even_1000bytes_mallocx ... bench: 33 ns/iter (+/- 28)
test rt_even_1000bytes_nallocx ... bench: 39 ns/iter (+/- 10)
test rt_even_1000bytes_smallocx ... bench: 33 ns/iter (+/- 31)
test rt_even_100bytes_mallocx ... bench: 32 ns/iter (+/- 30)
test rt_even_100bytes_nallocx ... bench: 39 ns/iter (+/- 26)
test rt_even_100bytes_smallocx ... bench: 32 ns/iter (+/- 21)
test rt_even_24bytes_mallocx ... bench: 37 ns/iter (+/- 33)
test rt_even_24bytes_nallocx ... bench: 40 ns/iter (+/- 14)
test rt_even_24bytes_smallocx ... bench: 33 ns/iter (+/- 15)
test rt_odd_1000000bytes_mallocx ... bench: 225 ns/iter (+/- 91)
test rt_odd_1000000bytes_nallocx ... bench: 248 ns/iter (+/- 65)
test rt_odd_1000000bytes_smallocx ... bench: 236 ns/iter (+/- 170)
test rt_odd_100000bytes_mallocx ... bench: 235 ns/iter (+/- 46)
test rt_odd_100000bytes_nallocx ... bench: 245 ns/iter (+/- 23)
test rt_odd_100000bytes_smallocx ... bench: 236 ns/iter (+/- 127)
test rt_odd_10000bytes_mallocx ... bench: 39 ns/iter (+/- 31)
test rt_odd_10000bytes_nallocx ... bench: 47 ns/iter (+/- 34)
test rt_odd_10000bytes_smallocx ... bench: 39 ns/iter (+/- 12)
test rt_odd_1000bytes_mallocx ... bench: 32 ns/iter (+/- 17)
test rt_odd_1000bytes_nallocx ... bench: 39 ns/iter (+/- 15)
test rt_odd_1000bytes_smallocx ... bench: 32 ns/iter (+/- 23)
test rt_odd_100bytes_mallocx ... bench: 32 ns/iter (+/- 8)
test rt_odd_100bytes_nallocx ... bench: 39 ns/iter (+/- 25)
test rt_odd_100bytes_smallocx ... bench: 32 ns/iter (+/- 13)
test rt_odd_24bytes_mallocx ... bench: 34 ns/iter (+/- 19)
test rt_odd_24bytes_nallocx ... bench: 39 ns/iter (+/- 22)
test rt_odd_24bytes_smallocx ... bench: 33 ns/iter (+/- 15)
test rt_pow2_1024bytes_mallocx ... bench: 32 ns/iter (+/- 4)
test rt_pow2_1024bytes_nallocx ... bench: 39 ns/iter (+/- 27)
test rt_pow2_1024bytes_smallocx ... bench: 32 ns/iter (+/- 14)
test rt_pow2_128bytes_mallocx ... bench: 32 ns/iter (+/- 9)
test rt_pow2_128bytes_nallocx ... bench: 40 ns/iter (+/- 23)
test rt_pow2_128bytes_smallocx ... bench: 32 ns/iter (+/- 8)
test rt_pow2_131072bytes_mallocx ... bench: 234 ns/iter (+/- 178)
test rt_pow2_131072bytes_nallocx ... bench: 253 ns/iter (+/- 105)
test rt_pow2_131072bytes_smallocx ... bench: 235 ns/iter (+/- 144)
test rt_pow2_16384bytes_mallocx ... bench: 223 ns/iter (+/- 118)
test rt_pow2_16384bytes_nallocx ... bench: 233 ns/iter (+/- 108)
test rt_pow2_16384bytes_smallocx ... bench: 222 ns/iter (+/- 38)
test rt_pow2_16bytes_mallocx ... bench: 34 ns/iter (+/- 15)
test rt_pow2_16bytes_nallocx ... bench: 40 ns/iter (+/- 28)
test rt_pow2_16bytes_smallocx ... bench: 33 ns/iter (+/- 17)
test rt_pow2_1bytes_mallocx ... bench: 33 ns/iter (+/- 22)
test rt_pow2_1bytes_nallocx ... bench: 40 ns/iter (+/- 31)
test rt_pow2_1bytes_smallocx ... bench: 33 ns/iter (+/- 24)
test rt_pow2_2048bytes_mallocx ... bench: 32 ns/iter (+/- 17)
test rt_pow2_2048bytes_nallocx ... bench: 39 ns/iter (+/- 16)
test rt_pow2_2048bytes_smallocx ... bench: 32 ns/iter (+/- 10)
test rt_pow2_256bytes_mallocx ... bench: 32 ns/iter (+/- 23)
test rt_pow2_256bytes_nallocx ... bench: 39 ns/iter (+/- 19)
test rt_pow2_256bytes_smallocx ... bench: 32 ns/iter (+/- 12)
test rt_pow2_2bytes_mallocx ... bench: 33 ns/iter (+/- 18)
test rt_pow2_2bytes_nallocx ... bench: 39 ns/iter (+/- 11)
test rt_pow2_2bytes_smallocx ... bench: 33 ns/iter (+/- 19)
test rt_pow2_32768bytes_mallocx ... bench: 229 ns/iter (+/- 171)
test rt_pow2_32768bytes_nallocx ... bench: 244 ns/iter (+/- 144)
test rt_pow2_32768bytes_smallocx ... bench: 231 ns/iter (+/- 183)
test rt_pow2_32bytes_mallocx ... bench: 33 ns/iter (+/- 15)
test rt_pow2_32bytes_nallocx ... bench: 39 ns/iter (+/- 33)
test rt_pow2_32bytes_smallocx ... bench: 33 ns/iter (+/- 23)
test rt_pow2_4096bytes_mallocx ... bench: 32 ns/iter (+/- 16)
test rt_pow2_4096bytes_nallocx ... bench: 40 ns/iter (+/- 27)
test rt_pow2_4096bytes_smallocx ... bench: 32 ns/iter (+/- 19)
test rt_pow2_4194304bytes_mallocx ... bench: 230 ns/iter (+/- 183)
test rt_pow2_4194304bytes_nallocx ... bench: 245 ns/iter (+/- 119)
test rt_pow2_4194304bytes_smallocx ... bench: 234 ns/iter (+/- 105)
test rt_pow2_4bytes_mallocx ... bench: 33 ns/iter (+/- 25)
test rt_pow2_4bytes_nallocx ... bench: 39 ns/iter (+/- 27)
test rt_pow2_4bytes_smallocx ... bench: 33 ns/iter (+/- 26)
test rt_pow2_512bytes_mallocx ... bench: 32 ns/iter (+/- 20)
test rt_pow2_512bytes_nallocx ... bench: 40 ns/iter (+/- 32)
test rt_pow2_512bytes_smallocx ... bench: 33 ns/iter (+/- 22)
test rt_pow2_64bytes_mallocx ... bench: 32 ns/iter (+/- 15)
test rt_pow2_64bytes_nallocx ... bench: 39 ns/iter (+/- 27)
test rt_pow2_64bytes_smallocx ... bench: 32 ns/iter (+/- 13)
test rt_pow2_65536bytes_mallocx ... bench: 231 ns/iter (+/- 125)
test rt_pow2_65536bytes_nallocx ... bench: 243 ns/iter (+/- 48)
test rt_pow2_65536bytes_smallocx ... bench: 233 ns/iter (+/- 156)
test rt_pow2_8192bytes_mallocx ... bench: 39 ns/iter (+/- 21)
test rt_pow2_8192bytes_nallocx ... bench: 47 ns/iter (+/- 37)
test rt_pow2_8192bytes_smallocx ... bench: 39 ns/iter (+/- 12)
test rt_pow2_8bytes_mallocx ... bench: 34 ns/iter (+/- 19)
test rt_pow2_8bytes_nallocx ... bench: 40 ns/iter (+/- 33)
test rt_pow2_8bytes_smallocx ... bench: 33 ns/iter (+/- 14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment