Browse Source

Bumb v1.9.6 (#5683)

* bumb v1.9.2

* Bumb v1.9.3

* Bumb v1.9.5

* Bumb v1.9.6
Fenny 5 years ago
parent
commit
bd1bf2f9b7

+ 12 - 12
frameworks/Go/fiber/benchmark_config.json

@@ -3,12 +3,12 @@
   "tests": [
     {
       "default": {
-        "json_url": "/j",
-        "db_url": "/d",
-        "query_url": "/q?q=",
-        "fortune_url": "/f",
-        "update_url": "/u?q=",
-        "plaintext_url": "/p",
+        "json_url": "/json",
+        "db_url": "/db",
+        "query_url": "/queries?q=",
+        "fortune_url": "/fortune",
+        "update_url": "/update?q=",
+        "plaintext_url": "/plaintext",
         "port": 8080,
         "approach": "Realistic",
         "classification": "Platform",
@@ -26,12 +26,12 @@
         "versus": "go"
       },
       "prefork": {
-        "json_url": "/j",
-        "db_url": "/d",
-        "query_url": "/q?q=",
-        "fortune_url": "/f",
-        "update_url": "/u?q=",
-        "plaintext_url": "/p",
+        "json_url": "/json",
+        "db_url": "/db",
+        "query_url": "/queries?q=",
+        "fortune_url": "/fortune",
+        "update_url": "/update?q=",
+        "plaintext_url": "/plaintext",
         "port": 8080,
         "approach": "Realistic",
         "classification": "Platform",

+ 1 - 1
frameworks/Go/fiber/src/go.mod

@@ -4,6 +4,6 @@ go 1.14
 
 require (
 	github.com/valyala/quicktemplate v1.4.1
-	github.com/gofiber/fiber v1.9.2
+	github.com/gofiber/fiber v1.9.6
 	github.com/jackc/pgx/v4 v4.6.0
 )

+ 8 - 6
frameworks/Go/fiber/src/server.go

@@ -47,12 +47,12 @@ func main() {
 		ServerHeader:  "go",
 	})
 
-	app.Get("/p", plaintextHandler)
-	app.Get("/j", jsonHandler)
-	app.Get("/q", queriesHandler)
-	app.Get("/f", templateHandler)
-	app.Get("/d", dbHandler)
-	app.Get("/u", updateHandler)
+	app.Get("/plaintext", plaintextHandler)
+	app.Get("/json", jsonHandler)
+	app.Get("/queries", queriesHandler)
+	app.Get("/fortune", templateHandler)
+	app.Get("/db", dbHandler)
+	app.Get("/update", updateHandler)
 
 	app.Listen(8080)
 }
@@ -133,6 +133,8 @@ func initDatabase() {
 		maxConn = 8
 	}
 	if child {
+		maxConn = maxConn
+	} else {
 		maxConn = maxConn * 4
 	}