forked from TechEmpower/FrameworkBenchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lithium: Switch back to gcc and benchmark number of sql connections. (T…
…echEmpower#5903) * Benchmark number of sql connections. * Lithium: fix default test. * Lithium: re-run travis.
- Loading branch information
Showing
26 changed files
with
641 additions
and
17 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#! /bin/sh | ||
|
||
DB_FLAG=$1 | ||
N_SQL_CONNECTIONS=$2 | ||
COMMIT=2ea53ab949627baeaaad77e7662da74f9a9d0a31 | ||
|
||
if [ $DB_FLAG = "TFB_MYSQL" ]; then | ||
CXX_FLAGS="-I /usr/include/mariadb -lmariadbclient " | ||
wget https://raw.githubusercontent.com/matt-42/lithium/$COMMIT/single_headers/lithium_mysql.hh | ||
elif [ $DB_FLAG = "TFB_PGSQL" ]; then | ||
CXX_FLAGS="-I/usr/include/postgresql -I /usr/include/postgresql/12/server -lpthread -lpq" | ||
wget https://raw.githubusercontent.com/matt-42/lithium/$COMMIT/single_headers/lithium_pgsql.hh | ||
fi | ||
|
||
|
||
wget https://raw.githubusercontent.com/matt-42/lithium/$COMMIT/single_headers/lithium_http_backend.hh | ||
|
||
g++ -flto -DNDEBUG -DN_SQL_CONNECTIONS=$N_SQL_CONNECTIONS -D$DB_FLAG -O3 -march=native -std=c++17 ./lithium.cc $CXX_FLAGS -lpthread -lboost_context -lssl -lcrypto -o /lithium_tbf | ||
|
||
/lithium_tbf tfb-database 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq libboost-dev libmariadb-dev wget libboost-context-dev g++-9 | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_MYSQL 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq libboost-dev libmariadb-dev wget libboost-context-dev g++-9 | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_MYSQL 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq libboost-dev libmariadb-dev wget libboost-context-dev g++-9 | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_MYSQL 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq libboost-dev libmariadb-dev wget libboost-context-dev g++-9 | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_MYSQL 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq libboost-dev libmariadb-dev wget libboost-context-dev g++-9 | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_MYSQL 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq libboost-dev libmariadb-dev wget libboost-context-dev g++-9 | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_MYSQL 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq libboost-dev libmariadb-dev wget libboost-context-dev g++-9 | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_MYSQL 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq libboost-dev libmariadb-dev wget libboost-context-dev g++-9 | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_MYSQL 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq libboost-dev libmariadb-dev wget libboost-context-dev g++-9 | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_MYSQL 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq libboost-dev libmariadb-dev wget libboost-context-dev g++-9 | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_MYSQL 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq g++-9 libboost-dev postgresql-server-dev-all libpq-dev wget libboost-context-dev | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_PGSQL 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq g++-9 libboost-dev postgresql-server-dev-all libpq-dev wget libboost-context-dev | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_PGSQL 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq g++-9 libboost-dev postgresql-server-dev-all libpq-dev wget libboost-context-dev | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_PGSQL 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq g++-9 libboost-dev postgresql-server-dev-all libpq-dev wget libboost-context-dev | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_PGSQL 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq g++-9 libboost-dev postgresql-server-dev-all libpq-dev wget libboost-context-dev | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_PGSQL 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq g++-9 libboost-dev postgresql-server-dev-all libpq-dev wget libboost-context-dev | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_PGSQL 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq g++-9 libboost-dev postgresql-server-dev-all libpq-dev wget libboost-context-dev | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_PGSQL 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq g++-9 libboost-dev postgresql-server-dev-all libpq-dev wget libboost-context-dev | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_PGSQL 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq g++-9 libboost-dev postgresql-server-dev-all libpq-dev wget libboost-context-dev | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_PGSQL 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq g++-9 libboost-dev postgresql-server-dev-all libpq-dev wget libboost-context-dev | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start_gcc.sh TFB_PGSQL 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq clang libboost-dev postgresql-server-dev-all libpq-dev wget libboost-context-dev | ||
RUN apt-get install -yqq g++-9 libboost-dev postgresql-server-dev-all libpq-dev wget libboost-context-dev | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start.sh TFB_PGSQL | ||
CMD ./compile_and_start_gcc.sh TFB_PGSQL NCONN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM buildpack-deps:focal | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq libboost-dev libmariadb-dev wget libboost-context-dev clang | ||
RUN apt-get install -yqq libboost-dev libmariadb-dev wget libboost-context-dev g++-9 | ||
|
||
COPY ./ ./ | ||
|
||
CMD ./compile_and_start.sh TFB_MYSQL | ||
CMD ./compile_and_start_gcc.sh TFB_MYSQL 20 |