Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion benchmark.cfg.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ install_only=False
list_tests=False
concurrency_levels=[8, 16, 32, 64, 128, 256]
query_levels=[1, 5,10,15,20]
threads=8
mode=benchmark
sleep=60
test=None
Expand Down
7 changes: 3 additions & 4 deletions frameworks/C++/cutelyst/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cd ${CROOT}/benchmarks
# build
export CMAKE_PREFIX_PATH=/opt/qt${QT_VERSION_MM}:${CROOT}
cmake $TROOT -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$CROOT
make -j $MAX_THREADS
make -j $CPU_COUNT

if [ -n "${UWSGI}" ]; then
cp -v ${TROOT}/config/config_socket.ini ${CROOT}/config.ini
Expand All @@ -47,9 +47,9 @@ sed -i "s|SendDate=.*|SendDate=${SEND_DATE}|g" ${CROOT}/config.ini
export LD_LIBRARY_PATH=/opt/qt${QT_VERSION_MM}/lib:${CROOT}/lib/x86_64-linux-gnu/

if [ -n "${UWSGI}" ]; then
uwsgi --ini ${CROOT}/config.ini --plugin ${CROOT}/lib/uwsgi/plugins/cutelyst_plugin.so --cutelyst-app ${CROOT}/benchmarks/src/libcutelyst_benchmarks.so ${PROCESS_OR_THREAD} $MAX_THREADS &
uwsgi --ini ${CROOT}/config.ini --plugin ${CROOT}/lib/uwsgi/plugins/cutelyst_plugin.so --cutelyst-app ${CROOT}/benchmarks/src/libcutelyst_benchmarks.so ${PROCESS_OR_THREAD} $CPU_COUNT &
else
${CROOT}/bin/cutelyst-wsgi --ini ${CROOT}/config.ini -a ${CROOT}/benchmarks/src/libcutelyst_benchmarks.so ${PROCESS_OR_THREAD} $MAX_THREADS --socket-timeout 0 ${BALANCER} &
${CROOT}/bin/cutelyst-wsgi --ini ${CROOT}/config.ini -a ${CROOT}/benchmarks/src/libcutelyst_benchmarks.so ${PROCESS_OR_THREAD} $CPU_COUNT --socket-timeout 0 ${BALANCER} &
fi

# configure Nginx
Expand All @@ -59,4 +59,3 @@ if [ -n "${NGINX}" ]; then
sed -i "s|include .*/conf/uwsgi_params;|include ${NGINX_HOME}/conf/uwsgi_params;|g" ${CROOT}/nginx.conf
nginx -c ${CROOT}/nginx.conf
fi

2 changes: 1 addition & 1 deletion frameworks/C++/poco/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
fw_depends poco

g++-4.8 -O3 -DNDEBUG -std=c++0x -o poco benchmark.cpp -I$POCO_HOME/Foundation/include -I$POCO_HOME/Util/include -I$POCO_HOME/Net/include -L$POCO_HOME/lib/Linux/x86_64 -lPocoNet -lPocoUtil -lPocoFoundation -lPocoXML -lPocoJSON
./poco 8080 $MAX_THREADS
./poco 8080 $CPU_COUNT

2 changes: 1 addition & 1 deletion frameworks/C++/silicon/setup_mhd_epoll_mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ cd build
cmake .. -DCMAKE_CXX_COMPILER=clang++-3.9
make silicon_epoll_mysql

$TROOT/build/silicon_epoll_mysql ${DBHOST} 8080 ${MAX_THREADS} &
$TROOT/build/silicon_epoll_mysql ${DBHOST} 8080 ${CPU_COUNT} &
2 changes: 1 addition & 1 deletion frameworks/C++/silicon/setup_mhd_tpc_mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ cd build
cmake .. -DCMAKE_CXX_COMPILER=clang++-3.9
make silicon_tpc_mysql

$TROOT/build/silicon_tpc_mysql ${DBHOST} 8080 ${MAX_THREADS} &
$TROOT/build/silicon_tpc_mysql ${DBHOST} 8080 ${CPU_COUNT} &
2 changes: 1 addition & 1 deletion frameworks/C++/ulib/setup_elasticsearch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

fw_depends ulib

MAX_THREADS=$(( 2 * $MAX_THREADS ))
MAX_THREADS=$(( 2 * $CPU_COUNT ))

# 1. Change ULib Server (userver_tcp) configuration
sed -i "s|TCP_LINGER_SET .*|TCP_LINGER_SET 0|g" $IROOT/ULib/benchmark.cfg
Expand Down
4 changes: 2 additions & 2 deletions frameworks/C++/ulib/setup_json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ fw_depends ulib

# Travis is broken
if [ "$TRAVIS" != "true" ]; then
MAX_THREADS=$(( 3 * $MAX_THREADS / 2 ))
MAX_THREADS=$(( 3 * $CPU_COUNT / 2 ))
else
MAX_THREADS=$(( 2 * $MAX_THREADS ))
MAX_THREADS=$(( 2 * $CPU_COUNT ))
fi

# 1. Change ULib Server (userver_tcp) configuration
Expand Down
4 changes: 2 additions & 2 deletions frameworks/C++/ulib/setup_json_extra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ fw_depends ulib

# Travis is broken
if [ "$TRAVIS" != "true" ]; then
MAX_THREADS=$(( 3 * $MAX_THREADS ))
MAX_THREADS=$(( 3 * $CPU_COUNT ))
else
MAX_THREADS=$(( 2 * $MAX_THREADS ))
MAX_THREADS=$(( 2 * $CPU_COUNT ))
fi

# 1. Change ULib Server (userver_tcp) configuration
Expand Down
2 changes: 1 addition & 1 deletion frameworks/C++/ulib/setup_json_large.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

fw_depends ulib

MAX_THREADS=$(( 2 * $MAX_THREADS ))
MAX_THREADS=$(( 2 * $CPU_COUNT ))

# 1. Change ULib Server (userver_tcp) configuration
sed -i "s|TCP_LINGER_SET .*|TCP_LINGER_SET 0|g" $IROOT/ULib/benchmark.cfg
Expand Down
4 changes: 2 additions & 2 deletions frameworks/C++/ulib/setup_json_medium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ fw_depends ulib

# Travis is broken
if [ "$TRAVIS" != "true" ]; then
MAX_THREADS=$(( 3 * $MAX_THREADS / 2 ))
MAX_THREADS=$(( 3 * $CPU_COUNT / 2 ))
else
MAX_THREADS=$(( 2 * $MAX_THREADS ))
MAX_THREADS=$(( 2 * $CPU_COUNT ))
fi

# 1. Change ULib Server (userver_tcp) configuration
Expand Down
4 changes: 2 additions & 2 deletions frameworks/C++/ulib/setup_mongodb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ fw_depends mongodb ulib

# Travis is broken
if [ "$TRAVIS" != "true" ]; then
MAX_THREADS=$(( 3 * $MAX_THREADS / 2 ))
MAX_THREADS=$(( 3 * $CPU_COUNT / 2 ))
else
MAX_THREADS=$(( 2 * $MAX_THREADS ))
MAX_THREADS=$(( 2 * $CPU_COUNT ))
fi

# 1. Change ULib Server (userver_tcp) configuration
Expand Down
4 changes: 2 additions & 2 deletions frameworks/C++/ulib/setup_mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ fw_depends mysql ulib

# Travis is broken
if [ "$TRAVIS" != "true" ]; then
MAX_THREADS=$(( 3 * $MAX_THREADS / 2 ))
MAX_THREADS=$(( 3 * $CPU_COUNT / 2 ))
else
MAX_THREADS=$(( 2 * $MAX_THREADS ))
MAX_THREADS=$(( 2 * $CPU_COUNT ))
fi

# 1. Change ULib Server (userver_tcp) configuration
Expand Down
4 changes: 2 additions & 2 deletions frameworks/C++/ulib/setup_plaintext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ fw_depends ulib

# Travis is broken
if [ "$TRAVIS" != "true" ]; then
MAX_THREADS=$(( 3 * $MAX_THREADS / 2 ))
MAX_THREADS=$(( 3 * $CPU_COUNT / 2 ))
else
MAX_THREADS=$(( 2 * $MAX_THREADS ))
MAX_THREADS=$(( 2 * $CPU_COUNT ))
fi

# 1. Change ULib Server (userver_tcp) configuration
Expand Down
2 changes: 1 addition & 1 deletion frameworks/C++/ulib/setup_postgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

fw_depends postgresql ulib

MAX_THREADS=$(( 2 * $MAX_THREADS ))
MAX_THREADS=$(( 2 * $CPU_COUNT ))

# 1. Change ULib Server (userver_tcp) configuration
sed -i "s|TCP_LINGER_SET .*|TCP_LINGER_SET -2|g" $IROOT/ULib/benchmark.cfg
Expand Down
4 changes: 2 additions & 2 deletions frameworks/C++/ulib/setup_redis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ fw_depends ulib

# Travis is broken
if [ "$TRAVIS" != "true" ]; then
MAX_THREADS=$(( 3 * $MAX_THREADS / 2 ))
MAX_THREADS=$(( 3 * $CPU_COUNT / 2 ))
else
MAX_THREADS=$(( 2 * $MAX_THREADS ))
MAX_THREADS=$(( 2 * $CPU_COUNT ))
fi

# 1. Change ULib Server (userver_tcp) configuration
Expand Down
4 changes: 2 additions & 2 deletions frameworks/C++/ulib/setup_sqlite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ fw_depends ulib

# Travis is broken
if [ "$TRAVIS" != "true" ]; then
MAX_THREADS=$(( 3 * $MAX_THREADS / 2 ))
MAX_THREADS=$(( 3 * $CPU_COUNT / 2 ))
else
MAX_THREADS=$(( 2 * $MAX_THREADS ))
MAX_THREADS=$(( 2 * $CPU_COUNT ))
fi

# 1. Change ULib Server (userver_tcp) configuration
Expand Down
2 changes: 1 addition & 1 deletion frameworks/C++/wt/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ sed -i 's|INSERT_DB_HOST_HERE|'"${DBHOST}"'|g' benchmark.cpp

g++-4.8 -O3 -DNDEBUG -std=c++0x -L${BOOST_LIB} -I${BOOST_INC} -L${WT_LIB} -I${WT_INC} -o benchmark.wt benchmark.cpp -lwt -lwthttp -lwtdbo -lwtdbomysql -lboost_thread -lboost_system

./benchmark.wt -c wt_config.xml -t ${MAX_THREADS} --docroot . --http-address 0.0.0.0 --http-port 8080 --accesslog=- --no-compression
./benchmark.wt -c wt_config.xml -t ${CPU_COUNT} --docroot . --http-address 0.0.0.0 --http-port 8080 --accesslog=- --no-compression
2 changes: 1 addition & 1 deletion frameworks/C++/wt/setup_postgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ sed -i 's|INSERT_DB_HOST_HERE|'"${DBHOST}"'|g' benchmark.cpp

g++-4.8 -O3 -DNDEBUG -DBENCHMARK_USE_POSTGRES -std=c++0x -L${BOOST_LIB} -I${BOOST_INC} -L${WT_LIB} -I${WT_INC} -o benchmark_postgres.wt benchmark.cpp -lwt -lwthttp -lwtdbo -lwtdbopostgres -lboost_thread -lboost_system

./benchmark_postgres.wt -c wt_config.xml -t ${MAX_THREADS} --docroot . --http-address 0.0.0.0 --http-port 8080 --accesslog=- --no-compression
./benchmark_postgres.wt -c wt_config.xml -t ${CPU_COUNT} --docroot . --http-address 0.0.0.0 --http-port 8080 --accesslog=- --no-compression
4 changes: 2 additions & 2 deletions frameworks/CSharp/aspnet/setup_nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ xbuild src/Benchmarks.build.proj /t:Build
# one fastcgi instance for each thread
# load balanced by nginx
port_start=9001
port_end=$(($port_start+$MAX_THREADS))
port_end=$(($port_start+$CPU_COUNT))

# nginx
conf="upstream mono {\n"
Expand All @@ -24,7 +24,7 @@ done
conf+="}"
echo -e $conf > $TROOT/nginx.upstream.conf

nginx -c $TROOT/nginx.conf -g "worker_processes ${MAX_THREADS};"
nginx -c $TROOT/nginx.conf -g "worker_processes ${CPU_COUNT};"

# To debug, use --printlog --verbose --loglevels=All
for port in $(seq $port_start $port_end); do
Expand Down
2 changes: 1 addition & 1 deletion frameworks/CSharp/evhttp-sharp/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ xbuild src/EvHttpSharpBenchmark.csproj /p:Configuration=Release

export MONO_GC_PARAMS=nursery-size=64m

mono -O=all $TROOT/src/bin/Release/EvHttpSharpBenchmark.exe 127.0.0.1 8085 $MAX_THREADS &
mono -O=all $TROOT/src/bin/Release/EvHttpSharpBenchmark.exe 127.0.0.1 8085 $CPU_COUNT &
4 changes: 2 additions & 2 deletions frameworks/CSharp/nancy/setup_libevent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ xbuild ${LIBEVENTHOST_HOME}/LibeventHost.csproj /p:Configuration=Release

# nginx
port_start=9001
port_end=$((${port_start}+${MAX_THREADS}))
port_end=$((${port_start}+${CPU_COUNT}))
conf="upstream mono {\n"
for port in $(seq ${port_start} ${port_end} ); do
conf+="\tserver 127.0.0.1:${port};\n"
done
conf+="}"

echo -e $conf > ${TROOT}/nginx.upstream.conf
${NGINX_HOME}/sbin/nginx -c ${TROOT}/nginx.conf.libevent -g "worker_processes '"${MAX_THREADS}"';"
${NGINX_HOME}/sbin/nginx -c ${TROOT}/nginx.conf.libevent -g "worker_processes '"${CPU_COUNT}"';"

# Start fastcgi for each thread
# To debug, use --printlog --verbose --loglevels=All
Expand Down
4 changes: 2 additions & 2 deletions frameworks/CSharp/nancy/setup_nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ xbuild src/NancyBenchmark.csproj /p:Configuration=Release

# nginx
port_start=9001
port_end=$((${port_start}+${MAX_THREADS}))
port_end=$((${port_start}+${CPU_COUNT}))
conf="upstream mono {\n"
for port in $(seq ${port_start} $port_end); do
conf+="\tserver 127.0.0.1:${port};\n"
Expand All @@ -27,7 +27,7 @@ echo "include $IROOT/nginx/conf/fastcgi_params;" > $TROOT/nginx.osenv.conf


echo -e $conf > $TROOT/nginx.upstream.conf
${NGINX_HOME}/sbin/nginx -c $TROOT/nginx.conf -g "worker_processes '"${MAX_THREADS}"';"
${NGINX_HOME}/sbin/nginx -c $TROOT/nginx.conf -g "worker_processes '"${CPU_COUNT}"';"

# Start fastcgi for each thread
# To debug, use --printlog --verbose --loglevels=All
Expand Down
4 changes: 2 additions & 2 deletions frameworks/CSharp/servicestack/setup_nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ xbuild src/ServiceStackBenchmark.csproj /t:Build
# one fastcgi instance for each thread
# load balanced by nginx
port_start=9001
port_end=$(($port_start+$MAX_THREADS))
port_end=$(($port_start+$CPU_COUNT))
# nginx
conf="upstream mono {\n"
for port in $(seq $port_start $port_end); do
conf+="\tserver 127.0.0.1:${port};\n"
done
conf+="}"
echo -e $conf > $TROOT/nginx.upstream.conf
nginx -c $TROOT/nginx.conf -g "worker_processes ${MAX_THREADS};"
nginx -c $TROOT/nginx.conf -g "worker_processes ${CPU_COUNT};"
# To debug, use --printlog --verbose --loglevels=All
for port in $(seq $port_start $port_end); do
MONO_OPTIONS=--gc=sgen fastcgi-mono-server4 --applications=/:$TROOT/src --socket=tcp:127.0.0.1:$port &
Expand Down
2 changes: 1 addition & 1 deletion frameworks/Dart/dart-raw/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ fw_depends postgresql dart

pub upgrade

dart server.dart -a 0.0.0.0 -p 8080 -d ${MAX_CONCURRENCY} -i ${MAX_THREADS} &
dart server.dart -a 0.0.0.0 -p 8080 -d ${MAX_CONCURRENCY} -i ${CPU_COUNT} &
2 changes: 1 addition & 1 deletion frameworks/Dart/redstone/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ fw_depends dart

pub upgrade

dart server.dart -a 0.0.0.0 -p 8080 -d ${MAX_THREADS} -i ${MAX_THREADS} &
dart server.dart -a 0.0.0.0 -p 8080 -d ${CPU_COUNT} -i ${CPU_COUNT} &
10 changes: 5 additions & 5 deletions frameworks/Dart/start/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ pub upgrade
# start dart servers
#
current=9001
end=$(($current+$MAX_THREADS))
end=$(($current+$CPU_COUNT))
while [ $current -lt $end ]; do
dart server.dart -a 127.0.0.1 -p $current -d ${MAX_THREADS} &
dart server.dart -a 127.0.0.1 -p $current -d ${CPU_COUNT} &
let current=current+1
done


#
# create nginx configuration
#
conf+="worker_processes ${MAX_THREADS};\n"
conf+="worker_processes ${CPU_COUNT};\n"
conf+="error_log /dev/null error;\n"
conf+="events {\n"
conf+="\tworker_connections 1024;\n"
Expand All @@ -33,12 +33,12 @@ conf+="\tdefault_type application/octet-stream;\n"
conf+="\tsendfile on;\n"
conf+="\tupstream dart_cluster {\n"
current=9001
end=$(($current+$MAX_THREADS))
end=$(($current+$CPU_COUNT))
while [ $current -lt $end ]; do
conf+="\t\tserver 127.0.0.1:${current};\n"
let current=current+1
done
conf+="\t\tkeepalive ${MAX_THREADS};\n"
conf+="\t\tkeepalive ${CPU_COUNT};\n"
conf+="\t}\n"
conf+="\tserver {\n"
conf+="\t\tlisten 8080;\n"
Expand Down
10 changes: 5 additions & 5 deletions frameworks/Dart/stream/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ pub upgrade
# start dart servers
#
current=9001
end=$(($current+$MAX_THREADS))
end=$(($current+$CPU_COUNT))
while [ $current -lt $end ]; do
dart server.dart -a 127.0.0.1 -p $current -d ${MAX_THREADS} &
dart server.dart -a 127.0.0.1 -p $current -d ${CPU_COUNT} &
let current=current+1
done


#
# create nginx configuration
#
conf+="worker_processes ${MAX_THREADS};\n"
conf+="worker_processes ${CPU_COUNT};\n"
conf+="error_log /dev/null error;\n"
conf+="events {\n"
conf+="\tworker_connections 1024;\n"
Expand All @@ -33,12 +33,12 @@ conf+="\tdefault_type application/octet-stream;\n"
conf+="\tsendfile on;\n"
conf+="\tupstream dart_cluster {\n"
current=9001
end=$(($current+$MAX_THREADS))
end=$(($current+$CPU_COUNT))
while [ $current -lt $end ]; do
conf+="\t\tserver 127.0.0.1:${current};\n"
let current=current+1
done
conf+="\t\tkeepalive ${MAX_THREADS};\n"
conf+="\t\tkeepalive ${CPU_COUNT};\n"
conf+="\t}\n"
conf+="\tserver {\n"
conf+="\t\tlisten 8080;\n"
Expand Down
2 changes: 1 addition & 1 deletion frameworks/Haskell/servant/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ fw_depends postgresql stack
${IROOT}/stack --allow-different-user setup
${IROOT}/stack --allow-different-user build

${IROOT}/stack --allow-different-user exec servant-exe -- ${DBHOST} +RTS -A32m -N${MAX_THREADS} &
${IROOT}/stack --allow-different-user exec servant-exe -- ${DBHOST} +RTS -A32m -N${CPU_COUNT} &
2 changes: 1 addition & 1 deletion frameworks/Haskell/spock/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ fi

${IROOT}/stack --allow-different-user build --install-ghc

${IROOT}/stack --allow-different-user exec spock-exe -- +RTS -A32m -N${MAX_THREADS} &
${IROOT}/stack --allow-different-user exec spock-exe -- +RTS -A32m -N${CPU_COUNT} &
2 changes: 1 addition & 1 deletion frameworks/Haskell/wai/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ cd bench

${IROOT}/stack --allow-different-user build --install-ghc

${IROOT}/stack --allow-different-user exec bench -- ${MAX_THREADS} ${DBHOST} +RTS -A32m -N${MAX_THREADS} &
${IROOT}/stack --allow-different-user exec bench -- ${CPU_COUNT} ${DBHOST} +RTS -A32m -N${CPU_COUNT} &
2 changes: 1 addition & 1 deletion frameworks/Haskell/yesod/run_yesod_mysql_mongo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ cd yesod-mysql-mongo

${IROOT}/stack --allow-different-user build --install-ghc

${IROOT}/stack --allow-different-user exec yesod-mysql-mongo -- ${MAX_THREADS} ${DBHOST} +RTS -A32m -N${MAX_THREADS} &
${IROOT}/stack --allow-different-user exec yesod-mysql-mongo -- ${CPU_COUNT} ${DBHOST} +RTS -A32m -N${CPU_COUNT} &
2 changes: 1 addition & 1 deletion frameworks/Haskell/yesod/run_yesod_postgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ cd yesod-postgres

${IROOT}/stack --allow-different-user build --install-ghc

${IROOT}/stack --allow-different-user exec yesod-postgres -- ${MAX_THREADS} ${DBHOST} +RTS -A32m -N${MAX_THREADS} &
${IROOT}/stack --allow-different-user exec yesod-postgres -- ${CPU_COUNT} ${DBHOST} +RTS -A32m -N${CPU_COUNT} &
2 changes: 1 addition & 1 deletion frameworks/Lua/openresty/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ fw_depends mysql lua luarocks openresty

luarocks install lua-resty-template

nginx -c $TROOT/nginx.conf -g "worker_processes '"${MAX_THREADS}"';" &
nginx -c $TROOT/nginx.conf -g "worker_processes '"${CPU_COUNT}"';" &
2 changes: 1 addition & 1 deletion frameworks/Perl/dancer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ cpanm --notest --no-man-page \

nginx -c ${TROOT}/nginx.conf

plackup -E production -s Starman --workers=${MAX_THREADS} -l ${TROOT}/frameworks-benchmark.sock -a ./app.pl &
plackup -E production -s Starman --workers=${CPU_COUNT} -l ${TROOT}/frameworks-benchmark.sock -a ./app.pl &
2 changes: 1 addition & 1 deletion frameworks/Perl/kelp/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ cpanm --notest --no-man-page \

nginx -c ${TROOT}/nginx.conf

plackup -E production -s Starman --workers=${MAX_THREADS} -l ${TROOT}/frameworks-benchmark.sock -a ./app.pl &
plackup -E production -s Starman --workers=${CPU_COUNT} -l ${TROOT}/frameworks-benchmark.sock -a ./app.pl &
Loading