Browse Source

Added rubinius as a platform (#511)

Richard Nienaber 11 years ago
parent
commit
37027d8b6c

+ 22 - 0
frameworks/Ruby/grape/benchmark_config

@@ -23,6 +23,28 @@
       "notes": "",
       "versus": "rack-puma-jruby"
     },
+    "puma-rbx": {
+      "setup_file": "run_rbx_puma",
+      "json_url": "/json",
+      "db_url": "/db", 
+      "query_url": "/query?queries=", 
+      "update_url": "/updates?queries=", 
+      "plaintext_url": "/plaintext",
+      "port": 8080,
+      "approach": "Realistic",
+      "classification": "Micro",
+      "database": "MySQL",
+      "framework": "grape",
+      "language": "Ruby",
+      "orm": "Full",
+      "platform": "Rubinius",
+      "webserver": "Puma",
+      "os": "Linux",
+      "database_os": "Linux",
+      "display_name": "puma-rbx-grape",
+      "notes": "",
+      "versus": "rack-puma-rbx"
+    },
     "ruby-puma": {
       "setup_file": "run_mri_puma",
       "json_url": "/json",

+ 3 - 0
frameworks/Ruby/grape/install.sh

@@ -7,3 +7,6 @@ rvm ruby-2.0.0-p0 do bundle install --gemfile=$TROOT/Gemfile
 
 rvm install jruby-1.7.8
 rvm jruby-1.7.8 do bundle install --gemfile=$TROOT/Gemfile
+
+rvm install rbx-2.2.10
+rvm rbx-2.2.10 do bundle install --gemfile=$TROOT/Gemfile

+ 10 - 0
frameworks/Ruby/grape/run_rbx_puma.py

@@ -0,0 +1,10 @@
+import helper
+from helper import Command
+
+def start(args, logfile, errfile):
+  helper.set_database_host(args)
+  command = Command("rvm rbx-2.2.10 do bundle exec puma -b tcp://0.0.0.0:8080 -e production", False)
+  return helper.run([command], logfile, errfile, args.troot)
+
+def stop(logfile, errfile):
+  return helper.stop('puma', logfile, errfile)

+ 23 - 0
frameworks/Ruby/padrino/benchmark_config

@@ -24,6 +24,29 @@
       "notes": "",
       "versus": "rack-jruby"
     },
+    "puma-rbx": {
+      "setup_file": "run_rbx_puma",
+      "json_url": "/json",
+      "db_url": "/db", 
+      "query_url": "/queries?queries=", 
+      "fortune_url": "/fortunes",
+      "update_url": "/updates?queries=", 
+      "plaintext_url": "/plaintext",
+      "port": 8080,
+      "approach": "Realistic",
+      "classification": "Micro",
+      "database": "MySQL",
+      "framework": "padrino",
+      "language": "Ruby",
+      "orm": "Full",
+      "platform": "Rubinius",
+      "webserver": "Puma",
+      "os": "Linux",
+      "database_os": "Linux",
+      "display_name": "rbx-padrino",
+      "notes": "",
+      "versus": "rack-rbx"
+    },
     "torqbox": {
       "setup_file": "run_torqbox",
       "json_url": "/json",

+ 3 - 0
frameworks/Ruby/padrino/install.sh

@@ -7,3 +7,6 @@ rvm ruby-2.0.0-p0 do bundle install --gemfile=$TROOT/Gemfile
 
 rvm install jruby-1.7.8
 rvm jruby-1.7.8 do bundle install --gemfile=$TROOT/Gemfile
+
+rvm install rbx-2.2.10
+rvm rbx-2.2.10 do bundle install --gemfile=$TROOT/Gemfile

+ 10 - 0
frameworks/Ruby/padrino/run_rbx_puma.py

@@ -0,0 +1,10 @@
+import helper
+from helper import Command
+
+def start(args, logfile, errfile):
+  db_host = "DB_HOST={0}".format(args.database_host or 'localhost')
+  command = Command(db_host + " rvm rbx-2.2.10 do bundle exec puma", False)
+  return helper.run([command], logfile, errfile, args.troot)
+
+def stop(logfile, errfile):
+  return helper.stop('puma', logfile, errfile)

+ 21 - 0
frameworks/Ruby/rack/benchmark_config

@@ -22,6 +22,27 @@
       "display_name": "rack",
       "notes": ""
     },
+    "puma-rbx": {
+      "setup_file": "run_rbx_puma",
+      "json_url": "/json",
+      "db_url": "/db", 
+      "query_url": "/queries?queries=", 
+      "update_url": "/updates?queries=", 
+      "plaintext_url": "/plaintext",
+      "port": 8080,
+      "approach": "Stripped",
+      "classification": "Platform",
+      "database": "MySQL",
+      "framework": "rack",
+      "language": "Ruby",
+      "orm": "Raw",
+      "platform": "Rubinius",
+      "webserver": "Puma",
+      "os": "Linux",
+      "database_os": "Linux",
+      "display_name": "rack-rbx",
+      "notes": ""
+    },
     "puma": {
       "setup_file": "run_mri_puma",
       "json_url": "/json",

+ 3 - 0
frameworks/Ruby/rack/install.sh

@@ -7,3 +7,6 @@ rvm ruby-2.0.0-p0 do bundle install --gemfile=$TROOT/Gemfile
 
 rvm install jruby-1.7.8
 rvm jruby-1.7.8 do bundle install --gemfile=$TROOT/Gemfile
+
+rvm install rbx-2.2.10
+rvm rbx-2.2.10 do bundle install --gemfile=$TROOT/Gemfile

+ 10 - 0
frameworks/Ruby/rack/run_rbx_puma.py

@@ -0,0 +1,10 @@
+import helper
+from helper import Command
+
+def start(args, logfile, errfile):
+  helper.set_database_host(args)
+  command = Command("rvm rbx-2.2.10 do bundle exec puma -b tcp://0.0.0.0:8080 -e production", False)
+  return helper.run([command], logfile, errfile, args.troot)
+
+def stop(logfile, errfile):
+  return helper.stop('puma', logfile, errfile)

+ 23 - 0
frameworks/Ruby/rails/benchmark_config

@@ -24,6 +24,29 @@
       "notes": "",
       "versus": "rack-puma-jruby"
     },
+    "puma-rbx": {
+      "setup_file": "run_rbx_puma",
+      "json_url": "/hello_world/json",
+      "db_url": "/hello_world/db",
+      "query_url": "/hello_world/query?queries=",
+      "fortune_url": "/fortune",
+      "update_url": "/update?queries=",
+      "plaintext_url": "/plaintext",
+      "port": 8080,
+      "approach": "Realistic",
+      "classification": "Fullstack",
+      "database": "MySQL",
+      "framework": "rails",
+      "language": "Ruby",
+      "orm": "Full",
+      "platform": "Rubinius",
+      "webserver": "Puma",
+      "os": "Linux",
+      "database_os": "Linux",
+      "display_name": "puma-rbx-rails",
+      "notes": "",
+      "versus": "rack-puma-rbx"
+    },
     "ruby-puma": {
       "setup_file": "run_mri_puma",
       "json_url": "/hello_world/json",

+ 4 - 1
frameworks/Ruby/rails/install.sh

@@ -6,4 +6,7 @@ rvm install 2.1.2
 rvm 2.1.2 do bundle install --gemfile=$TROOT/Gemfile
 
 rvm install jruby-1.7.13
-rvm jruby-1.7.13 do bundle install --gemfile=$TROOT/Gemfile
+rvm jruby-1.7.13 do bundle install --gemfile=$TROOT/Gemfile
+
+rvm install rbx-2.2.10
+rvm rbx-2.2.10 do bundle install --gemfile=$TROOT/Gemfile

+ 10 - 0
frameworks/Ruby/rails/run_rbx_puma.py

@@ -0,0 +1,10 @@
+import helper
+from helper import Command
+
+def start(args, logfile, errfile):
+  db_host = "DB_HOST={0}".format(args.database_host or 'localhost')
+  command = Command(db_host + " rvm rbx-2.2.10 do bundle exec puma -b tcp://0.0.0.0:8080 -e production", False)
+  return helper.run([command], logfile, errfile, args.troot)
+
+def stop(logfile, errfile):
+  return helper.stop('puma', logfile, errfile)

+ 23 - 0
frameworks/Ruby/sinatra/benchmark_config

@@ -24,6 +24,29 @@
       "notes": "",
       "versus": "rack-jruby-puma"
     },
+    "puma-rbx": {
+      "setup_file": "run_rbx_puma",
+      "json_url": "/json",
+      "db_url": "/db",
+      "query_url": "/queries?queries=",
+      "fortune_url": "/fortunes",
+      "update_url": "/updates?queries=", 
+      "plaintext_url": "/plaintext",
+      "port": 8080,
+      "approach": "Realistic",
+      "classification": "Micro",
+      "database": "MySQL",
+      "framework": "sinatra",
+      "language": "Ruby",
+      "orm": "Full",
+      "platform": "Rubinius",
+      "webserver": "Puma",
+      "os": "Linux",
+      "database_os": "Linux",
+      "display_name": "sinatra-rbx-puma",
+      "notes": "",
+      "versus": "rack-rbx-puma"
+    },
     "puma": {
       "setup_file": "run_mri_puma",
       "json_url": "/json",

+ 3 - 0
frameworks/Ruby/sinatra/install.sh

@@ -7,3 +7,6 @@ rvm ruby-2.0.0-p0 do bundle install --gemfile=$TROOT/Gemfile
 
 rvm install jruby-1.7.8
 rvm jruby-1.7.8 do bundle install --gemfile=$TROOT/Gemfile
+
+rvm install rbx-2.2.10
+rvm rbx-2.2.10 do bundle install --gemfile=$TROOT/Gemfile

+ 10 - 0
frameworks/Ruby/sinatra/run_rbx_puma.py

@@ -0,0 +1,10 @@
+import helper
+from helper import Command
+
+def start(args, logfile, errfile):
+  db_host = "DB_HOST={0}".format(args.database_host or 'localhost')
+  command = Command(db_host + " rvm rbx-2.2.10 do bundle exec puma", False)
+  return helper.run([command], logfile, errfile, args.troot)
+
+def stop(logfile, errfile):
+  return helper.stop('puma', logfile, errfile)