Browse Source

These files weren't meant to be removed in pull #6337 (#6373)

Brad Wood 4 years ago
parent
commit
203aa9e68b

+ 0 - 46
frameworks/CFML/cfml-lucee/README.md

@@ -1,46 +0,0 @@
-# CFML Lucee Benchmarking Test
-
-### Test Type Implementation Source Code
-
-* [JSON](src/json.cfm)
-* [PLAINTEXT](src/plaintext.cfm)
-* [DB](src/db.cfm)
-* [QUERY](src/query.cfm)
-* [CACHED QUERY](src/cached_query.cfm)
-* [UPDATE](src/update.cfm)
-* [FORTUNES](src/fortunes.cfm)
-
-## Important Libraries
-The tests were run with:
-* [CommandBox](https://commandbox.ortusbooks.com/)
-* [ortussolutions/commandbox Docker image](https://hub.docker.com/r/ortussolutions/commandbox/)
-* [Lucee Server](https://www.lucee.org/)
-
-## Test URLs
-### JSON
-
-http://localhost:8080/json.cfm
-
-### PLAINTEXT
-
-http://localhost:8080/plaintext.cfm
-
-### DB
-
-http://localhost:8080/db.cfm
-
-### QUERY
-
-http://localhost:8080/query.cfm?queries=
-
-### CACHED QUERY
-
-http://localhost:8080/cached_query.cfm?queries=
-
-### UPDATE
-
-http://localhost:8080/update.cfm?queries=
-
-### FORTUNES
-
-http://localhost:8080/fortunes.cfm

+ 0 - 30
frameworks/CFML/cfml-lucee/benchmark_config.json

@@ -1,30 +0,0 @@
-{
-  "framework": "cfml-lucee",
-  "tests": [
-    {
-      "default": {
-        "json_url": "/json.cfm",
-        "db_url": "/db.cfm",
-        "query_url":"/queries.cfm?queries=",
-        "fortune_url": "/fortunes.cfm",
-        "plaintext_url": "/plaintext.cfm",
-        "update_url": "/updates.cfm?queries=",
-        "port": 8080,
-        "approach": "Realistic",
-        "classification": "Platform",
-        "database": "Postgres",
-        "framework": "None",
-        "language": "CFML",
-        "flavor": "None",
-        "orm": "raw",
-        "platform": "None",
-        "webserver": "None",
-        "os": "Linux",
-        "database_os": "Linux",
-        "display_name": "cfml-lucee",
-        "notes": "",
-        "versus": "None"
-      }
-    }
-  ]
-}

+ 0 - 14
frameworks/CFML/cfml-lucee/cfml-lucee.dockerfile

@@ -1,14 +0,0 @@
-FROM ortussolutions/commandbox:3.2.1
-
-COPY ./src/server.json /app/server.json
-COPY ./src/.cfconfig.json /app/.cfconfig.json
-
-RUN box install commandbox-cfconfig --verbose --force
-
-RUN ${BUILD_DIR}/util/warmup-server.sh
-
-RUN export FINALIZE_STARTUP=true;$BUILD_DIR/run.sh;unset FINALIZE_STARTUP
-
-EXPOSE 8080
-
-COPY ./src /app/

+ 0 - 14
frameworks/CFML/cfml-lucee/src/.cfconfig.json

@@ -1,14 +0,0 @@
-{
-    "datasources":{
-        "world":{
-            "database":"hello_world",
-            "dbdriver":"PostgreSQL",
-            "host":"tfb-database",
-            "password":"benchmarkdbpass",
-            "port":"5432",
-            "username":"benchmarkdbuser"
-        }
-    },
-    "inspectTemplate":"never",
-    "maxCFThreads":"512"
-}

+ 0 - 9
frameworks/CFML/cfml-lucee/src/db.cfm

@@ -1,9 +0,0 @@
-<cfsetting enablecfoutputonly=true>
-<cfheader name="Server" value="cfml-lucee">
-<cfheader name="Content-Type" value="application/json">
-<cfquery name="qry" datasource="world" returntype="array">
-    SELECT id, randomNumber
-    FROM World
-    WHERE id = <cfqueryparam value="#randRange( 1, 10000 )#" cfsqltype="integer">
-</cfquery>
-<cfoutput>#serializeJSON( qry[ 1 ] )#</cfoutput>

+ 0 - 13
frameworks/CFML/cfml-lucee/src/fortunes.cfm

@@ -1,13 +0,0 @@
-<cfsetting enablecfoutputonly=true>
-<cfheader name="Server" value="cfml-lucee">
-<cfheader name="Content-Type" value="text/html; charset=utf-8">
-<cfquery name="qry" datasource="world" returntype="array">
-    SELECT id, message
-    FROM Fortune
-</cfquery>
-<cfset qry.append( { 'id' : 0, 'message' : 'Additional fortune added at request time.' } )>
-<cfset qry = qry.sort( (a,b)=>compareNoCase(a.message,b.message) )>
-<cfoutput><!DOCTYPE html><html><head><title>Fortunes</title></head><body><table><tr><th>id</th><th>message</th></tr>
-<cfloop array="#qry#" index="row"><tr><td>#row.id#</td><td>#htmlEditFormat( row.message )#</td></tr></cfloop>
-</table></body></html>
-</cfoutput>

+ 0 - 4
frameworks/CFML/cfml-lucee/src/json.cfm

@@ -1,4 +0,0 @@
-<cfsetting enablecfoutputonly=true>
-<cfheader name="Server" value="cfml-lucee">
-<cfheader name="Content-Type" value="application/json">
-<cfoutput>#serializeJSON( { 'message' : 'Hello, World!' } )#</cfoutput>

+ 0 - 3
frameworks/CFML/cfml-lucee/src/plaintext.cfm

@@ -1,3 +0,0 @@
-<cfheader name="Server" value="cfml-lucee">
-<cfheader name="Content-Type" value="text/plain">
-<cfcontent reset="true">Hello, World!

+ 0 - 20
frameworks/CFML/cfml-lucee/src/queries.cfm

@@ -1,20 +0,0 @@
-<cfsetting enablecfoutputonly=true>
-<cfparam name="url.queries" default="1">
-<cfset url.queries = val( url.queries )>
-<cfif url.queries gt 500 >
-    <cfset url.queries = 500>
-<cfelseif url.queries lt 1 >
-    <cfset url.queries = 1>
-</cfif>
-<cfheader name="Server" value="cfml-lucee">
-<cfheader name="Content-Type" value="application/json">
-<cfset results = []>
-<cfloop times="#url.queries#">
-    <cfquery name="qry" datasource="world" returntype="array">
-        SELECT id, randomNumber
-        FROM World
-        WHERE id = <cfqueryparam value="#randRange( 1, 10000 )#" cfsqltype="integer">
-    </cfquery>
-    <cfset results.append( qry[ 1 ] )>
-</cfloop>
-<cfoutput>#serializeJSON( results )#</cfoutput>

+ 0 - 6
frameworks/CFML/cfml-lucee/src/server.json

@@ -1,6 +0,0 @@
-{
-    "profile" : "none",
-    "web" : {
-        "maxRequests" : 512
-    }
-}

+ 0 - 28
frameworks/CFML/cfml-lucee/src/updates.cfm

@@ -1,28 +0,0 @@
-<cfsetting enablecfoutputonly=true>
-<cfparam name="url.queries" default="1">
-<cfset url.queries = val( url.queries )>
-<cfif url.queries gt 500 >
-    <cfset url.queries = 500>
-<cfelseif url.queries lt 1 >
-    <cfset url.queries = 1>
-</cfif>
-<cfheader name="Server" value="cfml-lucee">
-<cfheader name="Content-Type" value="application/json">
-<cfset results = []>
-<cfloop times="#url.queries#">
-    <cfquery name="qry" datasource="world" returntype="array">
-        SELECT id, randomNumber
-        FROM World
-        WHERE id = <cfqueryparam value="#randRange( 1, 10000 )#" cfsqltype="integer">
-    </cfquery>
-    <cfset results.append( { 'id' : qry[ 1 ].id, 'randomNumber' : randRange( 1, 1000 ) } )>
-</cfloop>
-<cfquery datasource="world">
-    update World as w set
-        randomNumber = w2.randomNumber
-    from (values
-        #results.map( (r)=>"(#val( r.id )#, #val( r.randomNumber )#)" ).toList( ',' )#        
-        ) as w2(id,randomNumber)
-    where w2.id = w.id;
-</cfquery>
-<cfoutput>#serializeJSON( results )#</cfoutput>