From 406705bde5aa466971f0ee7b253eb344ea65bed8 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Mon, 15 Jul 2024 12:13:32 +0200 Subject: [PATCH] Update report.cfm --- custom/benchmark/report.cfm | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/custom/benchmark/report.cfm b/custom/benchmark/report.cfm index ac7fb87..86e5b74 100644 --- a/custom/benchmark/report.cfm +++ b/custom/benchmark/report.cfm @@ -5,7 +5,15 @@ q = queryNew("version,java,type,runs,inspect,memory") for (f in files){ systemOutput ( f, true ); - json = deserializeJson( fileRead( t ) ); + json = deserializeJson( fileRead( f ) ); + + memory = 0; + for ( m in json.memory.usage ){ + if ( isNumeric( json.memory.usage[ m ] ) ) + memory += json.memory.usage[ m ]; + } + json.run.memory = memory; + for ( r in json.data ){ StructAppend( r, json.run ); row = queryAddRow( q ); @@ -53,4 +61,20 @@ _logger( "![#inspect# Benchmarks](data:image/png;base64,#toBase64( graph )#)" ); + + + + + + + + + + + + + + + _logger( "!Memory Benchmarks](data:image/png;base64,#toBase64( graph )#)" ); + \ No newline at end of file