Skip to content

Commit

Permalink
update matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jan 6, 2025
1 parent 7963140 commit 4b58270
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 26 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
fail-fast: false
max-parallel: 1
matrix:
luceeVersion: [ 6.2/snapshot/zero, 6.2.0.166/rc/zero, 5.4/snapshot/light ] # 5.4/snapshot/light, 6.0/snapshot/light, 6.1/snapshot/light
javaVersion: [ 11, 21, 23, 24-ea ]
luceeVersion: [ 6.2/snapshot/zero, 6.2.0.166/rc/zero, 6.1/snapshot/zero, 5.4/snapshot/light ] # 6.0/snapshot/light
javaVersion: [ 11, 21, 23 ] # 24-ea
exclude:
- luceeVersion: 5.4/snapshot/light
javaVersion: 21
Expand All @@ -55,8 +55,12 @@ jobs:
javaVersion: 21
- luceeVersion: 6.0/snapshot/zero
javaVersion: 23
- luceeVersion: 6.0/snapshot/zero
javaVersion: 24-ea
- luceeVersion: 6.1/snapshot/zero
javaVersion: 23
- luceeVersion: 6.1/snapshot/zero
javaVersion: 24-ea
- luceeVersion: 6.2.0.166/rc/zero
javaVersion: 11
- luceeVersion: 6.2.0.166/rc/zero
Expand Down
48 changes: 24 additions & 24 deletions custom/benchmark/report.cfm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<cfscript>
dir = getDirectoryFromPath( getCurrentTemplatePath() ) & "artifacts";
files = directoryList( dir );
q = queryNew( "version,java,type,time,runs,inspect,memory,throughput,"
& "_min,_max,_avg,_med,error,raw,_perc,exeLog,totalDuration" );
Expand Down Expand Up @@ -53,8 +53,8 @@
exeLog = server.system.environment.EXELOG ?: "";
javaDistribution = server.system.environment.JAVA_DISTRIBUTION ?: "";
benchmarkCycles = server.system.environment.BENCHMARK_CYCLES ?: "";
javaDistribution = server.system.environment.JAVA_DISTRIBUTION ?: "";
benchmarkCycles = server.system.environment.BENCHMARK_CYCLES ?: "";
_logger( "## Summary Report" );
Expand All @@ -73,7 +73,7 @@
loop list="#filter.suites#" item="type" {
```
<cfquery name="q_win" dbtype="query">
select version, java, time,
select version, java, time,
throughput, _perc, _min, _avg, _med, _max, memory, error
from q
where type = <cfqueryparam value="#type#">
Expand All @@ -86,24 +86,24 @@
arrayAppend( winners[ q_win.version ], type );
}
_logger( "" );
_logger( "## Benchmark Winners by Version");
_logger( "#### Benchmark Winners by Version");
_logger( "" );
hdr = [ "Version", "Test(s)"];
div = [ "---", "---"];
_logger( "|" & arrayToList( hdr, "|" ) & "|" );
_logger( "|" & arrayToList( div, "|" ) & "|" );
loop collection=winners key="winner" value="wins"{
_logger("|" & winner & "|" & wrap(arrayToList(wins, ', '),100) & "|" );
_logger("|" & winner & "|"
& benchmarkUtils.markdownEscape( wrap( arrayToList( wins, ', ' ), 100 ) ) & "|" );
}
_logger( "" );
abort;
// report out per test
loop list="never,once" item="inspect" {
loop list="#filter.suites#" item="type" {
```
<cfquery name="q_rpt" dbtype="query">
select version, java, time,
select version, java, time,
throughput, _perc, _min, _avg, _med, _max, memory, error
from q
where type = <cfqueryparam value="#type#">
Expand All @@ -117,7 +117,7 @@
}
if (exeLog == "debug"){
_logger( "## Execution Log Cross Reference" );
_logger( "#### Execution Log Cross Reference" );
_logger( "" );
if ( structCount( tests ) ){
for ( type in tests ){
Expand All @@ -136,7 +136,7 @@
_logger( "No exeLog data found" );
}
}
</cfscript>
Expand All @@ -156,23 +156,23 @@
<cfloop list="never,once" item="_inspect">
<cfchart chartheight="500" chartwidth="1024"
<cfchart chartheight="500" chartwidth="1024"
title="#UCase( _inspect )# Benchmarks - #runs# runs" format="png" name="graph"
scaleFrom="#throughput_range.min#" scaleTo="#throughput_range.max#">
<cfchartseries type="line" seriesLabel="Hello World">
scaleFrom="#throughput_range.min#" scaleTo="#throughput_range.max#">
<cfchartseries type="line" seriesLabel="Hello World">
<cfloop query="q">
<cfif q.type eq "hello-world" and q.inspect eq _inspect>
<cfchartdata item="#q.version# #q.java#" value="#q.throughput#">
<cfchartdata item="#q.version# #q.java#" value="#q.throughput#">
</cfif>
</cfloop>
</cfloop>
</cfchartseries>
<cfchartseries type="line" seriesLabel="Json">
<cfchartseries type="line" seriesLabel="Json">
<cfloop query="q">
<cfif q.type eq "json" and q.inspect eq _inspect>>
<cfchartdata item="#q.version# #q.java#" value="#q.throughput#">
<cfchartdata item="#q.version# #q.java#" value="#q.throughput#">
</cfif>
</cfloop>
</cfchartseries>
</cfloop>
</cfchartseries>
</cfchart>
<cfscript>
_logger( "#### Inspect #UCase( _inspect )# Benchmarks - #runs# runs" );
Expand All @@ -182,15 +182,15 @@
</cfscript>
</cfloop>
<cfchart chartheight="500" chartwidth="1024"
<cfchart chartheight="500" chartwidth="1024"
title="Memory Benchmarks - #runs# runs" format="png" name="graph"
scaleFrom="#mem_range.min#" scaleTo="#mem_range.max#">
<cfchartseries type="line" seriesLabel="Memory">
scaleFrom="#mem_range.min#" scaleTo="#mem_range.max#">
<cfchartseries type="line" seriesLabel="Memory">
<cfloop query="q">
<cfif q.type eq "hello-world" and q.inspect eq "never">
<cfchartdata item="#q.version# #q.java#" value="#q.memory#">
<cfchartdata item="#q.version# #q.java#" value="#q.memory#">
</cfif>
</cfloop>
</cfloop>
</cfchartseries>
</cfchart>
<cfscript>
Expand Down

0 comments on commit 4b58270

Please sign in to comment.