From: Laurent MAZET Date: Fri, 17 Oct 2025 16:03:27 +0000 (+0200) Subject: add a log table X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=da56974a8180979f1a8458631241dcb468acb415;p=benchmarks.git add a log table --- diff --git a/addlogdate.sh b/addlogdate.sh new file mode 100755 index 0000000..3a52f75 --- /dev/null +++ b/addlogdate.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +base=$(cd $(dirname $0); pwd) + +echo "

Simulation logs

" + +echo "" +echo "" + +echo "" + +for log; do + $base/getdate.awk $log | awk 'NR != 1 {gsub(/,/, ""}' +done + +echo "" +echo "
TestDedicated
core(s)
Load
(%)
Start dateEnd date
"); print "
" $0 "
" diff --git a/generatedoc.sh b/generatedoc.sh index 3ebfaea..538752f 100755 --- a/generatedoc.sh +++ b/generatedoc.sh @@ -41,6 +41,6 @@ for tab; do done -echo "

.

+echo "

.

" echo "" echo "" diff --git a/getdate.awk b/getdate.awk new file mode 100755 index 0000000..009b233 --- /dev/null +++ b/getdate.awk @@ -0,0 +1,28 @@ +#!/usr/bin/awk -f + +BEGIN { + OFS="," + if (!nohead) { + print "Test", "Dedicated core(s)", "Load (%)", "Start date", "End date" + } + start = "" +} + +/Test:/ { + sub (/^[^ ]* /, "") + test=$0 +} + +{ sub (/us$/, "") } + +/Dedicated/ { dcore=$3 } +/CPU load/ { load=$3 } + +/UTC/ { + if (start == "") { + start = $0 + } else { + print test, dcore, load, start, $0 + start = "" + } +} diff --git a/rawmeasures.gp b/rawmeasures.gp index 2afda02..38e17e5 100644 --- a/rawmeasures.gp +++ b/rawmeasures.gp @@ -13,7 +13,7 @@ set format y "%.1f" f(x) = x / 1000 set style data line -plot [:] [0:] data using (f($1)) notitle +plot [-5:] [0:] data using (f($1)) notitle #pause 5 "please wait 5s" diff --git a/readme.md b/readme.md index 9ec2a9e..f0e29ac 100644 --- a/readme.md +++ b/readme.md @@ -49,6 +49,13 @@ Extract data into a new directory ## Generate report ../generatedoc.sh *.tab > report.html + ../addlogdate.sh *.log > date.html + sed -i '/

\.<\/p>/ r date.html' report.html + sed -i '/

\.<\/p>/ d' report.html #libreoffice --convert-to odt report.html LANG=C pandoc report.html -t odt -o report.odt libreoffice --convert-to doc report.odt + +## Date + + for f in result.ods report.doc; do mv $f ${f/./-$(date +%Y%m%d).}; done