Browse Source

master Beego, Revel, and Revel-QBS working now

Huge thanks to @kardianos on github for his involvement
in making this happen.
Mike Smith 11 years ago
parent
commit
692bee175b

+ 1 - 2
beego/benchmark_config

@@ -17,8 +17,7 @@
       "database_os": "Linux",
       "display_name": "beego",
       "notes": "",
-      "versus": "go",
-      "skip": "true"
+      "versus": "go"
     }
   }]
 }

+ 1 - 0
beego/setup.py

@@ -8,6 +8,7 @@ def start(args, logfile, errfile):
     subprocess.call("set GOPATH=C:\\FrameworkBenchmarks\\beego&&go get ./...", shell=True, cwd="beego", stderr=errfile, stdout=logfile)
     subprocess.Popen("setup.bat", shell=True, cwd="beego", stderr=errfile, stdout=logfile)
     return 0
+  os.environ["GOPATH"] = os.path.expanduser('~/FrameworkBenchmarks/beego')
   subprocess.call("go get ./...", shell=True, cwd="beego", stderr=errfile, stdout=logfile)
   subprocess.Popen("go run src/hello/hello.go".rsplit(" "), cwd="beego", stderr=errfile, stdout=logfile)
   return 0

+ 4 - 4
revel-jet/src/benchmark/conf/app.conf

@@ -13,8 +13,8 @@ results.chunked=false
 mode.dev=true
 watch=true
 
-log.trace.output = off
-log.info.output  = off
+log.trace.output = stderr
+log.info.output  = stderr
 log.warn.output  = stderr
 log.error.output = stderr
 
@@ -22,7 +22,7 @@ log.error.output = stderr
 mode.dev=false
 watch=false
 
-log.trace.output = off
-log.info.output  = off
+log.trace.output = stderr
+log.info.output  = stderr
 log.warn.output  = stderr
 log.error.output = stderr

+ 1 - 2
revel-qbs/benchmark_config

@@ -20,8 +20,7 @@
       "database_os": "Linux",
       "display_name": "revel-qbs",
       "notes": "",
-      "versus": "go",
-      "skip": "true"
+      "versus": "go"
     }
   }]
 }

+ 1 - 0
revel-qbs/setup.py

@@ -15,6 +15,7 @@ def start(args, logfile, errfile):
     subprocess.call(r"go build -o bin\revel.exe github.com/robfig/revel/revel", shell=True, cwd=CWD, env=env, stderr=errfile, stdout=logfile)
     subprocess.Popen(r"bin\revel.exe run benchmark prod".rsplit(" "), shell=True, cwd=CWD, env=env, stderr=errfile, stdout=logfile)
     return 0
+  os.environ["GOPATH"] = os.path.expanduser('~/FrameworkBenchmarks/revel-qbs')
   subprocess.call("go get -u github.com/robfig/revel/revel github.com/coocood/qbs", shell=True, cwd=CWD, stderr=errfile, stdout=logfile)
   subprocess.call("go build -o bin/revel github.com/robfig/revel/revel", shell=True, cwd=CWD, stderr=errfile, stdout=logfile)
   subprocess.Popen("bin/revel run benchmark prod".rsplit(" "), cwd=CWD, stderr=errfile, stdout=logfile)

+ 1 - 2
revel/benchmark_config

@@ -22,8 +22,7 @@
       "database_os": "Linux",
       "display_name": "revel",
       "notes": "",
-      "versus": "go",
-      "skip": "true"
+      "versus": "go"
     }
   }]
 }

+ 3 - 0
revel/setup.py

@@ -4,6 +4,8 @@ import os
 import setup_util
 import time
 
+
+
 def start(args, logfile, errfile):
   setup_util.replace_text("revel/src/benchmark/conf/app.conf", "tcp\(.*:3306\)", "tcp(" + args.database_host + ":3306)")
   if os.name == 'nt':
@@ -13,6 +15,7 @@ def start(args, logfile, errfile):
     subprocess.call(r"go build -o bin\revel.exe github.com/robfig/revel/revel", shell=True, cwd="revel", env=env, stderr=errfile, stdout=logfile)
     subprocess.Popen(r"bin\revel.exe run benchmark prod".rsplit(" "), shell=True, cwd="revel", env=env, stderr=errfile, stdout=logfile)
     return 0
+  os.environ["GOPATH"] = os.path.expanduser('~/FrameworkBenchmarks/revel')
   subprocess.call("go get -u github.com/robfig/revel/revel", shell=True, cwd="revel", stderr=errfile, stdout=logfile)
   subprocess.call("go build -o bin/revel github.com/robfig/revel/revel", shell=True, cwd="revel", stderr=errfile, stdout=logfile)
   subprocess.Popen("bin/revel run benchmark prod".rsplit(" "), cwd="revel", stderr=errfile, stdout=logfile)

+ 4 - 4
revel/src/benchmark/conf/app.conf

@@ -22,7 +22,7 @@ log.error.output = stderr
 mode.dev=false
 watch=false
 
-log.trace.output = off
-log.info.output  = off
-log.warn.output  = off
-log.error.output = %(app.name)s.log
+log.trace.output = stderr
+log.info.output  = stderr
+log.warn.output  = stderr
+log.error.output = stderr