modernize (benchmark-suite lib)
authorAndy Wingo <wingo@pobox.com>
Mon, 23 Apr 2012 08:42:09 +0000 (04:42 -0400)
committerAndy Wingo <wingo@pobox.com>
Mon, 23 Apr 2012 19:46:06 +0000 (21:46 +0200)
commit7e822b32d2a165a027fd1de4d59fdfae568599bf
tree8e91b77beef10bbc045776ad21b66b7b66103435
parentb064d565141ca777778fa38e0fe98c0aed834eb9
modernize (benchmark-suite lib)

* benchmark-suite/benchmark-suite/lib.scm: Rewrite to be more modern,
  using parameters, records, and higher precision timers.  Since this
  file was never installed, this is an acceptable interface change.
  (run-benchmark): Run the thunk once before going into the benchmark.
  Adapt to new `report' interface.
  (report): Change to expect only one argument, a <benchmark-result>
  object.
  (print-result): Adapt.  The result is in the same format as before.
  (print-user-result): Adapt.  The result is different from before, but
  as this is just printed on stdout and not logged, there should be no
  problem.
  (calibrate-benchmark-framework): Pull initialization into a function.
benchmark-suite/benchmark-suite/lib.scm