<commit_before># GCOV_FLAGS = -fprofile-arcs -ftest-coverage
PROF_FLAGS = -pg
# OPTFLAGS = -O2
CFLAGS = -Wall -W $(OPTFLAGS) -g $(GCOV_FLAGS) $(PROF_FLAGS) -Werror -fPIC
LDFLAGS = $(OPTFLAGS) -g $(GCOV_FLAGS) $(PROF_FLAGS) 
DTOOL = valgrind --quiet --error-exitcode=1

# When debugging, try: valgrind --show-reachable=yes --leak-check=full ./brt-test


default: bins
BINS =  pma-test brt-test cachetable-test brt-serialize-test randbrt randdb4 hashtest ybt-test
bins: $(BINS)
check: bins
	$(DTOOL) ./ybt-test
	$(DTOOL) ./pma-test
	$(DTOOL) ./cachetable-test
	$(DTOOL) ./brt-serialize-test
	$(DTOOL) ./brt-test
	$(DTOOL) ./hashtest
#	./mdict-test

# pma: PROF_FLAGS=-fprofile-arcs -ftest-coverage<commit_msg>Add the benchmark test<commit_after># GCOV_FLAGS = -fprofile-arcs -ftest-coverage
# PROF_FLAGS = -pg
OPTFLAGS = -O2
CFLAGS = -Wall -W $(OPTFLAGS) -g $(GCOV_FLAGS) $(PROF_FLAGS) -Werror -fPIC
LDFLAGS = $(OPTFLAGS) -g $(GCOV_FLAGS) $(PROF_FLAGS) 
DTOOL = valgrind --quiet --error-exitcode=1

# When debugging, try: valgrind --show-reachable=yes --leak-check=full ./brt-test


default: bins
BINS =  pma-test brt-test cachetable-test brt-serialize-test randbrt randdb4 hashtest ybt-test
bins: $(BINS)
check: bins
	$(DTOOL) ./ybt-test
	$(DTOOL) ./pma-test
	$(DTOOL) ./cachetable-test
	$(DTOOL) ./brt-serialize-test
	$(DTOOL) ./brt-test
	$(DTOOL) ./hashtest
#	./mdict-test

# pma: PROF_FLAGS=-fprofile-arcs -ftest-coverage
{'fraction_non_alphanumeric': 0.17006324666198172, 'fraction_numerical': 0.004216444132115249, 'mean_word_length': 3.910344827586207, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4069290', 'n_tokens_mistral': 609, 'n_tokens_neox': 584, 'n_words': 130}