<commit_before>#!/bin/sh

benches=( init_only push_scope push_pop_no_gc push_pop_gc small_stack_no_gc small_heap_alloc_no_gc small_heap_alloc_no_gc_2 large_alloc_no_gc_flat_obj small_local_store shallow_load deep_load small_alloc_gc small_flat_heap_alloc_gc large_flat_alloc_gc leak_many )

num=000

workdir=/home/djmally/src/penn/masters/thesis/rustoscript/french-press

for bench in "${benches[@]}"
do
    mkdir -p ./space/$bench
    (cd $workdir; valgrind --tool=massif --pages-as-heap=yes --time-unit=B --massif-out-file=$workdir/benches/results/space/$bench/$num cargo bench $bench)
    ms_print ./space/$bench/$num > ./space/$bench/pp_${num}
done<commit_msg>Remove --pages-as-heap from massif invocation<commit_after>#!/bin/sh

benches=( init_only push_scope push_pop_no_gc push_pop_gc small_stack_no_gc small_heap_alloc_no_gc small_heap_alloc_no_gc_2 large_alloc_no_gc_flat_obj small_local_store shallow_load deep_load small_alloc_gc small_flat_heap_alloc_gc large_flat_alloc_gc leak_many )

num=000

workdir=/home/djmally/src/penn/masters/thesis/rustoscript/french-press

for bench in "${benches[@]}"
do
    mkdir -p ./space/$bench
    (cd $workdir; valgrind --tool=massif --time-unit=B --massif-out-file=$workdir/benches/results/space/$bench/$num cargo bench $bench)
    ms_print ./space/$bench/$num > ./space/$bench/pp_${num}
done
{'fraction_non_alphanumeric': 0.11716417910447761, 'fraction_numerical': 0.005970149253731343, 'mean_word_length': 5.638613861386139, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7123270', 'n_tokens_mistral': 510, 'n_tokens_neox': 496, 'n_words': 84}