Skip to content

Commit

Permalink
add table output
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jul 15, 2024
1 parent d8f9216 commit 01a439d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: true
max-parallel: 1
matrix:
luceeVersion: [ 5.4/snapshot/light, 6.0/snapshot/light, 6.1/snapshot/light, 6.1.0/snapshot/light, 6.2/snapshot/light ]
luceeVersion: [ 5.4/snapshot/light, 6.0/snapshot/light ]
javaVersion: [ 11, 21 ]
exclude:
- luceeVersion: 5.4/snapshot/jar
Expand Down
31 changes: 27 additions & 4 deletions custom/benchmark/report.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,33 @@
fileAppend( server.system.environment.GITHUB_STEP_SUMMARY, "> #arguments.message##chr(10)#");
throw arguments.message;
} else {
fileAppend( server.system.environment.GITHUB_STEP_SUMMARY, " #arguments.message##chr(10)#");
fileAppend( server.system.environment.GITHUB_STEP_SUMMARY, "#arguments.message##chr(10)#");
}
}
systemOutput( serializeJSON( q, true) );
hdr = [];
div = [];
loop list=q.columnlist item=col {
arrayAppend( hrd, col );
arrayAppend( div, "---" );
}
_logger( "" );
_logger( "|" & arrayToList( hdr, "|" ) & "|" );
_logger( "|" & arrayToList( div, "|" ) & "|" );
row = [];
loop query=q {
loop list=q.columnlist item=col {
arrayAppend( row, q [ col ] );
}
_logger( "|" & arrayToList( row, "|" ) & "|" );
row = [];
}
_logger( "" );
</cfscript>

<cfloop list="none,once" item="_inspect">
Expand All @@ -59,8 +80,9 @@
</cfchartseries>
</cfchart>
<cfscript>
_logger( "## #UCase( _inspect )# Benchmarks - #q.runs# runs" );
_logger( "![#_inspect# Benchmarks](data:image/png;base64,#toBase64( graph )#)" );
_logger( "## Inspect #UCase( _inspect )# Benchmarks - #q.runs# runs" );
_logger( "" );
_logger( "![Inspect #UCase( _inspect )# Benchmarks](data:image/png;base64,#toBase64( graph )#)" );
</cfscript>
</cfloop>

Expand All @@ -76,5 +98,6 @@
</cfchart>
<cfscript>
_logger( "## Memory Benchmarks - #q.runs# runs" );
_logger( "!Memory Benchmarks](data:image/png;base64,#toBase64( graph )#)" );
_logger( "" );
_logger( "![Memory Benchmarks](data:image/png;base64,#toBase64( graph )#)" );
</cfscript>

0 comments on commit 01a439d

Please sign in to comment.