<commit_before>#/bin/bash

# PARAMS="-i 1 -wi 1 -r 1 -p entityCount=4096"

mvn clean install
java -jar artemis-odb-0.4.0/target/microbenchmarks.jar -o results/artemis-odb-0.4.0.csv -rf csv $PARAMS
java -jar artemis-odb-0.6.5/target/microbenchmarks.jar -o results/artemis-odb-0.6.5.csv -rf csv $PARAMS
java -jar artemis-odb-0.7.0/target/microbenchmarks.jar -o results/artemis-odb-0.7.0.csv -rf csv $PARAMS
java -jar ashley-1.0.1/target/microbenchmarks.jar -o results/ashley-1.0.1.csv -rf csv $PARAMS
java -jar ashley-1.2.0/target/microbenchmarks.jar -o results/ashley-1.2.0.csv -rf csv $PARAMS
java -jar gdx-artemis-0.5.0/target/microbenchmarks.jar -o results/gdx-artemis-0.5.0.csv -rf csv $PARAMS
mvn -Pfast clean install -f artemis-odb-0.7.0/pom.xml 
java -jar artemis-odb-0.7.0/target/microbenchmarks.jar -o results/artemis-odb-0.7.0_fast.csv -rf csv $PARAMS

<commit_msg>improved shell script.<commit_after>#/bin/bash

# for debugging:
# PARAMS="-i 1 -wi 1 -r 1 -p entityCount=4096"

function run_bench() {
	java -jar $1/target/microbenchmarks.jar -rf json -rff results/$1.json $PARAMS | tee results/$1.log
}

mvn clean install
run_bench artemis-odb-0.4.0
run_bench artemis-odb-0.6.5
run_bench artemis-odb-0.7.0
run_bench ashley-1.0.1
run_bench ashley-1.2.0
run_bench gdx-artemis-0.5.0
mvn -Pfast clean install -f artemis-odb-0.7.0/pom.xml
run_bench artemis-odb-0.7.0

{'fraction_non_alphanumeric': 0.15244347191830782, 'fraction_numerical': 0.06272793581327499, 'mean_word_length': 3.425806451612903, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3901822', 'n_tokens_mistral': 653, 'n_tokens_neox': 589, 'n_words': 122}