浏览代码

Bump facil.io version (#3461)

Hi,

A new version of facial was released and this PR updates to the latest
version (0.6.1).

This version includes some logic changes that might effect the
benchmark as well as bug fixes (that shouldn’t effect the benchmark, as
they were mostly Websocket and pub/sub related).
Bo 7 年之前
父节点
当前提交
2e33647902
共有 3 个文件被更改,包括 2 次插入12 次删除
  1. 0 10
      frameworks/C/facil.io/bench_app.c
  2. 1 1
      frameworks/C/facil.io/facil.io.dockerfile
  3. 1 1
      frameworks/C/facil.io/setup-common.sh

+ 0 - 10
frameworks/C/facil.io/bench_app.c

@@ -49,16 +49,6 @@ static void on_request_json(http_s *h);
 /* handles plain text requests (Hello World) */
 static void on_request_plain_text(http_s *h);
 
-/* *****************************************************************************
-This is the same as setting `FIO_DEDICATED_SYSTEM` compiling the facil.io master
-***************************************************************************** */
-#include "evio.h"
-void defer_thread_wait(pool_pt pool, void *p_thr) {
-  (void)pool;
-  (void)p_thr;
-  evio_wait(500);
-}
-
 /* *****************************************************************************
 The main function
 ***************************************************************************** */

+ 1 - 1
frameworks/C/facil.io/facil.io.dockerfile

@@ -18,4 +18,4 @@ RUN cp -f bench_app.c facil_app/src/app.c
 RUN cd facil_app && make -j build
 
 # Run the app
-CMD ./facil_app/tmp/demo -p 8080 -db "TFB-database" -w 4 -t $(( CPU_COUNT >4 ? (CPU_COUNT/4) : 1))
+CMD ./facil_app/tmp/demo -p 8080 -db "TFB-database" -w 4 -t -4

+ 1 - 1
frameworks/C/facil.io/setup-common.sh

@@ -17,7 +17,7 @@ if [[ (! -d facil_app) ||  (-n "${FIO_EDGE}") ]] ; then
 	# Setting FIO_EDGE will test against the master branch on the development machine. i.e.:
 	#     $ FIO_EDGE=1 tfb --mode verify --test facil.io
 	if [[ -z "${FIO_EDGE}" ]]; then
-	  FIO_URL="https://api.github.com/repos/boazsegev/facil.io/tarball/0.6.0.beta.8"
+	  FIO_URL="https://api.github.com/repos/boazsegev/facil.io/tarball/0.6.1"
 	else
 		echo "INFO: development mode detected, loading facil.io from master."
 		FIO_URL="https://github.com/boazsegev/facil.io/archive/master.tar.gz"