Skip to content

Instantly share code, notes, and snippets.

@Logarithmus
Created July 1, 2021 00:16
Show Gist options
  • Save Logarithmus/f45b36eb7ed7fccdb851bce5bd37c913 to your computer and use it in GitHub Desktop.
Save Logarithmus/f45b36eb7ed7fccdb851bce5bd37c913 to your computer and use it in GitHub Desktop.
libc-bench results on Intel i3-2328M (4) @ 2.200GHz
glibc:
b_malloc_sparse (0)
time: 0.031724926, virt: 39012, res: 38992, dirty: 38980
b_malloc_bubble (0)
time: 0.026215022, virt: 39384, res: 39252, dirty: 39240
b_malloc_tiny1 (0)
time: 0.000832856, virt: 708, res: 584, dirty: 572
b_malloc_tiny2 (0)
time: 0.000755927, virt: 708, res: 584, dirty: 572
b_malloc_big1 (0)
time: 0.010138930, virt: 184, res: 48, dirty: 36
b_malloc_big2 (0)
time: 0.005531823, virt: 80212, res: 8060, dirty: 8048
b_malloc_thread_stress (0)
time: 0.014842889, virt: 16828, res: 172, dirty: 160
b_malloc_thread_local (0)
time: 0.008227118, virt: 16828, res: 196, dirty: 184
b_string_strstr ("abcdefghijklmnopqrstuvwxyz")
time: 0.020869597, virt: 180, res: 36, dirty: 24
b_string_strstr ("azbycxdwevfugthsirjqkplomn")
time: 0.018466741, virt: 180, res: 36, dirty: 24
b_string_strstr ("aaaaaaaaaaaaaacccccccccccc")
time: 0.006296597, virt: 180, res: 36, dirty: 24
b_string_strstr ("aaaaaaaaaaaaaaaaaaaaaaaaac")
time: 0.006391381, virt: 180, res: 36, dirty: 24
b_string_strstr ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaac")
time: 0.006757941, virt: 180, res: 36, dirty: 24
b_string_memset (0)
time: 0.004190237, virt: 180, res: 36, dirty: 24
b_string_strchr (0)
time: 0.004933291, virt: 180, res: 36, dirty: 24
b_string_strlen (0)
time: 0.015324753, virt: 180, res: 36, dirty: 24
b_pthread_createjoin_serial1 (0)
time: 0.085482405, virt: 8372, res: 44, dirty: 32
b_pthread_createjoin_serial2 (0)
time: 0.111506095, virt: 32948, res: 84, dirty: 72
b_pthread_create_serial1 (0)
time: 0.092159784, virt: 40840, res: 20740, dirty: 20728
b_pthread_uselesslock (0)
time: 0.040435027, virt: 8372, res: 44, dirty: 32
b_utf8_bigbuf (0)
time: 0.037997576, virt: 312, res: 180, dirty: 168
b_utf8_onebyone (0)
time: 0.123196759, virt: 312, res: 180, dirty: 168
b_stdio_putcgetc (0)
time: 0.064214158, virt: 180, res: 40, dirty: 28
b_stdio_putcgetc_unlocked (0)
time: 0.048010694, virt: 180, res: 40, dirty: 28
b_regex_compile ("(a|b|c)*d*b")
time: 0.010217681, virt: 312, res: 188, dirty: 176
b_regex_search ("(a|b|c)*d*b")
time: 0.003953294, virt: 312, res: 188, dirty: 176
b_regex_search ("a{25}b")
time: 0.055456583, virt: 312, res: 244, dirty: 232
----------------------------------------
musl:
b_malloc_sparse (0)
time: 0.035096962, virt: 39388, res: 5356, dirty: 5356
b_malloc_bubble (0)
time: 0.033007865, virt: 39388, res: 6624, dirty: 6624
b_malloc_tiny1 (0)
time: 0.001624788, virt: 632, res: 124, dirty: 124
b_malloc_tiny2 (0)
time: 0.001082322, virt: 632, res: 632, dirty: 632
b_malloc_big1 (0)
time: 0.008792145, virt: 80092, res: 2572, dirty: 2572
b_malloc_big2 (0)
time: 0.006309964, virt: 80092, res: 14092, dirty: 14092
b_malloc_thread_stress (0)
time: 0.037005695, virt: 92, res: 92, dirty: 92
b_malloc_thread_local (0)
time: 0.035905653, virt: 92, res: 92, dirty: 92
b_string_strstr ("abcdefghijklmnopqrstuvwxyz")
time: 0.008152108, virt: 12, res: 12, dirty: 12
b_string_strstr ("azbycxdwevfugthsirjqkplomn")
time: 0.010513269, virt: 12, res: 12, dirty: 12
b_string_strstr ("aaaaaaaaaaaaaacccccccccccc")
time: 0.007650029, virt: 12, res: 12, dirty: 12
b_string_strstr ("aaaaaaaaaaaaaaaaaaaaaaaaac")
time: 0.007653339, virt: 12, res: 12, dirty: 12
b_string_strstr ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaac")
time: 0.009215208, virt: 12, res: 12, dirty: 12
b_string_memset (0)
time: 0.002765232, virt: 12, res: 12, dirty: 12
b_string_strchr (0)
time: 0.012043834, virt: 12, res: 12, dirty: 12
b_string_strlen (0)
time: 0.012611093, virt: 12, res: 12, dirty: 12
b_pthread_createjoin_serial1 (0)
time: 0.120009431, virt: 12, res: 12, dirty: 12
b_pthread_createjoin_serial2 (0)
time: 0.086765259, virt: 12, res: 12, dirty: 12
b_pthread_create_serial1 (0)
time: 0.066651808, virt: 50012, res: 10012, dirty: 10012
b_pthread_uselesslock (0)
time: 0.030773300, virt: 12, res: 12, dirty: 12
b_utf8_bigbuf (0)
time: 0.028602885, virt: 12, res: 12, dirty: 12
b_utf8_onebyone (0)
time: 0.043123420, virt: 12, res: 12, dirty: 12
b_stdio_putcgetc (0)
time: 0.070659097, virt: 12, res: 12, dirty: 12
b_stdio_putcgetc_unlocked (0)
time: 0.058652366, virt: 12, res: 12, dirty: 12
b_regex_compile ("(a|b|c)*d*b")
time: 0.012050023, virt: 24, res: 24, dirty: 24
b_regex_search ("(a|b|c)*d*b")
time: 0.027255258, virt: 24, res: 24, dirty: 24
b_regex_search ("a{25}b")
time: 0.058081308, virt: 28, res: 28, dirty: 28tg
----------------------------------
mimalloc:
b_malloc_sparse (0)
time: 0.043375912, virt: 42344, res: 40184, dirty: 40164
b_malloc_bubble (0)
time: 0.037442857, virt: 44684, res: 40184, dirty: 40164
b_malloc_tiny1 (0)
time: 0.052981073, virt: 864, res: 640, dirty: 620
b_malloc_tiny2 (0)
time: 0.006473613, virt: 984, res: 696, dirty: 676
b_malloc_big1 (0)
time: 0.065514483, virt: 106820, res: 98456, dirty: 98436
b_malloc_big2 (0)
time: 0.035770114, virt: 105884, res: 53148, dirty: 53128
b_malloc_thread_stress (0)
time: 0.035629101, virt: 18680, res: 1448, dirty: 1436
b_malloc_thread_local (0)
time: 0.022801682, virt: 18680, res: 1548, dirty: 1536
b_string_strstr ("abcdefghijklmnopqrstuvwxyz")
time: 0.021035017, virt: 4420, res: 456, dirty: 436
b_string_strstr ("azbycxdwevfugthsirjqkplomn")
time: 0.018724590, virt: 4420, res: 456, dirty: 436
b_string_strstr ("aaaaaaaaaaaaaacccccccccccc")
time: 0.006319119, virt: 4420, res: 456, dirty: 436
b_string_strstr ("aaaaaaaaaaaaaaaaaaaaaaaaac")
time: 0.006607409, virt: 4420, res: 456, dirty: 436
b_string_strstr ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaac")
time: 0.006647499, virt: 4420, res: 564, dirty: 544
b_string_memset (0)
time: 0.003501473, virt: 4420, res: 680, dirty: 660
b_string_strchr (0)
time: 0.004437192, virt: 4420, res: 680, dirty: 660
b_string_strlen (0)
time: 0.013675740, virt: 4420, res: 680, dirty: 660
b_pthread_createjoin_serial1 (0)
time: 0.082121688, virt: 8576, res: 160, dirty: 144
b_pthread_createjoin_serial2 (0)
time: 0.108900736, virt: 33152, res: 232, dirty: 216
b_pthread_create_serial1 (0)
time: 0.093115178, virt: 41164, res: 20932, dirty: 20916
b_pthread_uselesslock (0)
time: 0.039736565, virt: 8576, res: 160, dirty: 144
b_utf8_bigbuf (0)
time: 0.040148217, virt: 9340, res: 3012, dirty: 2992
b_utf8_onebyone (0)
time: 0.130261776, virt: 5252, res: 960, dirty: 940
b_stdio_putcgetc (0)
time: 0.072061318, virt: 324, res: 140, dirty: 120
b_stdio_putcgetc_unlocked (0)
time: 0.039932371, virt: 324, res: 140, dirty: 120
b_regex_compile ("(a|b|c)*d*b")
time: 0.019456126, virt: 1344, res: 816, dirty: 796
b_regex_search ("(a|b|c)*d*b")
time: 0.004537415, virt: 1404, res: 532, dirty: 512
b_regex_search ("a{25}b")
time: 0.052281020, virt: 1404, res: 556, dirty: 536
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment