Skip to content

Commit

Permalink
Update report.cfm
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jul 15, 2024
1 parent 583fae4 commit 7aeb6e3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions custom/benchmark/report.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
dir = getDirectoryFromPath( getCurrentTemplatePath() ) & "artifacts";
files = directoryList( dir );
q = queryNew("version,java,type,time,runs,inspect,memory")
for (f in files){
q = queryNew( "version,java,type,time,runs,inspect,memory" );
for ( f in files ){
systemOutput ( f, true );
json = deserializeJson( fileRead( f ) );
Expand All @@ -25,7 +25,7 @@
//systemOutput( arguments.message, true );
if ( !FileExists( server.system.environment.GITHUB_STEP_SUMMARY ) ){
fileWrite( server.system.environment.GITHUB_STEP_SUMMARY, "#### #server.lucee.version# ");
fileAppend( server.system.environment.GITHUB_STEP_SUMMARY, server.system.environment.toJson());
//fileAppend( server.system.environment.GITHUB_STEP_SUMMARY, server.system.environment.toJson());
}
if ( arguments.throw ) {
Expand Down Expand Up @@ -59,6 +59,7 @@
</cfchartseries>
</cfchart>
<cfscript>
_logger( "## #UCase( inspect )# Benchmarks" );
_logger( "![#inspect# Benchmarks](data:image/png;base64,#toBase64( graph )#)" );
</cfscript>
</cfloop>
Expand All @@ -75,6 +76,7 @@
</cfchartseries>
</cfchart>
<cfscript>
_logger( "## Memory Benchmarks" );
_logger( "!Memory Benchmarks](data:image/png;base64,#toBase64( graph )#)" );
</cfscript>
</cfloop>

0 comments on commit 7aeb6e3

Please sign in to comment.