Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to always use the latest glibc's bench-malloc-thread program #4

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Update to use the latest glibc's bench-malloc-thread program
  • Loading branch information
ElectricRCAircraftGuy committed Jun 27, 2021
commit a45992969a09e69fd857a65d845dda35bdd4a162
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ endif
ifdef NUMPROC
parallel_flags := -j$(NUMPROC)
else
# default value
parallel_flags := -j4
# default value: pull from the max number of hardware processes: `nproc` cmd output; ex: 8
parallel_flags := -j$(nproc)
endif

ifdef POSTFIX
Expand Down Expand Up @@ -131,6 +131,7 @@ $(glibc_install_dir)/lib/libc.so.6:
cd $(glibc_build_dir) && \
../glibc/configure --prefix=$(glibc_install_dir) && \
make $(parallel_flags) && \
make bench-build $(parallel_flags) && \
make install
[ -x $(glibc_build_dir)/benchtests/bench-malloc-thread ] && echo "GNU libc benchmarking utility is ready!" || echo "Cannot find GNU libc benchmarking utility! Cannot collect benchmark results"

Expand All @@ -149,7 +150,6 @@ $(jemalloc_install_dir)/lib/libjemalloc.so:
( make install || true )

build:
$(MAKE) -C benchmark-src
ifeq ($(findstring glibc,$(implem_list)),glibc)
$(MAKE) $(glibc_install_dir)/lib/libc.so.6
endif
Expand Down
2 changes: 1 addition & 1 deletion bench_collect_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# Constants
#

internal_benchmark_util = 'benchmark-src/bench-malloc-thread'
internal_benchmark_util = 'glibc-build/benchtests/bench-malloc-thread'

glibc_install_dir = 'glibc-install'
tcmalloc_install_dir = 'tcmalloc-install'
Expand Down
25 changes: 0 additions & 25 deletions benchmark-src/Makefile

This file was deleted.

105 changes: 0 additions & 105 deletions benchmark-src/_itoa.h

This file was deleted.

185 changes: 0 additions & 185 deletions benchmark-src/bench-malloc-simple.c

This file was deleted.

Loading