Browse Source

[C++/suil] Updating suil version to 0.1.1 (#7567)

* Adding suil C++ http framework to TechEmpower benchmarks

* Add whitespace

* Use better syntax when getting query arguments

* Remove LICENSE file and unused header file

* [C++/suil] Updating framework version to v0.1.1
Dan Carter 3 years ago
parent
commit
70f54f27c6

+ 5 - 6
frameworks/C++/suil/benchmark/src/main.cpp

@@ -57,20 +57,19 @@ int main(int argc, char *argv[])
     };
     };
 
 
     Endpoint<SystemAttrs, PgSqlMiddleware> ep{"/",
     Endpoint<SystemAttrs, PgSqlMiddleware> ep{"/",
-          opt(serverConfig, std::move(config)),
-          opt(numberOfWorkers, 0)   /* Will run with number of available cores */
+          opt(serverConfig, std::move(config))
     };
     };
 
 
     ep.middleware<PgSqlMiddleware>().setup(
     ep.middleware<PgSqlMiddleware>().setup(
             suil::env("POSTGRES_CONN", DEFAULT_POSTGRES_CONN),
             suil::env("POSTGRES_CONN", DEFAULT_POSTGRES_CONN),
-            opt(ASYNC,   true),   // connections are async
-            opt(TIMEOUT, 5_sec),  // timeout on db transactions
-            opt(EXPIRES, 30_sec)  // connections are cached for 30 seconds
+            opt(ASYNC,   true),    // connections are async
+            opt(TIMEOUT, 10_sec),  // timeout on db transactions
+            opt(EXPIRES, 30_sec)   // connections are cached for 30 seconds
     );
     );
 
 
 #if SUIL_BENCH_DEV == 1
 #if SUIL_BENCH_DEV == 1
     {
     {
-        scoped(conn, ep.middleware<PgSqlMiddleware>().conn());
+        scoped(conn, ep.middleware<PgSqlMiddleware>().conn(false));
         seedDatabase(conn);
         seedDatabase(conn);
     }
     }
 #endif
 #endif

+ 1 - 1
frameworks/C++/suil/suil.dockerfile

@@ -2,7 +2,7 @@ FROM suilteam/base:alpine
 
 
 COPY ./ suil-bench
 COPY ./ suil-bench
 
 
-ENV SUIL_VERSION=0.1.0
+ENV SUIL_VERSION=0.1.1
 ENV SUIL_VERSION_TAG=alpha
 ENV SUIL_VERSION_TAG=alpha
 ENV SUIL_CONFIGURATION=Release
 ENV SUIL_CONFIGURATION=Release