From 17c1531068d736962eca42a643ff3bcda63fe32f Mon Sep 17 00:00:00 2001 From: David Majda Date: Sun, 13 Feb 2011 11:31:47 +0100 Subject: [PATCH] Make "Avg. time" column in the commmand-line benchmark table wider --- benchmark/run | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/benchmark/run b/benchmark/run index 80bd3e4..a7866aa 100755 --- a/benchmark/run +++ b/benchmark/run @@ -37,14 +37,14 @@ function center(text, length) { } function writeTableHeader() { - sys.puts("+-------------------------------------+-----------+-----------+--------------+"); - sys.puts("| Test | Inp. size | Avg. time | Avg. speed |"); + sys.puts("+-------------------------------------+-----------+------------+--------------+"); + sys.puts("| Test | Inp. size | Avg. time | Avg. speed |"); } function writeHeading(heading) { - sys.puts("+-------------------------------------+-----------+-----------+--------------+"); - sys.puts("| " + center(heading, 74) + " |"); - sys.puts("+-------------------------------------+-----------+-----------+--------------+"); + sys.puts("+-------------------------------------+-----------+------------+--------------+"); + sys.puts("| " + center(heading, 75) + " |"); + sys.puts("+-------------------------------------+-----------+------------+--------------+"); } function writeResult(title, inputSize, parseTime) { @@ -56,7 +56,7 @@ function writeResult(title, inputSize, parseTime) { + " | " + padLeft((inputSize / KB).toFixed(2), 6) + " kB | " - + padLeft(parseTime.toFixed(2), 6) + + padLeft(parseTime.toFixed(2), 7) + " ms | " + padLeft(((inputSize / KB) / (parseTime / MS_IN_S)).toFixed(2), 7) + " kB/s |" @@ -64,11 +64,11 @@ function writeResult(title, inputSize, parseTime) { } function writeSeparator() { - sys.puts("+-------------------------------------+-----------+-----------+--------------+"); + sys.puts("+-------------------------------------+-----------+------------+--------------+"); } function writeTableFooter() { - sys.puts("+-------------------------------------+-----------+-----------+--------------+"); + sys.puts("+-------------------------------------+-----------+------------+--------------+"); } /* Helpers */