diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-08-23 13:02:27 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-08-23 13:02:27 +0200 |
commit | eb6e4da3c06c68aa3415104649ef633f24c7ce85 (patch) | |
tree | e457c8f174fa520bf7458554aa7a3f3e6320d82b | |
parent | 2d24b1602a94e12857d2d66457745d94bb80e0da (diff) | |
download | obnam-benchmarks-eb6e4da3c06c68aa3415104649ef633f24c7ce85.tar.gz |
Tweak results tables to be clearer
-rw-r--r-- | benchmark.css | 18 | ||||
-rwxr-xr-x | obbench | 5 |
2 files changed, 14 insertions, 9 deletions
diff --git a/benchmark.css b/benchmark.css index 6cd34d5..4e35607 100644 --- a/benchmark.css +++ b/benchmark.css @@ -1,23 +1,27 @@ table { - border: solid 1px; + border: 0; } th { border-bottom: solid 1px; } th, td { - border-right: solid 1px; font-family: monospace; + text-align: left; + vertical-align: top; + padding-right: 2em; +} +td { + padding-bottom: 1em; } th.duration, td.duration { - text-align: right; + width: 15em; } td.date { - width: 25em; +// min-width: 30em; } td.commitid { - width: 7em; +// width: 7em; } td.commitmsg { - width: 30em; - text-align: left; +// max-width: 30em; } @@ -234,7 +234,7 @@ class ObnamBenchmarker(cliapp.Application): for step in obj['steps']: if 'obnam' in step: f.write( - '<th>{action} secs (% of ref)</th>\n'.format( + '<th>{action} seconds<br/>(% of goal)</th>\n'.format( action=self.q(step['obnam']))) f.write('</tr>\n') @@ -303,7 +303,8 @@ class ObnamBenchmarker(cliapp.Application): f.write('<th>commit</th>\n') f.write('<th>commit msg</th>\n') for name in benchmark_names: - f.write('<th>{name} secs (% of ref)</th>\n'.format(name=self.q(name))) + f.write('<th>{name} (seconds)' + '<br/>(% of goal)</th>\n'.format(name=self.q(name))) f.write('</tr>\n') for run in runs: |