Ver código fonte

Change Resin test port and remove unneeded code

jamming 8 anos atrás
pai
commit
5b0b491048

+ 1 - 1
frameworks/Kotlin/hexagon/benchmark_config.json

@@ -38,7 +38,7 @@
                 "update_url" : "/update?queries=",
                 "plaintext_url" : "/plaintext",
 
-                "port" : 9090,
+                "port" : 8080,
 
                 "approach" : "Realistic",
                 "classification" : "Micro",

+ 1 - 1
frameworks/Kotlin/hexagon/build.gradle

@@ -17,7 +17,7 @@ apply plugin: 'war'
 mainClassName = "co.there4.hexagon.BenchmarkKt"
 applicationDefaultJvmArgs = [
     '-Xms512M',
-    '-Xmx512M',
+    '-Xmx1024M',
     '-server',
     '-XX:+UseNUMA',
     '-XX:+UseParallelGC',

+ 0 - 29
frameworks/Kotlin/hexagon/src/main/kotlin/co/there4/hexagon/Benchmark.kt

@@ -87,35 +87,6 @@ fun benchmarkRoutes(srv: Router = server) {
 }
 
 fun main(args: Array<String>) {
-    initialize()
     benchmarkRoutes()
-
-    crud(worldRepository)
-    crud(fortuneRepository)
-
-    get("/fortunes_page") {
-        page {
-            html {
-                head {
-                    title { +"Fortunes" }
-                }
-                body {
-                    table {
-                        tr {
-                            th { +"id" }
-                            th { +"message" }
-                        }
-                        listFortunes().forEach {
-                            tr {
-                                td { +it._id }
-                                td { +it.message }
-                            }
-                        }
-                    }
-                }
-            }
-        }
-    }
-
     run()
 }

+ 0 - 2
frameworks/Kotlin/hexagon/src/test/kotlin/co/there4/hexagon/BenchmarkTest.kt

@@ -33,7 +33,6 @@ class BenchmarkTest {
             one_hundred_queries()
             five_hundred_queries()
             fortunes()
-            fortune_page()
             no_updates_parameter()
             empty_updates_parameter()
             text_updates_parameter()
@@ -63,7 +62,6 @@ class BenchmarkTest {
     }
 
     fun fortunes() = fortunesCheck("/fortunes")
-    fun fortune_page() = fortunesCheck("/fortunes_page")
 
     fun no_query_parameter() {
         val response = client.get("/db")