<commit_before>#!/bin/bash

#
# Call from $StroikaRoot
#
#	Examples:
#		ScriptsLib/RunPerformanceRegressionTests.sh
#		EXE=Builds/gcc-6.1.0-release-c++17/Test47 ScriptsLib/RunPerformanceRegressionTests.sh
#		EXE=Builds/Release/Test47 CONFIG_LABEL_IN_OUTPUT=FRED ScriptsLib/RunPerformanceRegressionTests.sh
#		MULTIPLIER=1 ScriptsLib/RunPerformanceRegressionTests.sh
#
VER=`ScriptsLib/ExtractVersionInformation.sh STROIKA_VERSION FullVersionString`
MULTIPLIER=${MULTIPLIER-15}
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ] ; then
    # Do something under GNU/Linux platform
    EXE=${EXE-"Builds/gcc-6.1.0-release-c++17/Test47"}
    CONFIG_LABEL_IN_OUTPUT="linux-gcc-6.1.0-x64"
    CMDRUN_PREFIX="nice -10 taskset -c 0 "
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ] ; then
    # Do something under Windows NT platform
    EXE=${EXE-"Builds/Release-U-32/Test47/Test47"}
    CONFIG_LABEL_IN_OUTPUT="x86-vs2k15"
    CMDRUN_PREFIX=""
elif [ "$(expr substr $(uname -s) 1 6)" == "CYGWIN" ] ; then
    # Do something under Windows NT platform
    EXE=${EXE-"Builds/Release-U-32/Test47/Test47"}
    CONFIG_LABEL_IN_OUTPUT="x86-vs2k15"
    CMDRUN_PREFIX=""
else
    echo "WARNING - unrecognized OS"
fi


echo -n "$CMDRUN_PREFIX" "$EXE --x $MULTIPLIER --show > Tests/HistoricalPerformanceRegressionTestResults/PerformanceDump-$VER-$CONFIG_LABEL_IN_OUTPUT.txt ... "
$CMDRUN_PREFIX $EXE --x $MULTIPLIER --show > Tests/HistoricalPerformanceRegressionTestResults/PerformanceDump-$VER-$CONFIG_LABEL_IN_OUTPUT.txt
echo "done"
<commit_msg>changed regression test # to 48<commit_after>#!/bin/bash

#
# Call from $StroikaRoot
#
#	Examples:
#		ScriptsLib/RunPerformanceRegressionTests.sh
#		EXE=Builds/gcc-6.1.0-release-c++17/Test48 ScriptsLib/RunPerformanceRegressionTests.sh
#		EXE=Builds/Release/Test48 CONFIG_LABEL_IN_OUTPUT=FRED ScriptsLib/RunPerformanceRegressionTests.sh
#		MULTIPLIER=1 ScriptsLib/RunPerformanceRegressionTests.sh
#
VER=`ScriptsLib/ExtractVersionInformation.sh STROIKA_VERSION FullVersionString`
MULTIPLIER=${MULTIPLIER-15}
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ] ; then
    # Do something under GNU/Linux platform
    EXE=${EXE-"Builds/gcc-6.1.0-release-c++17/Test48"}
    CONFIG_LABEL_IN_OUTPUT="linux-gcc-6.1.0-x64"
    CMDRUN_PREFIX="nice -10 taskset -c 0 "
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ] ; then
    # Do something under Windows NT platform
    EXE=${EXE-"Builds/Release-U-32/Test48/Test48"}
    CONFIG_LABEL_IN_OUTPUT="x86-vs2k15"
    CMDRUN_PREFIX=""
elif [ "$(expr substr $(uname -s) 1 6)" == "CYGWIN" ] ; then
    # Do something under Windows NT platform
    EXE=${EXE-"Builds/Release-U-32/Test48/Test48"}
    CONFIG_LABEL_IN_OUTPUT="x86-vs2k15"
    CMDRUN_PREFIX=""
else
    echo "WARNING - unrecognized OS"
fi


echo -n "$CMDRUN_PREFIX" "$EXE --x $MULTIPLIER --show > Tests/HistoricalPerformanceRegressionTestResults/PerformanceDump-$VER-$CONFIG_LABEL_IN_OUTPUT.txt ... "
$CMDRUN_PREFIX $EXE --x $MULTIPLIER --show > Tests/HistoricalPerformanceRegressionTestResults/PerformanceDump-$VER-$CONFIG_LABEL_IN_OUTPUT.txt
echo "done"

{'fraction_non_alphanumeric': 0.13783085861846353, 'fraction_numerical': 0.03808908973531311, 'mean_word_length': 4.825187969924812, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2547299', 'n_tokens_mistral': 1251, 'n_tokens_neox': 1141, 'n_words': 196}