Browse Source

Initial commit for Go-MongoDB

Edward Bramanti 10 years ago
parent
commit
fbff790fd6

+ 3 - 0
frameworks/Go/go-mongodb/README.md

@@ -0,0 +1,3 @@
+# Go MongoDB Benchmarking Test
+
+This is the Go portion of a [benchmarking test suite](../), which uses MongoDB as its database.

+ 4 - 0
frameworks/Go/go-mongodb/bash_profile.sh

@@ -0,0 +1,4 @@
+# Set the root of our go installation
+export GOROOT=${IROOT}/go
+
+export GOPATH=${TROOT}

+ 28 - 0
frameworks/Go/go-mongodb/benchmark_config

@@ -0,0 +1,28 @@
+{
+  "framework": "go-mongodb",
+  "tests": [{
+    "default": {
+      "setup_file": "setup",
+      "json_url": "/json",
+      "db_url": "/db",
+      "query_url": "/queries?queries=",
+      "fortune_url": "/fortune",
+      "update_url": "/update?queries=",
+      "plaintext_url": "/plaintext",
+      "port": 8080,
+      "approach": "Realistic",
+      "classification": "Platform",
+      "database": "MongoDB",
+      "framework": "go",
+      "language": "Go",
+      "orm": "Raw",
+      "platform": "Go",
+      "webserver": "None",
+      "os": "Linux",
+      "database_os": "Linux",
+      "display_name": "go-mongodb",
+      "notes": "mongodb implementation of dropwizard example",
+      "versus": ""
+    }
+  }]
+}

+ 3 - 0
frameworks/Go/go-mongodb/install.sh

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

+ 2 - 0
frameworks/Go/go-mongodb/setup.bat

@@ -0,0 +1,2 @@
+set GOPATH=C:\FrameworkBenchmarks\go
+go run src\hello\hello.go

+ 8 - 0
frameworks/Go/go-mongodb/setup.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# Where to find the go executable
+export PATH="$GOROOT/bin:$PATH"
+
+go get ./...
+
+go run src/hello/hello.go &

+ 6 - 0
frameworks/Go/go-mongodb/source_code

@@ -0,0 +1,6 @@
+./go/src/
+./go/src/hello
+./go/src/hello/hello.go
+./go/templates/
+./go/templates/fortune.html
+./go/templates/layout.html

+ 0 - 0
frameworks/Go/go-mongodb/templates/fortune.html


+ 0 - 0
frameworks/Go/go-mongodb/templates/layout.html