はじめに
Swingbench でワークロードを実行する際に設定できるオプションを整理しました。
[opc@gp labs]$ ./swingbench/bin/charbench -h
usage: parameters:
-a run automatically
-be <stopafter> end recording statistics after. Value is in
the form hh:mm.sec
-bg indicate that charbench will be run in the
background
-bs <startafter> start recording statistics after. Value is
in the form hh:mm.sec
-c <filename> specify config file
-cf <username> the location of a crendentials file for
Oracle Cloud (ADW/ATP./ExaExp)
-co <hostname> specify/override coordinator in
configuration file.
-com <comment> specify comment for this benchmark run (in
double quotes)
-cpuloc <hostname > specify/overide location/hostname of the
cpu monitor.
-cpupass <arg> specify/overide os password of the user
used to monitor cpu.
-cpuuser <arg> specify/overide os username of the user
used to monitor cpu.
-cs <connectstring> override connect string in configuration
file
-D <variable=value> use value for given environment variable
-dbap <password> the password of admin user (used for
collecting DB Stats)
-dbau <username> the username of admin user (used for
collecting DB stats)
-debug <debugtarget> turn on debugging for sbench|jdbc|ucp. One
or more and comma seperated. Defaults to
sbench
-debugf <debugfile> turn on debugging to file. Defaults to
stdout.
-debugl <debuglevel> level of debug output
severe|warning|info|fine|finest. Defaults
to fine
-di <shortname(s)> disable transactions(s) by short name,
comma separated
-dt <drivertype> override driver type in configuration file
(thin, oci, ttdirect, ttclient)
-dumptx output transaction response times to file
-dumptxdir <directory name> directory for transaction response times
files
-en <shortname(s)> enable transactions(s) by short name, comma
separated
-env display environment configuration
-f force data collection and run termination
regardless of state
-g <groupID> distributed group identifier
-h,--help print this message
-i run interactively (default)
-intermax <milliseconds> override minimum inter transaction sleep
time (default = 0)
-intermin <milliseconds> override minimum inter transaction sleep
time (default = 0)
-ld <milliseconds> specify/overide the logon delay
(milliseconds)
-max <milliseconds> override maximum intra transaction think
time in configuration file
-min <milliseconds> override minimum intra transaction think
time in configuration file
-mr produce a mini report of the results of a
run
-mt <maxtrans> maximum tasks to be executed before
terminating run
-nc Don't use color output
-nr don't produce a results file at the end of
a run
-oj output json instead of xml
-ot <output type> output type (json or std), defaults to std
-p <password> override password in configuration file
-P <property=value> set connection properties. <Key>:<Value>
seperated by commas no spaces
-r <filename> specify results file
-rr <arg> specify/overide refresh rate for charts in
secs
-rt <runtime> specify/overide run time for the benchmark.
Value is in the form hh:mm.sec
-s run silent
-sr Suppress results file output
-stats <stats level> specify level result stats detail (full or
simple)
-u <username> override username in configuration file
-uc <user count> override user count in configuration file.
-v <options> display run statistics (vmstat/sar like
output), options include (comma separated
no spaces).
trans|cpu|disk|dml|errs|tpm|tps|users|resp|
vresp|mmresp|tottx|trem|pool|dbtime|os
-ver display version and exit
-vo <verboseOutput> output file for verbose output (defaults to
stdout)
-wc wait until all session have disconnected
from the database
DB は Oracle Autonomous AI Database を使用しています。
なお、ベンチマーク条項を踏まえ、具体的な数値は念のため割愛しています。
基本設定
-c filename
ワークロード定義ファイルを指定します。
用意されているワークロード定義ファイルとしては以下のものがあります。
[opc@gp labs]$ ls -la swingbench/configs/
total 1472
drwxr-xr-x. 2 opc opc 4096 Sep 10 2025 .
drwxr-xr-x. 12 opc opc 160 Sep 18 2025 ..
-rwxr-xr-x. 1 opc opc 5052 Nov 4 2023 Calling_Circle.xml
-rwxr-xr-x. 1 opc opc 7945 Jun 19 2024 JSON_Social_Network_Workload.xml
-rwxr-xr-x. 1 opc opc 6553 Apr 11 2023 JSON_Workload.xml
-rwxr-xr-x. 1 opc opc 7765 Aug 14 2023 MovieStream.xml
-rwxr-xr-x. 1 opc opc 8541 Feb 20 2023 Sales_History.xml
-rwxr-xr-x. 1 opc opc 7031 May 15 2024 SOE_Client_JDBC_Sharded.xml
-rwxr-xr-x. 1 opc opc 6830 Aug 1 2024 SOE_Client_PLSQL_Sharded.xml
-rwxr-xr-x. 1 opc opc 8180 Nov 21 2024 SOE_Client_Side_AC.xml
-rwxr-xr-x. 1 opc opc 7390 Nov 4 2023 SOE_Client_Side_TrueCache.xml
-rwxr-xr-x. 1 opc opc 7766 Apr 24 2025 SOE_Client_Side.xml
-rwxr-xr-x. 1 opc opc 7887 Feb 20 2023 SOE_Server_Side_V1.xml
-rwxr-xr-x. 1 opc opc 7092 Aug 22 2024 SOE_Server_Side_V2.xml
-rwxr-xr-x. 1 opc opc 4638 Mar 27 2017 SqlBuilder_Template.xml
-rwxr-xr-x. 1 opc opc 5555 Nov 4 2023 Stored_Procedure_Stubs.xml
-rwxr-xr-x. 1 opc opc 2613 Nov 4 2023 Stress_Test.xml
-rwxr-xr-x. 1 opc opc 5913 Aug 29 2025 TPCC_Transactions.xml
-rwxr-xr-x. 1 opc opc 5643 Feb 20 2024 TPCDS_Like_Workload.xml
-rwxr-xr-x. 1 opc opc 1305526 Jan 23 2020 tpcds_statements.xml
-rwxr-xr-x. 1 opc opc 5645 Nov 4 2023 TPCDS_Transactions.xml
-rwxr-xr-x. 1 opc opc 4562 Nov 4 2023 TPCH_Like_Workload.xml
-rwxr-xr-x. 1 opc opc 34081 Mar 13 2022 tpch_queries.xml
-rwxr-xr-x. 1 opc opc 2895 Jul 24 2024 TPCH_Transactions.xml
[opc@gp labs]$
ワークロード定義ファイルの構成は以下の通り。
ワークロード定義ファイル内で定義済みのオプションを実行時に指定した場合は、実行時の指定内容が優先されます。
SOE_Server_Side_V2.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SwingBenchConfiguration xmlns="http://www.dominicgiles.com/swingbench/config">
<Name>"Order Entry (PLSQL) V2"</Name>
<Comment>Version 2 of the SOE Benchmark running in the database using PL/SQL</Comment>
<Connection>
<UserName>soe</UserName>
<Password>enc(cw4Xx9RgsQA=)</Password>
<ConnectString>//localhost/soe</ConnectString>
<DriverType>Oracle jdbc Driver</DriverType>
<Properties>
<Property Key="StatementCaching">120</Property>
<Property Key="FetchSize">20</Property>
</Properties>
</Connection>
<Load>
<NumberOfUsers>16</NumberOfUsers>
<MinDelay>0</MinDelay>
<MaxDelay>0</MaxDelay>
<InterMinDelay>0</InterMinDelay>
<InterMaxDelay>0</InterMaxDelay>
<QueryTimeout>120</QueryTimeout>
<MaxTransactions>-1</MaxTransactions>
<RunTime>0:0</RunTime>
<LogonGroupCount>1</LogonGroupCount>
<LogonDelay>20</LogonDelay>
<LogOutPostTransaction>false</LogOutPostTransaction>
<WaitTillAllLogon>false</WaitTillAllLogon>
<StatsCollectionStart>0:0</StatsCollectionStart>
<StatsCollectionEnd>0:0</StatsCollectionEnd>
<ConnectionRefresh>0</ConnectionRefresh>
<TransactionList>
<Transaction>
<Id>Customer Registration</Id>
<ShortName>NCR</ShortName>
<ClassName>com.dom.benchmarking.swingbench.benchmarks.orderentryplsql.NewCustomerProcessV2</ClassName>
<Weight>15</Weight>
<Enabled>true</Enabled>
</Transaction>
<Transaction>
<Id>Update Customer Details</Id>
<ShortName>UCD</ShortName>
<ClassName>com.dom.benchmarking.swingbench.benchmarks.orderentryplsql.UpdateCustomerDetailsV2</ClassName>
<Weight>10</Weight>
<Enabled>true</Enabled>
</Transaction>
<Transaction>
<Id>Browse Products</Id>
<ShortName>BP</ShortName>
<ClassName>com.dom.benchmarking.swingbench.benchmarks.orderentryplsql.BrowseProducts</ClassName>
<Weight>50</Weight>
<Enabled>true</Enabled>
</Transaction>
<Transaction>
<Id>Order Products</Id>
<ShortName>OP</ShortName>
<ClassName>com.dom.benchmarking.swingbench.benchmarks.orderentryplsql.NewOrderProcess</ClassName>
<Weight>40</Weight>
<Enabled>true</Enabled>
</Transaction>
<Transaction>
<Id>Process Orders</Id>
<ShortName>PO</ShortName>
<ClassName>com.dom.benchmarking.swingbench.benchmarks.orderentryplsql.ProcessOrders</ClassName>
<Weight>5</Weight>
<Enabled>true</Enabled>
</Transaction>
<Transaction>
<Id>Browse Orders</Id>
<ShortName>BO</ShortName>
<ClassName>com.dom.benchmarking.swingbench.benchmarks.orderentryplsql.BrowseAndUpdateOrders</ClassName>
<Weight>5</Weight>
<Enabled>true</Enabled>
</Transaction>
<Transaction>
<Id>Sales Rep Query</Id>
<ShortName>SQ</ShortName>
<ClassName>com.dom.benchmarking.swingbench.benchmarks.orderentryplsql.SalesRepsOrdersQuery</ClassName>
<Weight>2</Weight>
<Enabled>false</Enabled>
</Transaction>
<Transaction>
<Id>Warehouse Query</Id>
<ShortName>WQ</ShortName>
<ClassName>com.dom.benchmarking.swingbench.benchmarks.orderentryplsql.WarehouseOrdersQuery</ClassName>
<Weight>2</Weight>
<Enabled>false</Enabled>
</Transaction>
<Transaction>
<Id>Warehouse Activity Query</Id>
<ShortName>WA</ShortName>
<ClassName>com.dom.benchmarking.swingbench.benchmarks.orderentryplsql.WarehouseActivityQuery</ClassName>
<Weight>2</Weight>
<Enabled>false</Enabled>
</Transaction>
</TransactionList>
<EnvironmentVariables>
<Variable Key="SOE_NLSDATA_LOC">data/nls.txt</Variable>
<Variable Key="SOE_NAMESDATA_LOC">data/names.txt</Variable>
</EnvironmentVariables>
</Load>
<Preferences>
<StartMode>manual</StartMode>
<Output>swingbench</Output>
<JumpToEvents>true</JumpToEvents>
<TimingsIncludeSleep>false</TimingsIncludeSleep>
<TimingsIn>milliseconds</TimingsIn>
<StatisticsLevel>simple</StatisticsLevel>
<OutputFile>results.xml</OutputFile>
<RefreshRate>1</RefreshRate>
<OverviewCharts>
<OverviewChart>
<Name>DML</Name>
<MinimumValue>0.0</MinimumValue>
<MaximumValue>9.223372036854776E18</MaximumValue>
<Displayed>true</Displayed>
</OverviewChart>
<OverviewChart>
<Name>Database Time</Name>
<MinimumValue>2.147483647E9</MinimumValue>
<MaximumValue>2.147483647E9</MaximumValue>
<Displayed>true</Displayed>
</OverviewChart>
<OverviewChart>
<Name>Users</Name>
<MinimumValue>2.147483647E9</MinimumValue>
<MaximumValue>2.147483647E9</MaximumValue>
<Displayed>false</Displayed>
</OverviewChart>
<OverviewChart>
<Name>Disk</Name>
<MinimumValue>2.147483647E9</MinimumValue>
<MaximumValue>2.147483647E9</MaximumValue>
<Displayed>false</Displayed>
</OverviewChart>
<OverviewChart>
<Name>CPU</Name>
<MinimumValue>0.0</MinimumValue>
<MaximumValue>100.0</MaximumValue>
<Displayed>false</Displayed>
</OverviewChart>
<OverviewChart>
<Name>Response Time</Name>
<MinimumValue>2.147483647E9</MinimumValue>
<MaximumValue>2.147483647E9</MaximumValue>
<Displayed>true</Displayed>
</OverviewChart>
<OverviewChart>
<Name>Transactions Per Second</Name>
<MinimumValue>2.147483647E9</MinimumValue>
<MaximumValue>2.147483647E9</MaximumValue>
<Displayed>true</Displayed>
</OverviewChart>
<OverviewChart>
<Name>Transactions Per Minute</Name>
<MinimumValue>2.147483647E9</MinimumValue>
<MaximumValue>2.147483647E9</MaximumValue>
<Displayed>true</Displayed>
</OverviewChart>
</OverviewCharts>
</Preferences>
</SwingBenchConfiguration>
-c ~/labs/swingbench/configs/SOE_Server_Side_V2.xml
-a
自動モードで実行します。
-i
インタラクティブモード (対話モード) で実行します。(デフォルト)
-bg
バックグラウンドモードで実行します。
-s
サイレントモードで実行します。
-f
ワークロードを強制終了します。
OracleDB でいうところのshutdown immediateやshutdown abortのイメージでしょうか。
-wc
全セッションが DB から切断されるまで待機してワークロードを終了します。
OracleDB でいうところのshutdown transactionalのイメージでしょうか。
-h, --help
設定可能なオプションを一覧表示します。
-ver
バージョン情報を表示します。
[opc@gp labs]$ ./swingbench/bin/charbench -ver
Version 2.7.1561
-env
Java の設定や環境変数など実行環境の情報を表示します。
接続設定
-cs connectstring
DB の接続文字列を指定します。
ADB の場合、下記の画面から確認できる TNS名を設定します。
-cs xx_tp
-u username
ワークロードを実行する DBユーザ名を指定します。
-p password
ワークロードを実行する DBユーザのパスワードを指定します。
-dbau username
DB統計の収集に使用する DBユーザー名を指定します。
-dbap password
DB統計の収集に使用する DBユーザーのパスワードを指定します。
-dt drivertype
ドライバーの種類を指定します。
-cf username
ADB の資格情報ファイル (Wallet_xx.zip) のパスを指定します。
-cf ~/instantclient_19_10/network/admin/xx/Wallet_xx.zip
-P property=value
JDBC接続プロパティを指定します。
-D variable=value
JVM環境変数を指定します。
ワークロード設定
-uc user count
仮想ユーザ数 (同時接続数) を指定します。
[opc@gp labs]$ ./3execute.sh
Swingbench
Author : Dominic Giles
Version : 2.7.0.1561
Results will be written to results.xml
Hit Return to Terminate Run...
Time Users TPM TPS NCR UCD BP OP PO BO SQ WQ WA
08:32:59 [0/10] 0 0 0 0 0 0 0 0 0 0 0
08:33:01 [10/10] 0 0 0 0 0 0 0 0 0 0 0
(snip)
[opc@gp labs]$ ./3execute.sh
Swingbench
Author : Dominic Giles
Version : 2.7.0.1561
Results will be written to results.xml
Hit Return to Terminate Run...
★増加
Time Users TPM TPS NCR UCD BP OP PO BO SQ WQ WA
08:34:13 [0/20] 0 0 0 0 0 0 0 0 0 0 0
08:34:14 [0/20] 0 0 0 0 0 0 0 0 0 0 0
08:34:15 [9/20] 0 0 0 0 0 0 0 0 0 0 0
(snip)
-rt runtime
実行時間を指定します。
[opc@gp labs]$ ./3execute.sh
Swingbench
Author : Dominic Giles
Version : 2.7.0.1561
Results will be written to results.xml
Expected Benchmark Runtime is set to 1 minute 30 seconds. ★実行時間が 1分30秒に指定されていることが表示される
Time Users TPM TPS NCR UCD BP OP PO BO SQ WQ WA
08:36:54 [0/20] 0 0 0 0 0 0 0 0 0 0 0
08:36:55 [0/20] 0 0 0 0 0 0 0 0 0 0 0
(snip)
Saved results to results00009.xml
08:38:26 [0/20] (snip) ★1分30秒で終了 (38:26-36:54)
Completed Run.
[opc@gp labs]$
-mt maxtrans
終了までに実行するトランザクション数を指定します。
[opc@gp labs]$ ./3execute.sh
Swingbench
Author : Dominic Giles
Version : 2.7.0.1561
Results will be written to results.xml
Hit Return to Terminate Run...
Time Users TPM TPS NCR UCD BP OP PO BO SQ WQ WA
08:41:06 [0/10] 0 0 0 0 0 0 0 0 0 0 0
08:41:08 [10/10] 0 0 0 0 0 0 0 0 0 0 0
08:41:09 [10/10] (snip)
08:41:10 [10/10] (snip)
Saved results to results00010.xml
08:41:11 [0/10] (snip)
Completed Run.
[opc@gp labs]$
-bs startafter
統計収集を開始するまでの遅延時間を指定します。
ウォームアップ中の不安定な数値を除外したいときなどに指定します。
実行時間 (-rt) も一緒に指定する必要があります。
-be stopafter
統計収集を終了する時間を指定します
[opc@gp labs]$ ./3execute.sh
Swingbench
Author : Dominic Giles
Version : 2.7.0.1561
Results will be written to results.xml
Expected Benchmark Runtime is set to 40 seconds.
Time Users TPM TPS NCR UCD BP OP PO BO SQ WQ WA
08:46:13 [0/10] 0 0 0 0 0 0 0 0 0 0 0
08:46:14 [10/10] 0 0 0 0 0 0 0 0 0 0 0
(snip)
08:46:21 [10/10] (snip)
08:46:22 [10/10] (snip)
08:46:23 [10/10] (snip)
08:46:24 [10/10] (snip)
(snip)
08:46:32 [10/10] (snip)
08:46:33 [10/10] (snip)
Saved results to results00011.xml ★20秒で統計収集を終了 (33-13)
08:46:34 [10/10] (snip)
08:46:35 [10/10] (snip)
(snip)
08:46:53 [0/10] (snip) ★40秒で終了 (53-13)
Completed Run.
[opc@gp labs]$
-ld milliseconds
仮想ユーザ数 (同時接続数) の増分間隔を指定します。
[opc@gp labs]$ ./3execute.sh
Swingbench
Author : Dominic Giles
Version : 2.7.0.1561
Results will be written to results.xml
Expected Benchmark Runtime is set to 30 seconds.
★一気に増加
Time Users TPM TPS NCR UCD BP OP PO BO SQ WQ WA
08:54:19 [0/10] 0 0 0 0 0 0 0 0 0 0 0
08:54:20 [9/10] 0 0 0 0 0 0 0 0 0 0 0
08:54:21 [10/10] (snip)
08:54:22 [10/10]
08:54:23 [10/10]
08:54:24 [10/10]
08:54:25 [10/10]
08:54:26 [10/10]
08:54:27 [10/10]
08:54:28 [10/10]
08:54:29 [10/10]
08:54:30 [10/10]
08:54:31 [10/10]
08:54:32 [10/10]
08:54:33 [10/10]
08:54:34 [10/10]
08:54:35 [10/10]
08:54:36 [10/10]
08:54:37 [10/10]
08:54:38 [10/10]
08:54:39 [10/10]
08:54:40 [10/10]
08:54:41 [10/10]
08:54:42 [10/10]
08:54:43 [10/10]
08:54:44 [10/10]
08:54:45 [10/10]
08:54:46 [10/10]
08:54:47 [10/10]
08:54:48 [10/10]
08:54:49 [10/10]
Saved results to results00012.xml
08:54:50 [0/10] (snip)
Completed Run.
[opc@gp labs]$
[opc@gp labs]$ ./3execute.sh
Swingbench
Author : Dominic Giles
Version : 2.7.0.1561
Results will be written to results.xml
Expected Benchmark Runtime is set to 30 seconds.
★1秒間隔で増加
Time Users TPM TPS NCR UCD BP OP PO BO SQ WQ WA
08:55:15 [0/10] 0 0 0 0 0 0 0 0 0 0 0
08:55:16 [1/10] 0 0 0 0 0 0 0 0 0 0 0
08:55:17 [2/10] (snip)
08:55:18 [3/10]
08:55:19 [4/10]
08:55:20 [5/10]
08:55:21 [6/10]
08:55:22 [7/10]
08:55:23 [8/10]
08:55:24 [9/10]
08:55:25 [10/10]
08:55:26 [10/10]
08:55:27 [10/10]
08:55:28 [10/10]
08:55:29 [10/10]
08:55:30 [10/10]
08:55:31 [10/10]
08:55:32 [10/10]
08:55:33 [10/10]
08:55:34 [10/10]
08:55:35 [10/10]
08:55:36 [10/10]
08:55:37 [10/10]
08:55:38 [10/10]
08:55:39 [10/10]
08:55:40 [10/10]
08:55:41 [10/10]
08:55:42 [10/10]
08:55:43 [10/10]
08:55:44 [10/10]
08:55:45 [10/10]
Saved results to results00013.xml
08:55:46 [0/10] (snip)
Completed Run.
[opc@gp labs]$
-min milliseconds
トランザクション内の最小思考時間を指定します。
-max milliseconds
トランザクション内の最大思考時間を指定します。
-intermin milliseconds
トランザクション間の最小スリープ時間を指定します。
-intermax milliseconds
トランザクション間の最大スリープ時間を指定します。
-en shortname(s)
実行するトランザクションを短縮名で指定します。
-di shortname(s)
指定したトランザクションを無効化します。
CPUモニター設定
-cpuloc hostname
モニター対象のホスト名を指定します。
-cpuuser arg
モニター対象の OSユーザ名を指定します。
-cpupass arg
モニター対象の、OSユーザのパスワードを指定します。
分散実行設定
-co hostname
コーディネータ (マスターノード) のホスト名を指定します。
-g groupID
分散実行時のグループ識別子を指定します。
出力設定
-r filename
ベンチマーク結果を保存するファイル名を指定します。
[opc@gp labs]$ ./3execute.sh
Swingbench
Author : Dominic Giles
Version : 2.7.0.1561
Results will be written to foo.xml
Hit Return to Terminate Run...
Time Users TPM TPS NCR UCD BP OP PO BO SQ WQ WA
09:05:21 [0/10] 0 0 0 0 0 0 0 0 0 0 0
09:05:22 [10/10] 0 0 0 0 0 0 0 0 0 0 0
09:05:23 [10/10] (snip)
09:05:24 [10/10]
09:05:25 [10/10]
Saved results to foo.xml
Completed Run.
[opc@gp labs]$
再度実行すると通し番号がサフィックスとして付与されました。
[opc@gp labs]$ ./3execute.sh
Swingbench
Author : Dominic Giles
Version : 2.7.0.1561
Results will be written to foo.xml
Hit Return to Terminate Run...
Time Users TPM TPS NCR UCD BP OP PO BO SQ WQ WA
09:07:17 [0/10] 0 0 0 0 0 0 0 0 0 0 0
09:07:18 [10/10] 0 0 0 0 0 0 0 0 0 0 0
09:07:19 [10/10] (snip)
Saved results to foo00014.xml ★サフィックスが付与
Completed Run.
[opc@gp labs]$
なお、保存場所は以下の通りです。
[opc@gp labs]$ ls -la swingbench/bin/
total 260
drwxr-xr-x. 3 opc opc 4096 Sep 15 09:07 .
drwxr-xr-x. 12 opc opc 160 Sep 18 2025 ..
-rwxr-xr-x. 1 opc opc 1134 Apr 5 2023 charbench
-rwxr-xr-x. 1 opc opc 195 May 6 2022 coordinator
drwxr-xr-x. 2 opc opc 4096 Feb 14 2023 data
-rw-r--r--. 1 opc opc 7035 Sep 15 09:07 foo00014.xml ★直近のベンチマーク結果
-rw-r--r--. 1 opc opc 7051 Sep 15 09:05 foo.xml
-rwxr-xr-x. 1 opc opc 156 Jul 4 2024 jsonsocialwizard
-rwxr-xr-x. 1 opc opc 143 Jul 19 2017 jsonwizard
-rwxr-xr-x. 1 opc opc 110 Jul 19 2017 minibench
-rwxr-xr-x. 1 opc opc 150 Jan 14 2023 moviewizard
-rwxr-xr-x. 1 opc opc 141 Jul 19 2017 oewizard
-rw-r--r--. 1 opc opc 9787 Aug 24 07:47 results00001.xml
-rw-r--r--. 1 opc opc 10586 Aug 24 07:49 results00002.xml
-rw-r--r--. 1 opc opc 21193 Aug 24 09:11 results00003.xml
-rw-r--r--. 1 opc opc 10868 Aug 25 04:19 results00004.xml
-rw-r--r--. 1 opc opc 9838 Aug 25 04:41 results00005.xml
-rw-r--r--. 1 opc opc 9335 Aug 25 05:01 results00006.xml
-rw-r--r--. 1 opc opc 7482 Sep 15 06:48 results00007.xml
-rw-r--r--. 1 opc opc 7036 Sep 15 08:34 results00008.xml
-rw-r--r--. 1 opc opc 8744 Sep 15 08:38 results00009.xml
-rw-r--r--. 1 opc opc 7019 Sep 15 08:41 results00010.xml
-rw-r--r--. 1 opc opc 7184 Sep 15 08:46 results00011.xml
-rw-r--r--. 1 opc opc 7563 Sep 15 08:54 results00012.xml
-rw-r--r--. 1 opc opc 7551 Sep 15 08:55 results00013.xml
-rwxr-xr-x. 1 opc opc 114 Jul 19 2017 results2pdf
-rwxr-xr-x. 1 opc opc 116 Sep 18 2025 results2text
-rw-r--r--. 1 opc opc 27514 Aug 24 07:39 results.xml
-rwxr-xr-x. 1 opc opc 107 Jul 19 2017 sbutil
-rwxr-xr-x. 1 opc opc 141 Jul 19 2017 shwizard
-rwxr-xr-x. 1 opc opc 121 Nov 2 2016 sqlbuilder
-rwxr-xr-x. 1 opc opc 112 Jul 19 2017 swingbench
-rwxr-xr-x. 1 opc opc 147 Sep 10 2025 tpccwizard
-rwxr-xr-x. 1 opc opc 150 Jul 19 2017 tpcdswizard
-rwxr-xr-x. 1 opc opc 147 Mar 13 2022 tpchwizard
[opc@gp labs]$
-nr
ベンチマーク結果を保存しない時に指定します。
動作確認を行うときなど。
-sr
ベンチマーク結果を最小限にします。
-mr
ベンチマーク終了時に、ミニレポートを標準出力します。
[opc@gp labs]$ ./3execute.sh
Swingbench
Author : Dominic Giles
Version : 2.7.0.1561
Results will be written to results.xml
Hit Return to Terminate Run...
Time Users TPM TPS NCR UCD BP OP PO BO SQ WQ WA
09:11:12 [0/10] 0 0 0 0 0 0 0 0 0 0 0
09:11:13 [10/10] 0 0 0 0 0 0 0 0 0 0 0
09:11:14 [10/10] (snip)
09:11:15 [10/10]
09:11:16 [10/10]
09:11:17 [10/10]
---------------------------------------------------------------
|Results of Charbench Run | ★ミニレポート
---------------------------------------------------------------
|Benchmark Name | "Order Entry (PLSQL) V2"|
|Time of Run | Sep 15, 2026, 9:11:12 AM|
|Length of Benchmark | 0:00:05|
|Total Logon Time | 0:00:00|
|Total Completed Transactions | (snip)|
|Total Failed Transactions | 0|
|Maximum Transactions/min | (snip)|
|Average Transactions/sec | (snip)|
|Total Select Statements | 3012|
|Total Insert Statements | 466|
|Total Update Statements | 326|
|Total Delete Statements | 0|
|Total Commit Statements | 286|
|Total Rollback Statements | 0|
---------------------------------------------------------------
|Transaction : Customer Registration |
---------------------------------------------------------------
|Minimum Response Time | (snip)|
|Maximum Response Time | (snip)|
|Average Response Time | (snip)|
|Geometric Mean Response Time | (snip)|
|Median Response Time | (snip)|
|Number of Transactions | 37|
|Failed Transactions | 0|
|Rolled Back Transactions | 0|
---------------------------------------------------------------
|Transaction : Update Customer Details |
---------------------------------------------------------------
|Minimum Response Time | (snip)|
|Maximum Response Time | (snip)|
|Average Response Time | (snip)|
|Geometric Mean Response Time | (snip)|
|Median Response Time | (snip)|
|Number of Transactions | 20|
|Failed Transactions | 0|
|Rolled Back Transactions | 0|
---------------------------------------------------------------
|Transaction : Browse Products |
---------------------------------------------------------------
|Minimum Response Time | (snip)|
|Maximum Response Time | (snip)|
|Average Response Time | (snip)|
|Geometric Mean Response Time | (snip)|
|Median Response Time | (snip)|
|Number of Transactions | 128|
|Failed Transactions | 0|
|Rolled Back Transactions | 0|
---------------------------------------------------------------
|Transaction : Order Products |
---------------------------------------------------------------
|Minimum Response Time | (snip)|
|Maximum Response Time | (snip)|
|Average Response Time | (snip)|
|Geometric Mean Response Time | (snip)|
|Median Response Time | (snip)|
|Number of Transactions | 85|
|Failed Transactions | 0|
|Rolled Back Transactions | 0|
---------------------------------------------------------------
|Transaction : Process Orders |
---------------------------------------------------------------
|Minimum Response Time | (snip)|
|Maximum Response Time | (snip)|
|Average Response Time | (snip)|
|Geometric Mean Response Time | (snip)|
|Median Response Time | (snip)|
|Number of Transactions | 8|
|Failed Transactions | 0|
|Rolled Back Transactions | 0|
---------------------------------------------------------------
|Transaction : Browse Orders |
---------------------------------------------------------------
|Minimum Response Time | (snip)|
|Maximum Response Time | (snip)|
|Average Response Time | (snip)|
|Geometric Mean Response Time | (snip)|
|Median Response Time | (snip)|
|Number of Transactions | 8|
|Failed Transactions | 0|
|Rolled Back Transactions | 0|
---------------------------------------------------------------
Saved results to results00015.xml
Completed Run.
[opc@gp labs]$
-com comment
ベンチマーク結果にコメントを記載します。
[opc@gp labs]$ cat /home/opc/labs/swingbench/bin/results00016.xml
<?xml version = '1.0' encoding = 'UTF-8'?>
<Results xmlns="http://www.dominicgiles.com/swingbench/results">
<Overview>
<BenchmarkName>"Order Entry (PLSQL) V2"</BenchmarkName>
<Comment>piyopiyo</Comment> ★指定したコメントが記載
<TimeOfRun>Sep 15, 2026, 9:17:23 AM</TimeOfRun>
(snip)
</Results>
-stats stats level
ベンチマーク結果の詳細度 (full or simple) を指定します。
-oj
出力フォーマットをXMLからJSONに変更します。
-ot output type
出力タイプ (JSON or 標準出力) を指定します。
-v options
ベンチマーク実行中のメトリクス表示を vmstat風にします。
-rr arg
ベンチマーク実行中のメトリクスの更新間隔を指定します。
-nc
カラー出力を無効にします。
-vo verboseOutput
ベンチマーク実行中に詳細ログを標準出力ではなくファイルへ出力したいときにパスを指定します。
-dumptx
全トランザクションの応答時間をファイルに出力します。
-dumptxdir directory name
-dumptxの出力先を指定します。
デバッグ設定
-debug debugtarget
デバッグ対象 (Swingbench, JDBC, Universal Connection Pool) を指定します
-debugf debugfile
デバッグログの出力先を指定します。(デフォルトは標準出力)
-debugl debuglevel
デバッグ出力のレベルを指定します。
下に行くほど出力内容が細かくなります。
| debug level | 意味 |
|---|---|
| severe | 重大な障害 |
| warning | 警告 |
| info | 情報 |
| fine | デバッグ (並) |
| finest | デバッグ (詳細) |
