Back to Remotion

npx remotion benchmark

packages/docs/docs/cli/benchmark.mdx

4.0.4604.3 KB
Original Source
<AvailableFrom v="3.2.28" />

Measures render time by running a render multiple times, if desired with multiple compositions and concurrency values to compare against each other.

bash
npx remotion benchmark src/index.ts [composition-ids]

You can provide multiple composition IDs separated by comma, ex: npx remotion benchmark src/index.ts --codec=h264 Main,Canvas,CSS

If composition-ids is not passed, Remotion will let you select compositions from a list.

Flags

--runs

<Options id="runs" />

--concurrencies

<Options id="concurrencies" />

--codec

Inherited from npx remotion render

--audio-codec<AvailableFrom v="3.3.42" />

<Options id="audio-codec" />

--crf

Inherited from npx remotion render

--frames

Inherited from npx remotion render

--image-format

Inherited from npx remotion render

--pixel-format

Inherited from npx remotion render

--props

Inherited from npx remotion render

--prores-profile

Inherited from npx remotion render

--jpeg-quality<AvailableFrom v="4.0.0" />

Inherited from npx remotion render

--quality

Removed in v4.0.0. Renamed to --jpeg-quality.

--log

Inherited from npx remotion render

--ignore-certificate-errors

Inherited from npx remotion render

--disable-web-security

Inherited from npx remotion render

--dark-mode<AvailableFrom v="4.0.381"/>

<Options id="dark-mode" />

--disable-headless

<Options id="disable-headless" />

--enable-multiprocess-on-linux<AvailableFrom v="4.0.42"/>

<Options cli id="enable-multiprocess-on-linux" />

--gl

<Options id="gl" cli />

--chrome-mode<AvailableFrom v="4.0.248" />

<Options id="chrome-mode" />

--timeout

Inherited from npx remotion render

--scale

Inherited from npx remotion render

--port

Inherited from npx remotion render

--number-of-gif-loops

<Options id="number-of-gif-loops" />

--every-nth-frame

Inherited from npx remotion render

--log

Inherited from npx remotion render

--muted

Inherited from npx remotion render

--enforce-audio-track

Inherited from npx remotion render

--disallow-parallel-encoding<AvailableFrom v="4.0.315" />

Inherited from npx remotion render

--browser-executable

Inherited from npx remotion render

--public-dir

Inherited from npx remotion render

--config

Inherited from npx remotion render

--bundle-cache

Inherited from npx remotion render

--video-bitrate

Inherited from npx remotion render

--audio-bitrate

Inherited from npx remotion render

--color-space<AvailableFrom v="4.0.28"/>

<Options cli id="color-space" />

--hardware-acceleration<AvailableFrom v="4.0.228" />

<Options cli id="hardware-acceleration" />

--offthreadvideo-cache-size-in-bytes<AvailableFrom v="4.0.23"/>

<Options id="offthreadvideo-cache-size-in-bytes" />

--media-cache-size-in-bytes<AvailableFrom v="4.0.352"/>

<Options id="media-cache-size-in-bytes" />

--binaries-directory<AvailableFrom v="4.0.120" />

<Options cli id="binaries-directory" />

--experimental-rspack<AvailableFrom v="4.0.426" />

<Options id="experimental-rspack" />

--ffmpeg-executable

Removed in v4.0. Inherited from npx remotion render

--ffprobe-executable

Removed in v4.0. Inherited from npx remotion render