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 7009D192B018; Tue, 13 Jan 2026 18:31:05 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 7009D192B018 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1768318265; bh=UOTW7irBvxNTJklfSXXIN0s9a9z+aTovXTES9eZdtVk=; 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=QP3/EvFkudp/4fPKA+WiK116iL8B00zzvHQTwVL+K9pzfzqMycQr9LCBm9aSLJ/5c Ah2qmSdbmIu6pFfqVbiX8dFCZARTNMlh1HhOfBGfcZ4Iql2+lH7vkGSVCqnpnzFvi6 LHFKOLsUldw3WRxZFlTCJNkjBZXJ+msSbFN4cpVw= Received: from send126.i.mail.ru (send126.i.mail.ru [89.221.237.221]) (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 6A525192B014 for ; Tue, 13 Jan 2026 18:30:45 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 6A525192B014 Received: by exim-smtp-7b4fb89df9-jfx52 with esmtpa (envelope-from ) id 1vfgM0-000000004vI-1utg; Tue, 13 Jan 2026 18:30:44 +0300 Content-Type: multipart/alternative; boundary="------------Co8xa91C0DawtH1G50xFWxEo" Message-ID: Date: Tue, 13 Jan 2026 18:30:44 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Sergey Kaplun Cc: tarantool-patches@dev.tarantool.org References: <56ecc7451c28f279616a74ed09a17a748f710423.1766738771.git.skaplun@tarantool.org> In-Reply-To: <56ecc7451c28f279616a74ed09a17a748f710423.1766738771.git.skaplun@tarantool.org> X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD979975AF0D777FEBDF4F92D2C981B4AD059036C59F712CD7E182A05F5380850400931EF3B3FE63BD13DE06ABAFEAF6705659084D915429BF4B2CDCC1786F964BC96A23FDDE6D060B7 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE74B7EDB5828CF9C27EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637AC83A81C8FD4AD23D82A6BABE6F325AC2E85FA5F3EDFCBAA7353EFBB55337566DDAE7ACB9D63E4C4B1E552C6DBFDB9AFE941751F9B3F717EF473F9358EA26D1D389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C0A3E989B1926288338941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B636DA1BED736F9328CC7F00164DA146DA6F5DAA56C3B73B237318B6A418E8EAB8D32BA5DBAC0009BE9E8FC8737B5C2249D9EEDE0C260548BB76E601842F6C81A12EF20D2F80756B5FB606B96278B59C4276E601842F6C81A127C277FBC8AE2E8B13AA280BE71E98733AA81AA40904B5D99C9F4D5AE37F343AD1F44FA8B9022EA23BBE47FD9DD3FB595F5C1EE8F4F765FC72CEEB2601E22B093A03B725D353964B0B7D0EA88DDEDAC722CA9DD8327EE4930A3850AC1BE2E73589424AA0EF8DE9BAC4224003CC83647689D4C264860C145E X-C1DE0DAB: 0D63561A33F958A5CC447329DFF168325002B1117B3ED696FF2CC27B405FED63466072E6821086B3823CB91A9FED034534781492E4B8EEAD09F854029C6BD0DABDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0AD73CAD6646DEDE191716CD42B3DD1D34CAB70F9BE574AE9C625B6776AC983F447FC0B9F89525902EE6F57B2FD27647F25E66C117BDB76D659FF49E8786E2F6B5674FF394ED8E040CB273F32157B29F044947F4BCBB539F8363FFFAB0FBB6793D7B8341EE9D5BE9A0AFBF4B1010EAC8FE368D01897FF0E454EBF16C371820B34F18CD93680B12512CF4C41F94D744909CE2512F26BEC029E55448553D2254B8D95CD72808BE417F3B9E0E7457915DAA85F X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu53w8ahmwBjZKM/YPHZyZHvz5uv+WouB9+ObcCpyrx6l7KImUglyhkEat/+ysWwi0gdhEs0JGjl6ggRWTy1haxBpVdbIX1nthFXMZebaIdHP2ghjoIc/363UZI6Kf1ptIMVVt0N+pdRHOZLzZatxBgIi4= X-Mailru-Sender: 811C44EDE0507D1FFB106D83BFFB684FC10C73DAB77D76EBF6A6F50B1491C035AE60F080BC9CBD723B6F61766EFC2382645D15D82EE4B272BD6E4642A116CA93524AA66B5ACBE6721EF430B9A63E2A504198E0F3ECE9B5443453F38A29522196 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v2 luajit 40/41] perf: provide CMake option to setup the benchmark 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. --------------Co8xa91C0DawtH1G50xFWxEo Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit LGTM On 12/26/25 12:18, Sergey Kaplun wrote: > This patch introduces the `LUAJIT_BENCH_INIT` option to determine the > shell command prefix to be run before the benchmark itself. It may be > useful to set taskset, etc. > --- > perf/CMakeLists.txt | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/perf/CMakeLists.txt b/perf/CMakeLists.txt > index b6e98808..5a5cf777 100644 > --- a/perf/CMakeLists.txt > +++ b/perf/CMakeLists.txt > @@ -7,6 +7,13 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug") > "Timings may be affected.") > endif() > > +# The shell command needs to be run before benchmarks are started. > +if(LUAJIT_BENCH_INIT) > + message(STATUS > + "The following command will run before benchmarks: '${LUAJIT_BENCH_INIT}'." > + ) > +endif() > + > set(PERF_OUTPUT_DIR ${PROJECT_BINARY_DIR}/perf/output) > file(MAKE_DIRECTORY ${PERF_OUTPUT_DIR}) > > @@ -51,7 +58,7 @@ macro(AddBench bench_name bench_path perf_suite LUA_PATH) > set(bench_out_file > ${PERF_OUTPUT_DIR}/${perf_suite}/${bench_name_stripped}.json > ) > - set(bench_command "${LUAJIT_BINARY} ${bench_path}") > + set(bench_command "${LUAJIT_BENCH_INIT} ${LUAJIT_BINARY} ${bench_path}") > if(${ARGC} GREATER 4) > set(input_file ${ARGV4}) > set(bench_command "${bench_command} < ${input_file}") --------------Co8xa91C0DawtH1G50xFWxEo Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

LGTM

On 12/26/25 12:18, Sergey Kaplun wrote:
This patch introduces the `LUAJIT_BENCH_INIT` option to determine the
shell command prefix to be run before the benchmark itself. It may be
useful to set taskset, etc.
---
 perf/CMakeLists.txt | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/perf/CMakeLists.txt b/perf/CMakeLists.txt
index b6e98808..5a5cf777 100644
--- a/perf/CMakeLists.txt
+++ b/perf/CMakeLists.txt
@@ -7,6 +7,13 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
                   "Timings may be affected.")
 endif()
 
+# The shell command needs to be run before benchmarks are started.
+if(LUAJIT_BENCH_INIT)
+  message(STATUS
+    "The following command will run before benchmarks: '${LUAJIT_BENCH_INIT}'."
+  )
+endif()
+
 set(PERF_OUTPUT_DIR ${PROJECT_BINARY_DIR}/perf/output)
 file(MAKE_DIRECTORY ${PERF_OUTPUT_DIR})
 
@@ -51,7 +58,7 @@ macro(AddBench bench_name bench_path perf_suite LUA_PATH)
   set(bench_out_file
     ${PERF_OUTPUT_DIR}/${perf_suite}/${bench_name_stripped}.json
   )
-  set(bench_command "${LUAJIT_BINARY} ${bench_path}")
+  set(bench_command "${LUAJIT_BENCH_INIT} ${LUAJIT_BINARY} ${bench_path}")
   if(${ARGC} GREATER 4)
     set(input_file ${ARGV4})
     set(bench_command "${bench_command} < ${input_file}")
--------------Co8xa91C0DawtH1G50xFWxEo--