Browse Source

Pedestal now installs and passes both JSON and plaintext

Zane Kansil 10 years ago
parent
commit
ca7e74f219

+ 5 - 0
frameworks/Clojure/pedestal/bash_profile.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+
+export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
+
+export LEIN_HOME=$IROOT/lein

+ 23 - 0
frameworks/Clojure/pedestal/benchmark_config

@@ -0,0 +1,23 @@
+{
+  "framework": "pedestal",
+  "tests": [{
+    "default": {
+      "setup_file": "setup",
+      "json_url": "/json",
+      "plaintext_url": "/plaintext",
+      "port": 8080,
+      "approach": "Realistic",
+      "classification": "Micro",
+      "database": "MySQL",
+      "orm": "micro",
+      "framework": "pedestal",
+      "language": "Clojure",
+      "platform": "Servlet",
+      "webserver": "Jetty",
+      "os": "Linux",
+      "database_os": "Linux",
+      "display_name": "pedestal",
+      "notes": ""
+    }
+  }]
+}

+ 3 - 0
frameworks/Clojure/pedestal/install.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+
+fw_depends leiningen java

+ 10 - 0
frameworks/Clojure/pedestal/setup.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+# adopted from compojure/setup.sh
+
+$LEIN_HOME/bin/lein deps
+rm -rf target
+# pack all dependencies into a single jar: target/pedestal-standalone.jar
+$LEIN_HOME/bin/lein uberjar
+# -server is much faster
+# 'lein run' passes '-client -XX:+TieredCompilation -XX:TieredStopAtLevel=1' which make it starts fast, but runs slow
+$JAVA_HOME/bin/java -server -jar target/pedestal-standalone.jar &