Browse Source

Lithium: New test for plaintext. (#5474)

* Lithium: New test for plaintext.

* Fix plaintext config.

* Fix orm flavor.
Matthieu Garrigues 5 years ago
parent
commit
b1fb478e0c

+ 19 - 0
frameworks/C++/lithium/benchmark_config.json

@@ -47,7 +47,26 @@
         "display_name": "Lithium-postgres",
         "notes": "",
         "versus": "None"
+      },
+      "plaintext-g": {
+        "plaintext_url"  : "/plaintext",
+        "port": 8080,
+        "approach": "Realistic",
+        "classification": "Micro",
+        "database": "mysql",
+        "framework": "Lithium",
+        "language": "C++",
+        "flavor": "None",
+        "orm": "Full",
+        "platform": "None",
+        "webserver": "None",
+        "os": "Linux",
+        "database_os": "Linux",
+        "display_name": "Lithium-plaintext-g",
+        "notes": "",
+        "versus": "None"
       }
+
       
     }
   ]

+ 2 - 3
frameworks/C++/lithium/lithium-mysql.dockerfile

@@ -1,7 +1,7 @@
 FROM buildpack-deps:focal
 
 RUN apt update -yqq
-RUN apt install -yqq libboost-dev libmariadb-dev wget  libboost-context-dev g++-9 gdb
+RUN apt install -yqq libboost-dev libmariadb-dev wget  libboost-context-dev g++-9
 
 COPY ./ ./
 
@@ -10,7 +10,6 @@ ENV COMMIT=fff8ab327b905f89396b911e940e828dc8c6d742
 RUN wget https://raw.githubusercontent.com/matt-42/lithium/$COMMIT/single_headers/lithium_mysql.hh
 RUN wget https://raw.githubusercontent.com/matt-42/lithium/$COMMIT/single_headers/lithium_http_backend.hh
 
-RUN g++ -DNDEBUG -g -DTFB_MYSQL -O3 -march=native -std=c++17 ./lithium.cc -I /usr/include/mariadb -lpthread -lmariadbclient -lboost_context -o /lithium_tbf
+RUN g++ -DNDEBUG -DTFB_MYSQL -O3 -march=native -std=c++17 ./lithium.cc -I /usr/include/mariadb -lpthread -lmariadbclient -lboost_context -o /lithium_tbf
 
-#CMD gdb -batch -x ./gdb.cmds --args /lithium_tbf tfb-database 8080
 CMD /lithium_tbf tfb-database 8080

+ 15 - 0
frameworks/C++/lithium/lithium-plaintext-g.dockerfile

@@ -0,0 +1,15 @@
+FROM buildpack-deps:focal
+
+RUN apt update -yqq
+RUN apt install -yqq libboost-dev libmariadb-dev wget  libboost-context-dev g++-9 gdb
+
+COPY ./ ./
+
+ENV COMMIT=fff8ab327b905f89396b911e940e828dc8c6d742
+
+RUN wget https://raw.githubusercontent.com/matt-42/lithium/$COMMIT/single_headers/lithium_mysql.hh
+RUN wget https://raw.githubusercontent.com/matt-42/lithium/$COMMIT/single_headers/lithium_http_backend.hh
+
+RUN g++ -g -DTFB_MYSQL -O3 -march=native -std=c++17 ./lithium.cc -I /usr/include/mariadb -lpthread -lmariadbclient -lboost_context -o /lithium_tbf
+
+CMD gdb -batch -x ./gdb.cmds --args /lithium_tbf tfb-database 8080