<commit_before>#!/bin/bash

configDir=/mnt/stress-test
requestsFileName=$1

if [[ -z "$requestsFileName" ]]; then
    requestsFileName=buying-session.json
fi

cd $configDir

threadTotal=40
testDuration=60s

wrk -t${threadTotal} -c${threadTotal} -d${testDuration} -s $configDir/wrk-config.lua http://127.0.0.1:80 -- "$configDir/requests/$requestsFileName"<commit_msg>[stress-test] use create-reserve-confirm test session by default<commit_after>#!/bin/bash

configDir=/mnt/stress-test
requestsFileName=$1

if [[ -z "$requestsFileName" ]]; then
    requestsFileName=create-reserve-confirm.json
fi

cd $configDir

threadTotal=60
testDuration=60s

wrk -t${threadTotal} -c${threadTotal} -d${testDuration} -s $configDir/wrk-config.lua http://127.0.0.1:80 -- "$configDir/requests/$requestsFileName"
{'fraction_non_alphanumeric': 0.1592920353982301, 'fraction_numerical': 0.03286978508217446, 'mean_word_length': 5.439024390243903, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7531154', 'n_tokens_mistral': 293, 'n_tokens_neox': 272, 'n_words': 47}