[Tarantool-patches] [PATCH 1/1] tpch: show single run time

Timur Safin tsafin at tarantool.org
Thu Oct 1 12:34:57 MSK 2020


LGTM (and was already committed via PR)

Timur

: -----Original Message-----
: From: imeevma at tarantool.org <imeevma at tarantool.org>
: Sent: Thursday, October 1, 2020 11:17 AM
: To: tsafin at tarantool.org
: Cc: tarantool-patches at dev.tarantool.org
: Subject: [PATCH 1/1] tpch: show single run time
: 
: 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




More information about the Tarantool-patches mailing list