<commit_before>#!/bin/bash

export GOPATH=`pwd`

./build.sh

echo "qserver"
go test qserver --bench=. 

./qserver --port=4242 &
PID=$!

echo "client"
go test qclient --port=4242 --host=localhost --bench=. 

echo "killing qserver"
kill $PID

echo "done"
<commit_msg>Add benchmark time to restrict long-running benchmarks<commit_after>#!/bin/bash

export GOPATH=`pwd`

./build.sh

echo "qserver"
# BenchmarkRead runs too long if --benchtime > ~0.2
go test qserver --bench=. --benchtime=0.2

./qserver --port=4242 &
PID=$!

echo "qclient"
go test qclient --port=4242 --host=localhost --bench=. --benchtime=0.5

echo "killing qserver"
kill $PID

echo "done"

{'fraction_non_alphanumeric': 0.16055045871559634, 'fraction_numerical': 0.03363914373088685, 'mean_word_length': 3.6785714285714284, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1618112', 'n_tokens_mistral': 272, 'n_tokens_neox': 242, 'n_words': 71}