Browse Source

Add libreactor

Fredrik Widlund 9 years ago
parent
commit
52d0e40f75

+ 8 - 0
frameworks/C/libreactor/README.md

@@ -0,0 +1,8 @@
+# libreactor_techempower
+
+Techempower benchmark of libreactor
+
+## Requirements
+
+GCC, Git, Automake
+

+ 22 - 0
frameworks/C/libreactor/benchmark_config.json

@@ -0,0 +1,22 @@
+{
+  "framework": "libreactor",
+  "tests": [{
+    "default": {
+      "setup_file": "setup",
+      "plaintext_url": "/plaintext",
+      "port": 8080,
+      "approach": "Realistic",
+      "classification": "Platform",
+      "database": "None",
+      "framework": "libreactor",
+      "language": "C",
+      "orm": "Raw",
+      "platform": "libreactor",
+      "webserver": "None",
+      "os": "Linux",
+      "database_os": "Linux",
+      "notes": "",
+      "versus": ""
+    }
+  }]
+}

+ 5 - 0
frameworks/C/libreactor/setup.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+
+fw_depends libreactor
+
+rest_server &

+ 20 - 0
toolset/setup/linux/frameworks/libreactor.sh

@@ -0,0 +1,20 @@
+#!/bin/bash
+
+RETCODE=$(fw_exists ${IROOT}/libreactor.installed)
+[ ! "$RETCODE" == 0 ] || { \
+  # Load environment variables
+  source $IROOT/libreactor.installed
+  return 0; }
+
+LIBREACTOR_HOME=$IROOT/libreactor_techempower
+
+git clone https://github.com/fredrikwidlund/libreactor_techempower
+cd $LIBREACTOR_HOME
+./autogen.sh
+./configure
+make
+
+echo "export LIBREACTOR_HOME=${LIBREACTOR_HOME}" >> $IROOT/libreactor.installed
+echo -e "export PATH=\$LIBREACTOR_HOME/:\$PATH" >> $IROOT/libreactor.installed
+
+source $IROOT/libreactor.installed