From c998640cdb430b8220fdd9d8fe7907ff4a058a29 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Sat, 18 Dec 2021 15:27:46 -0800 Subject: [PATCH] benchmark: print timings with 3 decimal places. --- extra/benchmark/benchmark.factor | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extra/benchmark/benchmark.factor b/extra/benchmark/benchmark.factor index 46f23009f6..d06c87c6e5 100644 --- a/extra/benchmark/benchmark.factor +++ b/extra/benchmark/benchmark.factor @@ -1,9 +1,9 @@ ! Copyright (C) 2007, 2009 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. -USING: arrays assocs command-line continuations debugger formatting -fry help.markup io io.styles kernel math memory namespaces prettyprint -sequences tools.profiler.sampling tools.test tools.time -vocabs.hierarchy vocabs.loader ; +USING: arrays assocs command-line continuations debugger +formatting help.markup io io.styles kernel math memory +namespaces prettyprint sequences tools.profiler.sampling +tools.test tools.time vocabs.hierarchy vocabs.loader ; IN: benchmark SYMBOL: benchmarks-disabled? @@ -56,7 +56,7 @@ PRIVATE> [ [ [ [ 1array $vocab-link ] with-cell ] - [ 1,000,000,000 /f pprint-cell ] + [ 1,000,000,000 /f [ "%.3f" printf ] with-cell ] bi* ] with-row ] assoc-each -- 2.34.1