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 8AD9817D5EB1 for ; Sat, 1 Mar 2014 01:49:13 +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 76116B5D96C for ; Sat, 1 Mar 2014 01:42:55 +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 B3B6397A832 for ; Sat, 1 Mar 2014 01:42:56 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me 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 nmxapWJm19Dm for ; Sat, 1 Mar 2014 01:42:56 +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 38D1097A826 for ; Sat, 1 Mar 2014 01:42:56 +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 E460095243A for ; Sat, 1 Mar 2014 01:42:52 +0900 (JST) Received: from [221.186.184.76] (unknown [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id B3FE012061B; Sat, 1 Mar 2014 01:42:51 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with SMTP id 5398E1205D3 for ; Sat, 1 Mar 2014 01:42:49 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=arNNQiQaV4DyT5AzafMWIaa8S+Q=; b=gIwuEyefpMjWlqvSg5 aVyRk2jynqSf838wtbWio+bIKMqDFZdyuVRyVJ6RMqojXKs6nVuaCT0h/s8s4Zu+ WBPIuJ7w2y0SC8npsPh9gMh7GCmRwDZa4PEtaBBeJF1rIkUbDUs0qlbh5O+Wl/FP KvpJ6dW/TbJfXVMTc+VNLv4qw= Received: by mf141.sendgrid.net with SMTP id mf141.20242.5310BC86C Fri, 28 Feb 2014 16:42:46 +0000 (UTC) Received: from herokuapp.com (ec2-54-227-147-160.compute-1.amazonaws.com [54.227.147.160]) by ismtpd-004 (SG) with ESMTP id 14479606d7c.14eb.39a51e for ; Fri, 28 Feb 2014 16:42:46 +0000 (GMT) Date: Fri, 28 Feb 2014 16:42:46 +0000 From: normalperson@yhbt.net To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 34977 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 9577 X-Redmine-Issue-Author: normalperson X-Redmine-Issue-Assignee: normalperson X-Redmine-Sender: normalperson X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: OOF Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS7qI5Oq7c7riC2Xy8esHHJzT7ihugKcuuIZErOXNHAACdaeWuKDXyV7VsYA9uTZPbe1Fd2Ka01dpE4pT4MzGEUeVS9ScqMPQBkBriqAnuEkHYzs7WXdMjHGuV5P76P9B0g= X-SendGrid-Contentd-ID: {"test_id":"1393605767"} X-ML-Name: ruby-core X-Mail-Count: 61148 Subject: [ruby-core:61148] [ruby-trunk - Feature #9577] [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" Issue #9577 has been updated by Eric Wong. 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 ---------------------------------------- Feature #9577: [PATCH] benchmark/driver.rb: align columns in text output https://bugs.ruby-lang.org/issues/9577#change-45521 * Author: Eric Wong * Status: Open * Priority: Low * Assignee: Eric Wong * Category: misc * Target version: current: 2.2.0 ---------------------------------------- It is easier to read output when columns are aligned properly. I have an 80 column terminal, that's HUGE! Use it :D pulL: git://80x24.org/ruby.git bmdriver-align patch: http://bogomips.org/ruby.git/patch?id=32eed05c80 samples before: http://80x24.org/bmlog-20140126-003136.7320.gz after: http://80x24.org/bmlog-20140228-071544.1805.gz I'll commit soon unless this breaks some tools (or this makes life hard for the 40-column people :P) -- http://bugs.ruby-lang.org/