From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id A77F01876EC2; Fri, 2 Jan 2026 19:32:33 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org A77F01876EC2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1767371553; bh=+o9nExWSpogNazbK1YNe0L3sJRzGJoM4P82lTov18uo=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=vUoGa2KioubtcCOlF/8sGcBNLtdptxqCr790krkNqhVa0cwATjy0kkSbyUgg8rv8z P+OlGSS+4CYhJQl2wnvgmrE5MwFRIBUSv2iehniE29Z/+5JV8Ud9W92FAGayCkpgsM +XOuSbgWK2ymvEj8j4Fd0AcQJ6FObwIjzuD/bktM= Received: from send277.i.mail.ru (send277.i.mail.ru [95.163.59.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 0779418CD983 for ; Fri, 2 Jan 2026 19:32:33 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 0779418CD983 Received: by exim-smtp-7b4fb89df9-sc9xn with esmtpa (envelope-from ) id 1vbi4l-00000000WeJ-36Zk; Fri, 02 Jan 2026 19:32:32 +0300 Content-Type: multipart/alternative; boundary="------------DTObypaABY7CiEyed0Oz6ofG" Message-ID: Date: Fri, 2 Jan 2026 19:32:31 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Sergey Kaplun Cc: tarantool-patches@dev.tarantool.org References: In-Reply-To: X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: EEAE043A70213CC8 X-77F55803: 4F1203BC0FB41BD915529E8FC4AA0671CA1E07C573811262D4DDCA1B9C9DBAFD1867C24CE74E72BB5FE18E9CBFBE7C0759CCE3BF3C4D7F26FD585832161C417228F256664280E945A1B4CD44DB0EB5FBF8D9167951635F18 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7DB84ED444C624799EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006376A27C8034CCD05E58638F802B75D45FF914D58D5BE9E6BC1A93B80C6DEB9DEE97C6FB206A91F05B206AD8F2A786566CD2E070BE324C7D3C420A944324FF9119CF6B57BC7E64490618DEB871D839B73339E8FC8737B5C2249D082881546D93491CC7F00164DA146DAFE8445B8C89999729449624AB7ADAF37F6B57BC7E64490611E7FA7ABCAF51C92176DF2183F8FC7C0A3E989B1926288338941B15DA834481F9449624AB7ADAF37BA3038C0950A5D3613377AFFFEAFD269176DF2183F8FC7C0CAB4775CB929E3BB7B076A6E789B0E97A8DF7F3B2552694AD5FFEEA1DED7F25D49FD398EE364050F9647ADFADE5905B1F41620B44FB51B7DB3661434B16C20ACC84D3B47A649675FE827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8B53A69B3AC30C7B9475ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-C1DE0DAB: 0D63561A33F958A5F717351434AE263E5002B1117B3ED69667E86A0ED072510C92B673A2F5DDD7E7823CB91A9FED034534781492E4B8EEAD220496FFA5CD4785BDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0AD73CAD6646DEDE191716CD42B3DD1D34CAB70F9BE574AE9C625B6776AC983F447FC0B9F89525902EE6F57B2FD27647F25E66C117BDB76D659EE7B95834C9ED807B394C619DC281076A16D85F8C823750BC12A121CEF5C50E28C0FBC59CF5B5126B8341EE9D5BE9A0AA69E04D81E10A4557076CD7DFB380CCB014576D5542FC0A98CD93680B12512CF4C41F94D744909CE2512F26BEC029E55448553D2254B8D95CD72808BE417F3B9E0E7457915DAA85F X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu53w8ahmwBjZKM/YPHZyZHvz5uv+WouB9+ObcCpyrx6l7KImUglyhkEat/+ysWwi0gdhEs0JGjl6ggRWTy1haxBpVdbIX1nthFXMZebaIdHP2ghjoIc/363UZI6Kf1ptIMVTZJppT4ZVHRi218V1Rs49k= X-Mailru-Sender: C4F68CFF4024C8867DFDF7C7F258845881125399BE721981CFE9FA76EDA5B4B737AD89D40D1FF974D1EB3A06F6ACBA26645D15D82EE4B272BD6E4642A116CA93524AA66B5ACBE6721EF430B9A63E2A504198E0F3ECE9B5443453F38A29522196 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v2 luajit 34/41] perf: adjust series in LuaJIT-benches X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Bronnikov via Tarantool-patches Reply-To: Sergey Bronnikov Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" This is a multi-part message in MIME format. --------------DTObypaABY7CiEyed0Oz6ofG Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, Sergey, thanks for the patch! LGTM Sergey On 12/26/25 12:18, Sergey Kaplun wrote: > This patch adjusts the aforementioned test to use the benchmark > framework introduced before. The default arguments are adjusted > according to the file. The arguments to the script still > can be provided in the command line run. > --- > perf/LuaJIT-benches/series.lua | 24 ++++++++++++++++++------ > 1 file changed, 18 insertions(+), 6 deletions(-) > > diff --git a/perf/LuaJIT-benches/series.lua b/perf/LuaJIT-benches/series.lua > index f766cb32..56f012b7 100644 > --- a/perf/LuaJIT-benches/series.lua > +++ b/perf/LuaJIT-benches/series.lua > @@ -1,3 +1,8 @@ > +-- The benchmark to check the performance of FP arithmetics, power > +-- operation, and trigonometrical functions. Calculates the > +-- integrals of sin/cos functions. > + > +local bench = require("bench").new(arg) > > local function integrate(x0, x1, nsteps, omegan, f) > local x, dx = x0, (x1-x0)/nsteps > @@ -26,9 +31,16 @@ local function series(n) > end > > local n = tonumber(arg and arg[1]) or 10000 > -local tm = os.clock() > -local t = series(n) > -tm = os.clock() - tm > -assert(math.abs(t[1]-2.87295) < 0.00001) > -io.write(string.format("size %d, %.2f s, %.1f iterations/s\n", > - n, tm, (2*n-1)/tm)) > + > +bench:add({ > + name = "series", > + checker = function(res) > + return math.abs(res[1] - 2.87295) < 0.00001 > + end, > + payload = function() > + return series(n) > + end, > + items = 2 * n - 1, > +}) > + > +bench:run_and_report() --------------DTObypaABY7CiEyed0Oz6ofG Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Hi, Sergey,

thanks for the patch! LGTM

Sergey

On 12/26/25 12:18, Sergey Kaplun wrote:
This patch adjusts the aforementioned test to use the benchmark
framework introduced before. The default arguments are adjusted
according to the <PARAM_x86.txt> file. The arguments to the script still
can be provided in the command line run.
---
 perf/LuaJIT-benches/series.lua | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/perf/LuaJIT-benches/series.lua b/perf/LuaJIT-benches/series.lua
index f766cb32..56f012b7 100644
--- a/perf/LuaJIT-benches/series.lua
+++ b/perf/LuaJIT-benches/series.lua
@@ -1,3 +1,8 @@
+-- The benchmark to check the performance of FP arithmetics, power
+-- operation, and trigonometrical functions. Calculates the
+-- integrals of sin/cos functions.
+
+local bench = require("bench").new(arg)
 
 local function integrate(x0, x1, nsteps, omegan, f)
   local x, dx = x0, (x1-x0)/nsteps
@@ -26,9 +31,16 @@ local function series(n)
 end
 
 local n = tonumber(arg and arg[1]) or 10000
-local tm = os.clock()
-local t = series(n)
-tm = os.clock() - tm
-assert(math.abs(t[1]-2.87295) < 0.00001)
-io.write(string.format("size %d, %.2f s, %.1f iterations/s\n",
-                       n, tm, (2*n-1)/tm))
+
+bench:add({
+  name = "series",
+  checker = function(res)
+    return math.abs(res[1] - 2.87295) < 0.00001
+  end,
+  payload = function()
+    return series(n)
+  end,
+  items = 2 * n - 1,
+})
+
+bench:run_and_report()
--------------DTObypaABY7CiEyed0Oz6ofG--