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 03ee71d commit 6eb5263
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions custom/benchmark/report.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
}
}
runs = q.runs;
function _logger( string message="", boolean throw=false ){
//systemOutput( arguments.message, true );
if ( !FileExists( server.system.environment.GITHUB_STEP_SUMMARY ) ){
Expand Down Expand Up @@ -135,7 +137,7 @@

<cfloop list="never,once" item="_inspect">
<cfchart chartheight="500" chartwidth="1024"
title="#UCase( _inspect )# Benchmarks - #q.runs# runs" format="png" name="graph"
title="#UCase( _inspect )# Benchmarks - #runs# runs" format="png" name="graph"
scaleFrom="#throughput_range.min#" scaleTo="#throughput_range.max#">
<cfchartseries type="line" seriesLabel="Hello World">
<cfloop query="q">
Expand All @@ -153,15 +155,15 @@
</cfchartseries>
</cfchart>
<cfscript>
_logger( "#### Inspect #UCase( _inspect )# Benchmarks - #q.runs# runs" );
_logger( "#### Inspect #UCase( _inspect )# Benchmarks - #runs# runs" );
_logger( "" );
_logger( "![Inspect #UCase( _inspect )# Benchmarks](#getImageBase64( graph )#)" );
_logger( "" );
</cfscript>
</cfloop>

<cfchart chartheight="500" chartwidth="1024"
title="Memory Benchmarks - #q.runs# runs" format="png" name="graph"
title="Memory Benchmarks - #runs# runs" format="png" name="graph"
scaleFrom="#mem_range.min#" scaleTo="#mem_range.max#">
<cfchartseries type="line" seriesLabel="Memory">
<cfloop query="q">
Expand All @@ -172,7 +174,7 @@
</cfchartseries>
</cfchart>
<cfscript>
_logger( "#### Memory Benchmarks - #q.runs# runs" );
_logger( "#### Memory Benchmarks - #runs# runs" );
_logger( "" );
_logger( "![Memory Benchmarks](#getImageBase64( graph )#)" );
_logger( "" );
Expand Down

0 comments on commit 6eb5263

Please sign in to comment.