# Take the list of files and turn them into an html file that points # at their context & mem latency GIFs. # # Usage: html-list file file file.... # # Hacked into existence by Larry McVoy (lm@sun.com now lm@sgi.com). # Copyright (c) 1995 Larry McVoy. GPLed software. # $Id$ eval 'exec perl -Ssw $0 "$@"' if 0; open(H, ">HTML/specific.html"); print H <LMBENCH System Results

LMBENCH System Results

Summary of results


EOF # The order that is passed in is the order of the generated # graphs so save that. $val = 0; foreach $file (@ARGV) { $number{$file} = ++$val; } # Now sort them so we can group by OS @ARGV = sort(@ARGV); # Figure out the different OS foreach $file (@ARGV) { ($os = $file) =~ s|/.*||; push(@os, $os); $done{$os} = 0; } foreach $os (@os) { next if $done{$os}; $done{$os} = 1; # Print out an OS specific heading print H "

Results from $os

\n"; for ($i = 0; $i <= $#os; $i++) { $file = $ARGV[$i]; next unless $file =~ /$os/; open(F, $file); $_ = ; close(F); next unless /lmbench1.[01]/; chop; $title = $_; #s/.lmbench1.? results for //; ($sys = $file) =~ s|.*/||; if ($i > 0) { ($prev_sys = $ARGV[$i - 1]) =~ s|.*/||; } if ($i < $#os) { ($next_sys = $ARGV[$i + 1]) =~ s|.*/||; } print H <Dataset: $sys

$title

Context switch details, memory bandwidths, file reread vs. memory bandwidths, and memory latencies. EOF # Create the files referencing the data GIFs $N = sprintf("%02d", $number{$file}); $prev = $next = ""; %label = ('ctx', 'context switching', 'mem', 'memory latency', 'bwmem', 'memory bandwidth', 'bwfile', 'file reread bandwidth'); %doc = ('ctx', 'lat_ctx.8.html', 'mem', 'lat_mem_rd.8.html', 'bwmem', 'bw_mem.8.html', 'bwfile', 'bw_file_rd.8.html'); $back = ""; $forward = ""; for $what ('ctx', 'mem', 'bwmem', 'bwfile') { for $scale ('', '-unscaled') { open(S, ">HTML/${sys}-${what}${scale}.html"); if ($scale eq '') { $notscale = "-unscaled"; $lab = ""; $Lab = "Unscaled "; } else { $notscale = ""; $lab = "scaled "; $Lab = "Scaled "; } $prev = " Previous ${lab}$label{$what} result

" if $i > 0; $next = " Next ${lab}$label{$what} result

" if $i < $#os; print S<$title Information on this benchmark (Not up to date)

\n

LMBENCH table of contents System results table of contents

$next $prev ${Lab}$label{$what} results for this system EOF } } } } exit 0;