Benchmark Race

Lanes race on a shared clock and Remocn finishes first, shown as 12x faster. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/benchmark-race

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { BenchmarkRace } from "@/components/remocn/benchmark-race";
 
const BenchmarkRaceScene = () => (
  <BenchmarkRace
    statement="12× faster"
    title="Cold render, 1080p · median of 50 runs"
    lanes={[
      { label: "remocn", seconds: 0.42, highlight: true },
      { label: "Kitebase", seconds: 2.38 },
      { label: "Before", seconds: 5.06 },
    ]}
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="BenchmarkRace"
    component={BenchmarkRaceScene}
    durationInFrames={300}
    fps={60}
    width={1280}
    height={720}
  />
);

Lanes arrive and race on a shared clock; the highlighted lane hits the finish first and its time freezes with a pulse while the others dim and keep crawling. The camera then glides down and the statement rolls in above. Pass lanes (label, seconds, optional highlight), statement and title. Ships dark and light via theme.

Props17

PropTypeDefault
lanes
BenchmarkLane[]DEFAULT_LANES

Lanes to race, each with a label, finish time and optional highlight.

unit
string"s"

Suffix on the clocks.

statement
string"12× faster"

Lands above the lanes after the hit. A leading number rolls in.

title
string"Cold render, 1080p · median of 50 runs"

Small caption over the lanes: what was measured.

note
string"lower is better"

Faint note at the right of the caption row.

decimals
number2

Digits after the decimal point on the clocks.

race
number42

Frames the product lane takes to cross the finish line; sets the clock scale.

accent
string"#3B5BFD"

Accent color for the hero element.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Geist"

Typeface for the copy. Load the font in your project first.

logo
React.ReactNode—

Replaces the remocn mark.

grain
booleantrue

Film grain over the scene.

scale
number1

Size of the foreground around the frame's center; the background stays put.

delay
number0

Frames to hold the first frame before anything moves.

speed
number1

Playback multiplier.

theme
"dark" | "light""dark"

Dark or light palette.

  • lanesBenchmarkLane[]

    Lanes to race, each with a label, finish time and optional highlight.

    DefaultDEFAULT_LANES

  • unitstring

    Suffix on the clocks.

    Default"s"

  • statementstring

    Lands above the lanes after the hit. A leading number rolls in.

    Default"12× faster"

  • titlestring

    Small caption over the lanes: what was measured.

    Default"Cold render, 1080p · median of 50 runs"

  • notestring

    Faint note at the right of the caption row.

    Default"lower is better"

  • decimalsnumber

    Digits after the decimal point on the clocks.

    Default2

  • racenumber

    Frames the product lane takes to cross the finish line; sets the clock scale.

    Default42

  • accentstring

    Accent color for the hero element.

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Geist"

  • logoReact.ReactNode

    Replaces the remocn mark.

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • speednumber

    Playback multiplier.

    Default1

  • theme"dark" | "light"

    Dark or light palette.

    Default"dark"