forked from TechEmpower/FrameworkBenchmarks
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/TechEmpower/FrameworkBenc…
- Loading branch information
Showing
736 changed files
with
8,853 additions
and
11,738 deletions.
There are no files selected for viewing
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
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
7 changes: 4 additions & 3 deletions
7
frameworks/C++/drogon/drogon_benchmark/controllers/FortuneCtrlRaw.h
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
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,40 @@ | ||
# paozhu Benchmarking Test | ||
|
||
This is the [Paozhu](https://github.com/hggq/paozhu) | ||
|
||
This Benchmarking Test code from https://github.com/hggq/paozhu/releases/tag/v1.5.8 | ||
|
||
### Test Type Implementation Source Code | ||
|
||
* [Benchmark code](controller/src/techempower.cpp) | ||
* [ORM config](conf/orm.conf) | ||
* [Server config](conf/server.conf) | ||
|
||
## Test URLs | ||
### JSON | ||
|
||
http://localhost:8888/json | ||
|
||
### PLAINTEXT | ||
|
||
http://localhost:8888/plaintext | ||
|
||
|
||
### Single Database Query | ||
|
||
http://localhost:8888/db | ||
|
||
### Fortune | ||
|
||
http://localhost:8888/fortunes | ||
|
||
### Multiple Database Queries | ||
|
||
http://localhost:8888/queries?queries=10 | ||
|
||
### Database Updates | ||
|
||
http://localhost:8888/updates?queries=10 | ||
|
||
### Cache | ||
http://localhost:8888/cached-queries?count=20 |
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,31 @@ | ||
{ | ||
"framework": "paozhu", | ||
"tests": [ | ||
{ | ||
"default": { | ||
"json_url": "/json", | ||
"plaintext_url": "/plaintext", | ||
"db_url": "/db", | ||
"fortune_url": "/fortunes", | ||
"query_url": "/queries?queries=", | ||
"update_url": "/updates?queries=", | ||
"cached_query_url": "/cached-queries?count=", | ||
"port": 8888, | ||
"approach": "Realistic", | ||
"classification": "Fullstack", | ||
"database": "MySQL", | ||
"framework": "paozhu", | ||
"language": "C++", | ||
"flavor": "None", | ||
"orm": "Micro", | ||
"platform": "None", | ||
"webserver": "None", | ||
"os": "Linux", | ||
"database_os": "Linux", | ||
"display_name": "paozhu", | ||
"notes": "", | ||
"versus": "None" | ||
} | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
FROM ubuntu:22.04 | ||
RUN apt-get update -yqq && apt-get install -yqq apt-utils software-properties-common wget unzip cmake git | ||
RUN apt-get install -yqq gcc g++ openssl libssl-dev zlib1g-dev build-essential locales | ||
|
||
RUN apt-get -y install brotli libbrotli-dev | ||
RUN apt-get -y install libreadline-dev | ||
RUN apt-get -y install mysql-client | ||
RUN apt-get -y install libmysqlclient-dev | ||
|
||
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 | ||
|
||
COPY ./ ./ | ||
WORKDIR / | ||
|
||
# RUN wget https://github.com/hggq/paozhu/releases/download/v1.5.8/benchmark.zip | ||
RUN git clone https://github.com/hggq/paozhu | ||
# RUN unzip benchmark.zip | ||
RUN rm -Rf ./paozhu/controller | ||
RUN rm -Rf ./paozhu/libs | ||
RUN mkdir ./paozhu/libs | ||
RUN mkdir ./paozhu/libs/types | ||
|
||
RUN mkdir ./paozhu/controller | ||
RUN mkdir ./paozhu/controller/include | ||
RUN mkdir ./paozhu/controller/src | ||
|
||
COPY ./paozhu_benchmark/controller/include/techempower.h ./paozhu/controller/include/ | ||
COPY ./paozhu_benchmark/controller/src/techempower.cpp ./paozhu/controller/src/ | ||
|
||
COPY ./paozhu_benchmark/libs/types/techempower_json.h ./paozhu/libs/types/ | ||
COPY ./paozhu_benchmark/libs/types/techempower_json_jsonreflect.cpp ./paozhu/libs/types/ | ||
|
||
COPY ./paozhu_benchmark/common/autocontrolmethod.hpp ./paozhu/common/ | ||
COPY ./paozhu_benchmark/common/reghttpmethod_pre.hpp ./paozhu/common/ | ||
COPY ./paozhu_benchmark/common/reghttpmethod.hpp ./paozhu/common/ | ||
COPY ./paozhu_benchmark/common/json_reflect_headers.h ./paozhu/common/ | ||
|
||
COPY ./paozhu_benchmark/conf/server.conf ./paozhu/conf/server.conf | ||
COPY ./paozhu_benchmark/conf/orm.conf ./paozhu/conf/orm.conf | ||
COPY ./paozhu_benchmark/CMakeLists.txt ./paozhu/CMakeLists.txt | ||
|
||
WORKDIR /paozhu | ||
RUN unzip asio.zip | ||
|
||
RUN cmake . -B build -DCMAKE_BUILD_TYPE=Release | ||
RUN cmake --build build | ||
|
||
|
||
EXPOSE 8888 | ||
|
||
CMD ./bin/paozhu |
Oops, something went wrong.