Skip to content

v0.1.2

Compare
Choose a tag to compare
@spaskalev spaskalev released this 15 Jul 13:59
· 225 commits to main since this release
  • Numerous performance improvements
  • Fixed two bugs related to downsizing the arena

Debug build performance of buddy_brk.c vs glibc's release malloc on stress-ng.

Note that buddy_brk.c does not return memory to the kernel, so take it with a grain of salt. Still, it is less than twice as slow as glibc now :)

$ env LD_PRELOAD=./buddy_shared.so ~/dev/stress-ng/./stress-ng --malloc 1 --malloc-ops 100000 2>&1
stress-ng: info:  [2896] defaulting to a 86400 second (1 day, 0.00 secs) run per stressor
stress-ng: info:  [2896] dispatching hogs: 1 malloc
stress-ng: info:  [2896] successful run completed in 0.16s
$ env ~/dev/stress-ng/./stress-ng --malloc 1 --malloc-ops 100000 2>&1
stress-ng: info:  [2900] defaulting to a 86400 second (1 day, 0.00 secs) run per stressor
stress-ng: info:  [2900] dispatching hogs: 1 malloc
stress-ng: info:  [2900] successful run completed in 0.11s