Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jul 16, 2024
1 parent 33b7cab commit 883f683
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions custom/benchmark/index.cfm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<cfscript>
runs = server.system.environment.BENCHMARK_CYCLES ?: 20000;
runs = server.system.environment.BENCHMARK_CYCLES ?: 100000;
arr = [];
warmup = []
Expand All @@ -11,22 +11,22 @@
runs: runs
}
};
ArraySet( arr, 1, runs, 0 );
ArraySet( warmup, 1, 100, 0 );
_memBefore = reportMem( "", {}, "before", "HEAP" );
_memBefore = reportMem( "", {}, "before", "HEAP" );
loop list="once,never" item="inspect" {
configImport( {"inspectTemplate": inspect }, "server", "admin" );
loop list="#application.testSuite.toList()#" item="type" {
ArrayEach( arr, function( item ){
_internalRequest(
template: "/tests/#type#.cfm"
);
}, true );
systemOutput( "Sleeping 2s first, after warmup", true );
systemOutput( "Sleeping 2s first, after warmup", true );
sleep( 2000 ); // time to settle
systemOutput( "Running #type# [#numberFormat( runs )#] times, inspect: [#inspect#]", true );
Expand All @@ -43,7 +43,7 @@
ArrayAppend( results.data, {
time: time,
inspect: inspect,
type: type
type: type
});
}
}
Expand Down Expand Up @@ -86,7 +86,7 @@
continue;
if (qry.max == -1)
var perc = 0;
else
else
var perc = int( ( qry.used / qry.max ) * 100 );
//if(qry.max<0 || qry.used<0 || perc<90) continue;
//if(qry.max<0 || qry.used<0 || perc<90) continue;
Expand Down
2 changes: 1 addition & 1 deletion custom/benchmark/report.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
loop list="once,never" item="inspect" {
loop list="#application.testSuite.toList()#" item="type" {
dumpTable( q_hello_once, type, inspect, replace(type,"-", " ", "all") & " - " & UCase( inspect ) );
dumpTable( q, type, inspect, replace(type,"-", " ", "all") & " - " & UCase( inspect ) );
}
}
Expand Down

0 comments on commit 883f683

Please sign in to comment.