Browse Source

Lithium update. (#6207)

* Lithium update.

* Lithium update.
Matthieu Garrigues 4 years ago
parent
commit
cc94eb9772

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

@@ -50,6 +50,30 @@
         "notes": "",
         "notes": "",
         "versus": "None"
         "versus": "None"
       },
       },
+      "postgres-beta": {
+        "json_url"       : "/json",
+        "db_url"         : "/db",
+        "query_url"      : "/queries?N=",
+        "fortune_url"    : "/fortunes",
+        "update_url"     : "/updates?N=",
+        "plaintext_url"  : "/plaintext",
+        "cached_query_url": "/cached-worlds?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-beta",
+        "notes": "",
+        "versus": "None"
+      },
       "postgres-batch": {
       "postgres-batch": {
         "db_url"         : "/db",
         "db_url"         : "/db",
         "query_url"      : "/queries?N=",
         "query_url"      : "/queries?N=",

+ 5 - 1
frameworks/C++/lithium/compile.sh

@@ -1,7 +1,11 @@
 #! /bin/sh
 #! /bin/sh
 
 
 DB_FLAG=$1
 DB_FLAG=$1
-COMMIT=e199537f15abce7cf25c0b4de0f14461a1f426ec
+COMMIT="$2"
+
+if [ "$COMMIT" = "" ]; then
+  COMMIT="e199537f15abce7cf25c0b4de0f14461a1f426ec"
+fi
 
 
 if [ $DB_FLAG = "TFB_MYSQL" ]; then
 if [ $DB_FLAG = "TFB_MYSQL" ]; then
   CXX_FLAGS="-I /usr/include/mariadb  -lmariadbclient "
   CXX_FLAGS="-I /usr/include/mariadb  -lmariadbclient "

+ 12 - 0
frameworks/C++/lithium/lithium-postgres-beta.dockerfile

@@ -0,0 +1,12 @@
+FROM buildpack-deps:focal
+
+RUN apt-get update -yqq
+RUN apt-get install -yqq clang libboost-context-dev libboost-dev wget
+RUN apt-get install -yqq bison flex
+
+COPY ./ ./
+
+RUN ./compile_libpq.sh
+ENV LD_LIBRARY_PATH=/usr/lib
+
+CMD ./compile.sh TFB_PGSQL 667f439040821d981923492e59749b87005268e4