From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id B5242469719 for ; Thu, 1 Oct 2020 11:16:39 +0300 (MSK) From: imeevma@tarantool.org Date: Thu, 1 Oct 2020 11:16:38 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 1/1] tpch: show single run time List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tsafin@tarantool.org Cc: tarantool-patches@dev.tarantool.org After this patch, the time it takes to complete each run of each request will be shown. --- https://github.com/tarantool/tpch/tree/imeevma/gh-4933-show-single-run-time execute_query.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/execute_query.lua b/execute_query.lua index 76ab673..9994344 100644 --- a/execute_query.lua +++ b/execute_query.lua @@ -157,8 +157,9 @@ local function bench(func) local t = clock.monotonic() for i=1,repeatN,1 do - print('.') + local t0 = clock.monotonic() func() + print(i..': '..clock.monotonic() - t0) end t = clock.monotonic() - t -- 2.25.1