From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 8348617D5EB1 for ; Sat, 1 Mar 2014 01:45:23 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 4D964B5D940 for ; Sat, 1 Mar 2014 01:39:05 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 8950D97A82C for ; Sat, 1 Mar 2014 01:39:06 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7xH48X0Xp1QQ for ; Sat, 1 Mar 2014 01:39:06 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 6933897A820 for ; Sat, 1 Mar 2014 01:39:06 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 4497395243A for ; Sat, 1 Mar 2014 01:39:02 +0900 (JST) Received: from [221.186.184.76] (unknown [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id F0A691205FD; Sat, 1 Mar 2014 01:39:01 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by neon.ruby-lang.org (Postfix) with ESMTP id 0987E12058A for ; Sat, 1 Mar 2014 01:38:57 +0900 (JST) Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id BE2AF21517; Fri, 28 Feb 2014 16:38:54 +0000 (UTC) Date: Fri, 28 Feb 2014 16:38:54 +0000 From: Eric Wong To: Ruby developers Message-ID: <20140228163854.GA1168@dcvr.yhbt.net> References: <5310806D.9000006@atdot.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5310806D.9000006@atdot.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-ML-Name: ruby-core X-Mail-Count: 61146 Subject: [ruby-core:61146] Re: [ruby-trunk - Feature #9577] [Open] [PATCH] benchmark/driver.rb: align columns in text output X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" SASADA Koichi wrote: > (2014/02/28 16:44), normalperson@yhbt.net wrote: > > It is easier to read output when columns are aligned properly. > > I have an 80 column terminal, that's HUGE! Use it :D > > Sorry, I can't read .gz file because of my environment. unzipped versions: before: http://80x24.org/bmlog-20140126-003136.7320.txt after: http://80x24.org/bmlog-20140228-071544.1805.txt > What happen when many executables are specified (over 80 chars)? This the timing lines after the text source is just aligned to the longest line, so it looks like this: ruby 2.2.0dev (2014-02-28 trunk 45211) [x86_64-linux] 0.071003417 built-ruby 0.0817603 Execution time summary header isn't changed, but the times themselves look much better: Execution time (sec) name ruby 2.2.0dev (2014-02-28 trunk 45211) [x86_64-linux] built-ruby app_answer 0.071 0.082 app_aobench 84.672 84.014 app_erb 1.511 1.524 I didn't check the speedup ratio header, but maybe the "name\tbuilt-ruby" looks a little odd. I can fix that. The first line ("compare with the result of") is unchanged (and too long, but I don't read that). Speedup ratio: compare with the result of `ruby 2.2.0dev (2014-02-28 trunk 45211) [x86_64-linux]' (greater is better) name built-ruby app_answer 0.868 app_aobench 1.008 app_erb 0.992