Skip to content

Commit

Permalink
benchmark keyImpl to string
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Dec 13, 2024
1 parent ee38215 commit e92a989
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
11 changes: 8 additions & 3 deletions custom/benchmark/Application.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ component {
application.testSuite = [
"hello-world"
, "json"
, "db"
, "qoq-hsqldb"
//, "db"
//, "qoq-hsqldb"
, "json-date"
, "date-format"
, "set-cookie"
Expand All @@ -15,10 +15,15 @@ component {
, "loops"
, "primes"
, "toString"
, "xml"
, "toStringKey"
, "xml"
, "member-java"
, "member-cfml"
];

application.testSuite = [
"toStringKey"
];
}

function onRequestStart(){
Expand Down
11 changes: 11 additions & 0 deletions custom/benchmark/tests/toStringKey.cfm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<cfscript>
samples = {
key: createObject("java", "lucee.runtime.type.KeyImpl").init("zac")
}
for (s in samples){
loop times=1000000 {
echo(samples[s].toString());
if (not samples[s]) echo(1)
}
}
</cfscript>

0 comments on commit e92a989

Please sign in to comment.