Fortinet white logo
Fortinet white logo

CLI Reference

benchmark

benchmark

Use the following commands to test performance.

benchmark io-perf

Use these commands to test IO performance.

Syntax

execute benchmark io-perf custom <parameters>

execute benchmark io-perf rand-read [reboot]

execute benchmark io-perf rand-rw [reboot]

execute benchmark io-perf rand-write [reboot]

execute benchmark io-perf seq-read [reboot]

execute benchmark io-perf seq-rw [reboot]

execute benchmark io-perf seq-write [reboot]

execute benchmark io-perf show-last-result <operation>

Variable

Description

custom <parameters>

Test IO performance with custom parameters.

Enter the following paramaters (format example: rw=randrw numjobs=8 bs=4 size=4 runtime=60).

  • rw = Type of I/O pattern. Accepted values are read, write, rw (read and write), randread (random read), randwrite (random write), and randrw (random read and write).

  • numjobs = Number of jobs doing io-perf.

  • bs = The block size in bytes used for I/O units (unit is KB).

  • size = The total size of file I/O for each job (unit is GB).

  • runtime = Limit runtime for io-perf (unit is seconds).

rand-read [reboot]

Test random read IO performance. Enter reboot to reboot for io-perf running in clean env.

rand-rw [reboot]

Test random read and write IO performance. Enter reboot to reboot for io-perf running in clean env.

rand-write [reboot]

Test random write IO performance. Enter reboot to reboot for io-perf running in clean env.

seq-read [reboot]

Test sequential read IO performance. Enter reboot to reboot for io-perf running in clean env.

seq-rw [reboot]

Test sequential read and write IO performance. Enter reboot to reboot for io-perf running in clean env.

seq-write [reboot]

Test sequential write IO performance. Enter reboot to reboot for io-perf running in clean env.

show-last-result <operation>

Show the last io-perf result for one of the following operations:

  • all = All operations

  • seq-read = Sequential read

  • seq-write = Sequential write

  • seq-rw = Sequential read and write

  • rand-read = Random read

  • rand-write = Random write

  • rand-rw = Random read and write

  • custom = Custom io-perf parameters

benchmark stress

Use these commands to stress test.

Syntax

execute benchmark stress cpu <duration> <worker>

execute benchmark stress custom <parameter> .. <parameter>

execute benchmark stress disk <duration> <worker> <data-size>

execute benchmark stress mem <duration> <worker> <data-size>

Variable

Description

cpu <duration> <worker>

Run CPU stress test.

  • <duration>: Enter the test duration. For example, 100s, 10m, or 1h.

  • <worker>: Enter the number of workers.

custom <parameter> .. <parameter>

Run a custom stress test.

Enter execute benchmark stress custom help to view the usage and available general control options and stressor specific options.

disk <duration> <worker> <data-size>

Run disk stress test.

  • <duration>: Enter the test duration. For example, 100s, 10m, or 1h.

  • <worker>: Enter the number of workers.

  • <data-size>: Enter the size of data to test. For example, 256M or 1G.

mem <duration> <worker> <data-size>

Run memory stress test.

  • <duration>: Enter the test duration. For example, 100s, 10m, or 1h.

  • <worker>: Enter the number of workers.

  • <data-size>: Enter the size of data to test. For example, 256M or 1G.

benchmark

benchmark

Use the following commands to test performance.

benchmark io-perf

Use these commands to test IO performance.

Syntax

execute benchmark io-perf custom <parameters>

execute benchmark io-perf rand-read [reboot]

execute benchmark io-perf rand-rw [reboot]

execute benchmark io-perf rand-write [reboot]

execute benchmark io-perf seq-read [reboot]

execute benchmark io-perf seq-rw [reboot]

execute benchmark io-perf seq-write [reboot]

execute benchmark io-perf show-last-result <operation>

Variable

Description

custom <parameters>

Test IO performance with custom parameters.

Enter the following paramaters (format example: rw=randrw numjobs=8 bs=4 size=4 runtime=60).

  • rw = Type of I/O pattern. Accepted values are read, write, rw (read and write), randread (random read), randwrite (random write), and randrw (random read and write).

  • numjobs = Number of jobs doing io-perf.

  • bs = The block size in bytes used for I/O units (unit is KB).

  • size = The total size of file I/O for each job (unit is GB).

  • runtime = Limit runtime for io-perf (unit is seconds).

rand-read [reboot]

Test random read IO performance. Enter reboot to reboot for io-perf running in clean env.

rand-rw [reboot]

Test random read and write IO performance. Enter reboot to reboot for io-perf running in clean env.

rand-write [reboot]

Test random write IO performance. Enter reboot to reboot for io-perf running in clean env.

seq-read [reboot]

Test sequential read IO performance. Enter reboot to reboot for io-perf running in clean env.

seq-rw [reboot]

Test sequential read and write IO performance. Enter reboot to reboot for io-perf running in clean env.

seq-write [reboot]

Test sequential write IO performance. Enter reboot to reboot for io-perf running in clean env.

show-last-result <operation>

Show the last io-perf result for one of the following operations:

  • all = All operations

  • seq-read = Sequential read

  • seq-write = Sequential write

  • seq-rw = Sequential read and write

  • rand-read = Random read

  • rand-write = Random write

  • rand-rw = Random read and write

  • custom = Custom io-perf parameters

benchmark stress

Use these commands to stress test.

Syntax

execute benchmark stress cpu <duration> <worker>

execute benchmark stress custom <parameter> .. <parameter>

execute benchmark stress disk <duration> <worker> <data-size>

execute benchmark stress mem <duration> <worker> <data-size>

Variable

Description

cpu <duration> <worker>

Run CPU stress test.

  • <duration>: Enter the test duration. For example, 100s, 10m, or 1h.

  • <worker>: Enter the number of workers.

custom <parameter> .. <parameter>

Run a custom stress test.

Enter execute benchmark stress custom help to view the usage and available general control options and stressor specific options.

disk <duration> <worker> <data-size>

Run disk stress test.

  • <duration>: Enter the test duration. For example, 100s, 10m, or 1h.

  • <worker>: Enter the number of workers.

  • <data-size>: Enter the size of data to test. For example, 256M or 1G.

mem <duration> <worker> <data-size>

Run memory stress test.

  • <duration>: Enter the test duration. For example, 100s, 10m, or 1h.

  • <worker>: Enter the number of workers.

  • <data-size>: Enter the size of data to test. For example, 256M or 1G.