Skip to content

Commit

Permalink
Merge pull request #24 from TechEmpower/master
Browse files Browse the repository at this point in the history
aa
  • Loading branch information
smthing authored Aug 28, 2022
2 parents 5c25976 + bcddc46 commit 77905da
Show file tree
Hide file tree
Showing 983 changed files with 17,796 additions and 25,441 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ jobs:
dependabot:
needs: verify
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ Results of continuous benchmarking runs are available in real time [here](https:

### Data Visualization

If you have a `results.json` file that you would like to visualize, you can [do that here](https://tfb-status.techempower.com/share). You can also attach a `runid` parameter to that url where `runid` is a run listed on [tfb-status](https://tfb-status.techempower.com) like so: https://www.techempower.com/benchmarks/#section=test&runid=fd07b64e-47ce-411e-8b9b-b13368e988c6
If you have a `results.json` file that you would like to visualize, you can [do that here](https://tfb-status.techempower.com/share). You can also attach a `runid` parameter to that url where `runid` is a run listed on [tfb-status](https://tfb-status.techempower.com) like so: https://www.techempower.com/benchmarks/#section=test&runid=fd07b64e-47ce-411e-8b9b-b13368e988c6.
If you want to visualize them or compare different results files on bash, here is an unofficial [plaintext results parser](https://github.com/joeyleeeeeee97/PlainTextResultsParser)

## Contributing

Expand Down
32 changes: 14 additions & 18 deletions frameworks/C++/drogon/drogon-core.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:18.04
FROM ubuntu:20.04

COPY ./ ./

Expand All @@ -11,18 +11,18 @@ RUN apt-get update -yqq && \
zlib1g-dev && \
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
apt-get update -yqq && \
apt-get install -yqq gcc-8 g++-8
apt-get install -yqq gcc-10 g++-10

RUN locale-gen en_US.UTF-8

ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

ENV CC=gcc-8
ENV CXX=g++-8
ENV AR=gcc-ar-8
ENV RANLIB=gcc-ranlib-8
ENV CC=gcc-10
ENV CXX=g++-10
ENV AR=gcc-ar-10
ENV RANLIB=gcc-ranlib-10

ENV IROOT=/install
ENV DROGON_ROOT=$IROOT/drogon
Expand All @@ -32,26 +32,22 @@ ENV TEST_PATH=/drogon_benchmark/build

WORKDIR $IROOT

RUN wget https://github.com/an-tao/postgres/archive/batch_mode_ubuntu.tar.gz
RUN tar -xvzf batch_mode_ubuntu.tar.gz
WORKDIR $PG_ROOT

RUN ./configure --prefix=/usr CFLAGS='-O2 -pipe'
RUN make && make install

WORKDIR $IROOT
RUN sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
RUN sudo apt -y update
RUN sudo apt -y install postgresql-server-dev-all

RUN git clone https://github.com/an-tao/drogon

WORKDIR $DROGON_ROOT

RUN git checkout fb17efe765d162be01680b05a3a387c7a182a4c5
RUN git checkout ebf87d69d7bb45dfa478ba364ef9374d9be25092
RUN git submodule update --init
RUN mkdir build

WORKDIR $DROGON_ROOT/build

RUN cmake -DCMAKE_BUILD_TYPE=release ..
RUN cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_CXX_FLAGS=-flto ..
RUN make && make install

WORKDIR $IROOT
Expand All @@ -62,12 +58,12 @@ WORKDIR $MIMALLOC_ROOT
RUN git checkout v1.6.7 -b v1.6.7
RUN mkdir -p out/release
WORKDIR $MIMALLOC_ROOT/out/release
RUN cmake ../..
RUN cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_CXX_FLAGS=-flto ../..
RUN make && make install

WORKDIR $TEST_PATH

RUN cmake -DCMAKE_BUILD_TYPE=release ..
RUN cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_CXX_FLAGS=-flto ..
RUN make

EXPOSE 8080
Expand Down
32 changes: 14 additions & 18 deletions frameworks/C++/drogon/drogon.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:18.04
FROM ubuntu:20.04

COPY ./ ./

Expand All @@ -11,18 +11,18 @@ RUN apt-get update -yqq && \
zlib1g-dev && \
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
apt-get update -yqq && \
apt-get install -yqq gcc-8 g++-8
apt-get install -yqq gcc-10 g++-10

RUN locale-gen en_US.UTF-8

ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

ENV CC=gcc-8
ENV CXX=g++-8
ENV AR=gcc-ar-8
ENV RANLIB=gcc-ranlib-8
ENV CC=gcc-10
ENV CXX=g++-10
ENV AR=gcc-ar-10
ENV RANLIB=gcc-ranlib-10

ENV IROOT=/install
ENV DROGON_ROOT=$IROOT/drogon
Expand All @@ -32,26 +32,22 @@ ENV TEST_PATH=/drogon_benchmark/build

WORKDIR $IROOT

RUN wget https://github.com/an-tao/postgres/archive/batch_mode_ubuntu.tar.gz
RUN tar -xvzf batch_mode_ubuntu.tar.gz
WORKDIR $PG_ROOT

RUN ./configure --prefix=/usr CFLAGS='-O2 -pipe'
RUN make && make install

WORKDIR $IROOT
RUN sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
RUN sudo apt -y update
RUN sudo apt -y install postgresql-server-dev-all

RUN git clone https://github.com/an-tao/drogon

WORKDIR $DROGON_ROOT

RUN git checkout fb17efe765d162be01680b05a3a387c7a182a4c5
RUN git checkout ebf87d69d7bb45dfa478ba364ef9374d9be25092
RUN git submodule update --init
RUN mkdir build

WORKDIR $DROGON_ROOT/build

RUN cmake -DCMAKE_BUILD_TYPE=release ..
RUN cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_CXX_FLAGS=-flto ..
RUN make && make install

WORKDIR $IROOT
Expand All @@ -62,12 +58,12 @@ WORKDIR $MIMALLOC_ROOT
RUN git checkout v1.6.7 -b v1.6.7
RUN mkdir -p out/release
WORKDIR $MIMALLOC_ROOT/out/release
RUN cmake ../..
RUN cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_CXX_FLAGS=-flto ../..
RUN make && make install

WORKDIR $TEST_PATH

RUN cmake -DCMAKE_BUILD_TYPE=release ..
RUN cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_CXX_FLAGS=-flto ..
RUN make

EXPOSE 8080
Expand Down
3 changes: 2 additions & 1 deletion frameworks/C++/drogon/drogon_benchmark/config-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
//any synchronous interface of it.
"is_fast": true,
//connection_number:1 by default
"connection_number": 1
"connection_number": 1,
"auto_batch": false
}],
"app": {
//threads_num:the number of IO threads,1 by default, if the value is set to 0, the number of threads
Expand Down
5 changes: 3 additions & 2 deletions frameworks/C++/drogon/drogon_benchmark/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
//any synchronous interface of it.
"is_fast": true,
//connection_number:1 by default
"connection_number": 1
"connection_number": 1,
"auto_batch": false
}],
"app": {
//threads_num:the number of IO threads,1 by default, if the value is set to 0, the number of threads
Expand Down Expand Up @@ -185,4 +186,4 @@
}],
//custom_config: custom configuration for users. This object can be get by the app().getCustomConfig() method.
"custom_config": {}
}
}
3 changes: 1 addition & 2 deletions frameworks/C++/drogon/drogon_benchmark/plugins/SyncPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ void SyncPlugin::initAndStart(const Json::Value &config)
{
auto resp = HttpResponse::newHttpResponse();
resp->setBody("Hello, World!");
resp->setContentTypeCodeAndCustomString(
CT_TEXT_PLAIN, "Content-Type: text/plain\r\n");
resp->setContentTypeCode(CT_TEXT_PLAIN);
return resp;
}
break;
Expand Down
12 changes: 6 additions & 6 deletions frameworks/C++/ffead-cpp/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"display_name": "ffead-cpp [v-prof-b]",
"notes": "",
"versus": "",
"tags": []
"tags": ["broken"]
},
"postgresql-raw-profiled": {
"db_url": "/t3/d",
Expand Down Expand Up @@ -137,7 +137,7 @@
"display_name": "ffead-cpp [pg-raw-prof-b]",
"notes": "memory libpq batch patch profiled",
"versus": "",
"tags": []
"tags": ["broken"]
},
"postgresql-raw-async-profiled": {
"db_url": "/t4/d",
Expand Down Expand Up @@ -219,7 +219,7 @@
"display_name": "ffead-cpp [pg-raw-async-prof-b]",
"notes": "async memory libpq batch patch profiled",
"versus": "",
"tags": []
"tags": ["broken"]
},
"postgresql-raw-async-clibpqb-pool-profiled": {
"db_url": "/t4/d",
Expand All @@ -240,7 +240,7 @@
"display_name": "ffead-cpp [pg-raw-async-prof-b-pool]",
"notes": "async memory libpq batch patch profiled",
"versus": "",
"tags": []
"tags": ["broken"]
},
"postgresql-raw-async-qw-profiled": {
"db_url": "/t5/d",
Expand Down Expand Up @@ -282,7 +282,7 @@
"display_name": "ffead-cpp [pg-raw-async-qw-prof-b]",
"notes": "async memory libpq batch patch profiled",
"versus": "",
"tags": []
"tags": ["broken"]
},
"postgresql-raw-async-qw-pool-profiled-m": {
"query_url": "/t5/quem?queries=",
Expand All @@ -304,4 +304,4 @@
"tags": []
}
}]
}
}
44 changes: 0 additions & 44 deletions frameworks/C++/lithium/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,51 +73,7 @@
"display_name": "Lithium-postgres-beta",
"notes": "",
"versus": "None"
},
"postgres-batch": {
"db_url" : "/db",
"query_url" : "/queries?N=",
"fortune_url" : "/fortunes",
"update_url" : "/updates?N=",
"port": 8080,
"approach": "Realistic",
"classification": "Micro",
"database": "Postgres",
"framework": "Lithium",
"language": "C++",
"flavor": "None",
"orm": "Full",
"platform": "None",
"webserver": "None",
"os": "Linux",
"database_os": "Linux",
"display_name": "Lithium-postgres-batch",
"notes": "",
"versus": "None"
},

"postgres-batch-beta": {
"db_url" : "/db",
"query_url" : "/queries?N=",
"fortune_url" : "/fortunes",
"update_url" : "/updates?N=",
"port": 8080,
"approach": "Realistic",
"classification": "Micro",
"database": "Postgres",
"framework": "Lithium",
"language": "C++",
"flavor": "None",
"orm": "Full",
"platform": "None",
"webserver": "None",
"os": "Linux",
"database_os": "Linux",
"display_name": "Lithium-postgres-batch-beta",
"notes": "",
"versus": "None"
}

}
]
}
4 changes: 3 additions & 1 deletion frameworks/C++/poco/poco.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ ENV POCO_VERSION 1.6.1
ENV POCO_HOME /poco

WORKDIR ${POCO_HOME}
RUN curl -sL http://pocoproject.org/releases/poco-${POCO_VERSION}/poco-${POCO_VERSION}-all.tar.gz | tar xz --strip-components=1
RUN wget https://pocoproject.org/releases/poco-${POCO_VERSION}/poco-${POCO_VERSION}-all.zip
RUN unzip poco-${POCO_VERSION}-all.zip
RUN mv ./poco-${POCO_VERSION}-all/* ./

RUN ./configure --no-tests --no-samples
RUN make --quiet PageCompiler-libexec XML-libexec JSON-libexec
Expand Down
Loading

0 comments on commit 77905da

Please sign in to comment.