Ballmac UI home

Benchmark 1: before and after

A before-and-after benchmark for two versions of a model or prompt: a sentence on what got better and worse, quality and speed task by task, what a run costs, and where the time goes.

State

The normal view. Pick a state to see what the block shows while it loads, is empty or fails.

Open in v0 (opens in a new tab)

Installation

$ pnpm dlx shadcn@latest add @ballmac/benchmark-1

Usage

Example: benchmark-1-demo.tsx
"use client"

import { Benchmark1 } from "@/components/ballmac/blocks/benchmark-1/benchmark-1"

export default function Benchmark1Demo() {
  return <Benchmark1 />
}

States

Pass state and the block does the rest: skeletons that match its layout, a clear empty message, an error you can retry, and announcements for screen readers.

  • Loading

    Skeleton summary and charts under the real heading, announced as loading.

    state="loading"
  • Nothing to compare yet

    Says there is nothing to compare yet; emptyState sets the copy.

    state="empty"
  • Could not load

    An alert saying nothing was changed, with Try again (onRetry).

    state="error"

Dependencies

Use with AI

Benchmark. <Benchmark1 title description from to quality={DumbbellRow[]} speed={DumbbellRow[]} cost={SplitSegment[]} slowest={BarListItem[]} />. The sentence at the top is computed from quality and speed (better on N of M, average change, faster on N). Speed is lowerIsBetter. Every chart writes each change in words. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Benchmark 1: before and after (@ballmac/benchmark-1) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Deciding whether to ship a new prompt or model
  • An experiment results page

Not for

  • Checking individual cases; use agent-17
  • Live monitoring; use reliability-1

Registry JSON: https://ui.ballmac.com/r/benchmark-1.json

Free to use in personal and commercial projects.

Ballmac UI Pro

Need the whole screen, not one piece?

150 premium blocks (dashboards, settings, calendars, mail, shops, onboarding), a private shadcn registry and Figma tokens. Blocks that show data come with loading, empty and error states built in.

Not ready? Try three Pro blocks free

Leave your email and the blocks appear right here, ready to copy. Yours to use in any project.