Browse Source

[groovy/hot] Remove Hot framework (#10362)

The current test are both failing as they use an EOL version of Java.
Hot hasn't been updated in 3 years.
Petrik de Heus 2 weeks ago
parent
commit
065589b794

+ 0 - 83
frameworks/Groovy/hot/benchmark_config.json

@@ -1,83 +0,0 @@
-{
-  "framework": "hot",
-  "tests": [{
-    "default": {
-      "json_url": "/rest/json",
-      "plaintext_url": "/rest/plaintext",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Platform",
-      "database": "None",
-      "framework": "Hot",
-      "language": "Groovy",
-      "orm": "Raw",
-      "platform": "Jetty",
-      "webserver": "Jetty",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "Hot",
-      "notes": "",
-      "versus": ""
-    },
-    "mongodb" : {
-      "db_url": "/rest/db/mongodb",
-      "query_url": "/rest/queries/mongodb?queries=",
-      "fortune_url": "/rest/fortunes/mongodb",
-      "update_url": "/rest/updates/mongodb?queries=",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Platform",
-      "database": "MongoDB",
-      "framework": "Hot",
-      "language": "Groovy",
-      "orm": "Raw",
-      "platform": "Jetty",
-      "webserver": "Jetty",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "Hot",
-      "notes": "",
-      "versus": "",
-      "tags": ["broken"]
-    }, "postgres" : {
-      "db_url": "/rest/db/pgsql",
-      "query_url": "/rest/queries/pgsql?queries=",
-      "fortune_url": "/rest/fortunes/pgsql",
-      "update_url": "/rest/updates/pgsql?queries=",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Platform",
-      "database": "Postgres",
-      "framework": "Hot",
-      "language": "Groovy",
-      "orm": "Raw",
-      "platform": "Jetty",
-      "webserver": "Jetty",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "Hot",
-      "notes": "",
-      "versus": "",
-      "tags": ["broken"]
-    }, "mysql" : {
-      "db_url": "/rest/db/mysql",
-      "query_url": "/rest/queries/mysql?queries=",
-      "fortune_url": "/rest/fortunes/mysql",
-      "update_url": "/rest/updates/mysql?queries=",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Platform",
-      "database": "MySQL",
-      "framework": "Hot",
-      "language": "Groovy",
-      "orm": "Raw",
-      "platform": "Jetty",
-      "webserver": "Jetty",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "Hot",
-      "notes": "",
-      "versus": ""
-    }
-  }]
-}

+ 0 - 16
frameworks/Groovy/hot/config-mysql.json

@@ -1,16 +0,0 @@
-{
-  "name": "techempower",
-  "version": "0.1",
-  "devMode": false,
-  "dataSources": [
-    {
-      "name": "mysql",
-      "engine": "MYSQL",
-      "hostname": "tfb-database",
-      "port": 3306,
-      "database": "hello_world",
-      "username": "benchmarkdbuser",
-      "password": "benchmarkdbpass"
-    }
-  ]
-}

+ 0 - 16
frameworks/Groovy/hot/config-pgsql.json

@@ -1,16 +0,0 @@
-{
-  "name": "techempower",
-  "version": "0.1",
-  "devMode": false,
-  "dataSources": [
-    {
-      "name": "pgsql",
-      "engine": "PGSQL",
-      "hostname": "tfb-database",
-      "port": 5432,
-      "database": "hello_world",
-      "username": "benchmarkdbuser",
-      "password": "benchmarkdbpass"
-    }
-  ]
-}

+ 0 - 16
frameworks/Groovy/hot/config.json

@@ -1,16 +0,0 @@
-{
-  "name": "techempower",
-  "version": "0.1",
-  "devMode": false,
-  "dataSources": [
-    {
-      "name": "mongo",
-      "engine": "MONGODB",
-      "hostname": "tfb-database",
-      "port": 27017,
-      "database": "hello_world",
-      "username": "",
-      "password": ""
-    }
-  ]
-}

+ 0 - 60
frameworks/Groovy/hot/config.toml

@@ -1,60 +0,0 @@
-[framework]
-name = "hot"
-
-[main]
-urls.plaintext = "/rest/plaintext"
-urls.json = "/rest/json"
-approach = "Realistic"
-classification = "Platform"
-database = "None"
-database_os = "Linux"
-os = "Linux"
-orm = "Raw"
-platform = "Jetty"
-webserver = "Jetty"
-versus = ""
-
-[mongodb]
-urls.db = "/rest/db/mongodb"
-urls.query = "/rest/queries/mongodb?queries="
-urls.update = "/rest/updates/mongodb?queries="
-urls.fortune = "/rest/fortunes/mongodb"
-approach = "Realistic"
-classification = "Platform"
-database = "MongoDB"
-database_os = "Linux"
-os = "Linux"
-orm = "Raw"
-platform = "Jetty"
-webserver = "Jetty"
-versus = ""
-
-[postgres]
-urls.db = "/rest/db/pgsql"
-urls.query = "/rest/queries/pgsql?queries="
-urls.update = "/rest/updates/pgsql?queries="
-urls.fortune = "/rest/fortunes/pgsql"
-approach = "Realistic"
-classification = "Platform"
-database = "Postgres"
-database_os = "Linux"
-os = "Linux"
-orm = "Raw"
-platform = "Jetty"
-webserver = "Jetty"
-versus = ""
-
-[mysql]
-urls.db = "/rest/db/mysql"
-urls.query = "/rest/queries/mysql?queries="
-urls.update = "/rest/updates/mysql?queries="
-urls.fortune = "/rest/fortunes/mysql"
-approach = "Realistic"
-classification = "Platform"
-database = "MySQL"
-database_os = "Linux"
-os = "Linux"
-orm = "Raw"
-platform = "Jetty"
-webserver = "Jetty"
-versus = ""

+ 0 - 12
frameworks/Groovy/hot/hot-mongodb.dockerfile

@@ -1,12 +0,0 @@
-FROM openjdk:8-jdk
-WORKDIR /hot
-COPY shows shows
-COPY config.json config.json
-ENV HOT_VERSION 0.9.15-SNAPSHOT
-RUN curl -sL https://github.com/dsolimando/Hot/releases/download/${HOT_VERSION}/hot-${HOT_VERSION}.tar.gz | tar xz
-ENV HOT_HOME /hot/hot-${HOT_VERSION}
-ENV PATH ${HOT_HOME}:${PATH}
-
-EXPOSE 8080
-
-CMD ["hot", "run"]

+ 0 - 12
frameworks/Groovy/hot/hot-mysql.dockerfile

@@ -1,12 +0,0 @@
-FROM openjdk:8-jdk
-WORKDIR /hot
-COPY shows shows
-COPY config-mysql.json config.json
-ENV HOT_VERSION 0.9.15-SNAPSHOT
-RUN curl -sL https://github.com/dsolimando/Hot/releases/download/${HOT_VERSION}/hot-${HOT_VERSION}.tar.gz | tar xz
-ENV HOT_HOME /hot/hot-${HOT_VERSION}
-ENV PATH ${HOT_HOME}:${PATH}
-
-EXPOSE 8080
-
-CMD ["hot", "run"]

+ 0 - 12
frameworks/Groovy/hot/hot-postgres.dockerfile

@@ -1,12 +0,0 @@
-FROM openjdk:8-jdk
-WORKDIR /hot
-COPY shows shows
-COPY config-pgsql.json config.json
-ENV HOT_VERSION 0.9.15-SNAPSHOT
-RUN curl -sL https://github.com/dsolimando/Hot/releases/download/${HOT_VERSION}/hot-${HOT_VERSION}.tar.gz | tar xz
-ENV HOT_HOME /hot/hot-${HOT_VERSION}
-ENV PATH ${HOT_HOME}:${PATH}
-
-EXPOSE 8080
-
-CMD ["hot", "run"]

+ 0 - 12
frameworks/Groovy/hot/hot.dockerfile

@@ -1,12 +0,0 @@
-FROM openjdk:8-jdk
-WORKDIR /hot
-COPY shows shows
-COPY config.json config.json
-ENV HOT_VERSION 0.9.15-SNAPSHOT
-RUN curl -sL https://github.com/dsolimando/Hot/releases/download/${HOT_VERSION}/hot-${HOT_VERSION}.tar.gz | tar xz
-ENV HOT_HOME /hot/hot-${HOT_VERSION}
-ENV PATH ${HOT_HOME}:${PATH}
-
-EXPOSE 8080
-
-CMD ["hot", "run"]

+ 0 - 122
frameworks/Groovy/hot/shows/benchmark.show.groovy

@@ -1,122 +0,0 @@
-import org.apache.commons.lang3.StringEscapeUtils
-
-show.scale()
-
-def mongo = show.dbs.mongo
-def pgsqldb = show.dbs.pgsql
-def mysql = show.dbs.mysql
-
-def generator = new Random ()
-
-def generate = {
-	Math.max(generator.nextInt(10000),1)
-}
-
-def validateNumQueries = {
-	Integer numQueries
-
-	if (!it) numQueries = 1
-
-	try {
-		numQueries = it[0] as Integer
-	} catch (e) {
-		numQueries = 1
-	}
-	Math.max(1,Math.min(500,numQueries))
-}
-
-def query = { db, idLabel = '_id' ->
-    db.world.findOne([(idLabel):generate()])
-}
-
-rest.get('/db/mongodb').then { query mongo }
-rest.get('/db/pgsql').then { query pgsqldb, 'id' }
-rest.get('/db/mysql').then { query mysql, 'id' }
-
-def queries = { req, db, idLabel = '_id' ->
-
-    def numQueries = validateNumQueries(req?.requestParams?.queries)
-    def deferred = show.Deferred()
-    def promise = deferred.promise()
-    def results = []
-
-    (1..numQueries).each { i ->
-        promise = promise.then {
-            db.world.findOne((idLabel):generate())
-        }.then { world ->
-            results << world
-            results
-        }
-    }
-    deferred.resolve()
-    promise
-}
-
-rest.get('/queries/mongodb').then { req -> queries req, mongo }
-rest.get('/queries/pgsql').then { req -> queries req, pgsqldb, 'id' }
-rest.get('/queries/mysql').then { req -> queries req, mysql, 'id' }
-
-def template = { content ->
-    """<!DOCTYPE html><html><head><title>Fortunes</title></head><body><table><tr><th>id</th><th>message</th></tr>
-$content
-</table></body></html>
-"""
-}
-
-def fortune = { db, idLabel = '_id', parseId = { it } ->
-    db.fortune.find().promise().then { fortunes ->
-
-        fortunes << [(idLabel):'0', message:'Additional fortune added at request time.']
-        response = template(fortunes
-                .sort { it.message }
-                .collect({
-                    "<tr><td>${parseId(it[idLabel])}</td><td>${StringEscapeUtils.escapeHtml4(it.message)}</td></tr>"
-                }).join('')
-        )
-        new hot.Response(200,['Content-Type':'text/html'], response)
-    }
-}
-
-rest.get('/fortunes/mongodb').then {
-    fortune mongo, '_id', { Float.parseFloat(it) as Integer }
-}
-rest.get('/fortunes/pgsql').then { fortune pgsqldb, 'id' }
-rest.get('/fortunes/mysql').then { fortune mysql, 'id' }
-
-def update = { req, db, idLabel = '_id' ->
-    def numQueries = validateNumQueries(req?.requestParams?.queries)
-
-    def deferred = show.Deferred()
-    def promise = deferred.promise()
-    def results = []
-
-    (1..numQueries).each { i ->
-        def genId = generate()
-
-        promise = promise.then {
-            db.world.findOne((idLabel):genId).promise()
-        }.then { world ->
-            world.randomNumber = generate()
-            db.world.update([(idLabel):genId],[$set:[randomNumber:world.randomNumber]]).then {
-                world
-            }
-        }.then { world ->
-            results << world
-            results
-        }
-    }
-    deferred.resolve()
-    promise
-}
-
-rest.get('/updates/mongodb').then { req -> update req, mongo }
-rest.get('/updates/pgsql').then { req -> update req, pgsqldb, 'id' }
-rest.get('/updates/mysql').then { req -> update req, mysql, 'id' }
-
-rest.get("/json").then {
-    [message:'Hello, World!']
-}
-
-rest.get('/plaintext').then {
-    new hot.Response(200,['Content-Type':'text/plain'],'Hello, World!')
-}