Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

13.8 KB
Raw Blame
dev bench pinchtab --max-turns 100 --verbose --groups 0,1
warning: multiple providers configured, defaulting to anthropic
Rebuilding pinchtab with pinchtab-benchmark.json (wrapContent=false)...
Compose now can delegate build to bake for better performances
Just set COMPOSE_BAKE=true
[+] Building 2.3s (29/29) FINISHED                                                   docker:desktop-linux
 => [pinchtab internal] load build definition from Dockerfile                                        0.0s
 => => transferring dockerfile: 2.48kB                                                               0.0s
 => [pinchtab internal] load metadata for docker.io/library/alpine:3.21                              0.6s
 => [pinchtab internal] load metadata for docker.io/library/golang:1.26-alpine                       0.7s
 => [pinchtab internal] load metadata for docker.io/oven/bun:1                                       0.6s
 => [pinchtab internal] load .dockerignore                                                           0.0s
 => => transferring context: 504B                                                                    0.0s
 => [pinchtab dashboard 1/6] FROM docker.io/oven/bun:1@sha256:87416c977a612a204eb54ab9f3927023c2a3c  0.0s
 => => resolve docker.io/oven/bun:1@sha256:87416c977a612a204eb54ab9f3927023c2a3c971f4f345a01da08ea6  0.0s
 => [pinchtab internal] load build context                                                           1.5s
 => => transferring context: 423.26kB                                                                1.5s
 => [pinchtab stage-2 1/6] FROM docker.io/library/alpine:3.21@sha256:48b0309ca019d89d40f670aa1bc06e  0.0s
 => => resolve docker.io/library/alpine:3.21@sha256:48b0309ca019d89d40f670aa1bc06e426dc0931948452e8  0.0s
 => [pinchtab builder 1/9] FROM docker.io/library/golang:1.26-alpine@sha256:f85330846cde1e57ca9ec30  0.0s
 => => resolve docker.io/library/golang:1.26-alpine@sha256:f85330846cde1e57ca9ec309382da3b8e6ae3ab9  0.0s
 => CACHED [pinchtab stage-2 2/6] RUN apk add --no-cache     chromium     nss     freetype     harf  0.0s
 => CACHED [pinchtab stage-2 3/6] RUN adduser -D -h /data -g '' pinchtab &&     mkdir -p /data &&    0.0s
 => CACHED [pinchtab builder 2/9] RUN apk add --no-cache git                                         0.0s
 => CACHED [pinchtab builder 3/9] WORKDIR /build                                                     0.0s
 => CACHED [pinchtab builder 4/9] COPY go.mod go.sum ./                                              0.0s
 => CACHED [pinchtab builder 5/9] RUN go mod download                                                0.0s
 => CACHED [pinchtab builder 6/9] COPY . .                                                           0.0s
 => CACHED [pinchtab dashboard 2/6] WORKDIR /build                                                   0.0s
 => CACHED [pinchtab dashboard 3/6] COPY dashboard/package.json dashboard/bun.lock ./                0.0s
 => CACHED [pinchtab dashboard 4/6] RUN bun install --frozen-lockfile                                0.0s
 => CACHED [pinchtab dashboard 5/6] COPY dashboard/ .                                                0.0s
 => CACHED [pinchtab dashboard 6/6] RUN bun run build                                                0.0s
 => CACHED [pinchtab builder 7/9] COPY --from=dashboard /build/dist/ internal/dashboard/dashboard/   0.0s
 => CACHED [pinchtab builder 8/9] RUN mv internal/dashboard/dashboard/index.html internal/dashboard  0.0s
 => CACHED [pinchtab builder 9/9] RUN go build -ldflags="-s -w" -o pinchtab ./cmd/pinchtab           0.0s
 => CACHED [pinchtab stage-2 4/6] COPY --from=builder /build/pinchtab /usr/local/bin/pinchtab        0.0s
 => CACHED [pinchtab stage-2 5/6] COPY --chmod=0755 docker-entrypoint.sh /usr/local/bin/docker-entr  0.0s
 => CACHED [pinchtab stage-2 6/6] WORKDIR /data                                                      0.0s
 => [pinchtab] exporting to image                                                                    0.0s
 => => exporting layers                                                                              0.0s
 => => exporting manifest sha256:da7f4403d6e06e90879bf90cca17952d700c1f789dcce834fd0f53899b26ff05    0.0s
 => => exporting config sha256:36a6628c08b8fdba1ceb66bf2b511b5f1586f66649d79c637a5612295ea221de      0.0s
 => => exporting attestation manifest sha256:77816369fbc8e669ad7f3dc5f6b138b55a682504eaaf09575663d0  0.0s
 => => exporting manifest list sha256:ae888261664aa315c2856c35b5e8110bfc6353c4a66fefe20273e9d21987e  0.0s
 => => naming to docker.io/library/tools-pinchtab:latest                                             0.0s
 => => unpacking to docker.io/library/tools-pinchtab:latest                                          0.0s
 => [pinchtab] resolving provenance for metadata file                                                0.0s
[+] Running 2/2
 ✔ pinchtab                    Built                                                                 0.0s 
 ✔ Container tools-pinchtab-1  Started                                                               5.6s 
Verified: pinchtab running with wrapContent=false
=== PinchTab Benchmark Run #1 ===
Timestamp: 20260420_133720
Report: <repo>/tests/benchmark/results/pinchtab_benchmark_20260420_133720.json

[benchmark-runner] provider=anthropic model=claude-haiku-4-5-20251001 lane=pinchtab groups=0,1 report=<repo>/tests/benchmark/results/pinchtab_benchmark_20260420_133720.json

══ Benchmark start ══
  lane:   pinchtab
  model:  claude-haiku-4-5-20251001
  report: <repo>/tests/benchmark/results/pinchtab_benchmark_20260420_133720.json

  Group 0 — 5 step(s):
    0.1  Navigate to page
    0.2  Take snapshot
    0.3  Read page text
    0.4  Click a link
    0.5  Extract specific data

  Group 1 — 5 step(s):
    1.1  Fill a text input
    1.2  Click a button
    1.3  Use search functionality
    1.4  Handle dynamic content
    1.5  Navigate back

  Total: 10 step(s) across 2 group(s)


─── Turn 1/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 2 in, 6232 cc, 0 cr, 122 out
▶ ./scripts/pt nav http://fixtures/ --snap
  ✓ ACCABA1699124602F729D6B6D862FC33
       # PinchTab Benchmark - Home | http://fixtures/ | 13 nodes (+13 lines) [324ms]

─── Turn 2/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 323 in, 0 cc, 6232 cr, 142 out
▶ ./scripts/runner step-end 0 1 answer "Page loaded successfully at http://fixt...
  ✓ Recorded 0.1 answer
       Verified: Step 0.1 = pass [1.674s]

─── Turn 3/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 555 in, 0 cc, 6232 cr, 95 out
▶ ./scripts/pt snap
  ✓ # PinchTab Benchmark - Home | http://fixtures/ | 13 nodes
       e0:heading "PinchTab Benchmark Suite" (+12 lines) [129ms]

─── Turn 4/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 825 in, 0 cc, 6232 cr, 138 out
▶ ./scripts/runner step-end 0 2 answer "Snapshot captured with 13 nodes includi...
  ✓ Recorded 0.2 answer
       Verified: Step 0.2 = pass [1.691s]

─── Turn 5/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 1061 in, 0 cc, 6232 cr, 94 out
▶ ./scripts/pt text
  ✓ Welcome to the Benchmark Test Suite
             This site contains controlled test pages for verifying browse... (+9 lines) [112ms]

─── Turn 6/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 1283 in, 0 cc, 6232 cr, 136 out
▶ ./scripts/runner step-end 0 3 answer "Text content extracted: Welcome heading...
  ✓ Recorded 0.3 answer
       Verified: Step 0.3 = pass [1.674s]

─── Turn 7/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 1516 in, 0 cc, 6232 cr, 112 out
▶ ./scripts/pt click e1 --snap
  ✓ OK
       # Articles - PinchTab Benchmark | http://fixtures/articles.html | 1... (+18 lines) [180ms]

─── Turn 8/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 1580 in, 0 cc, 6232 cr, 148 out
▶ ./scripts/runner step-end 0 4 answer "Clicked Articles link (e1) and navigate...
  ✓ Recorded 0.4 answer
       Verified: Step 0.4 = pass [1.671s]

─── Turn 9/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 1830 in, 0 cc, 6232 cr, 110 out
▶ ./scripts/pt text e3
  ✓ The Future of Artificial Intelligence [123ms]

─── Turn 10/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 1516 in, 0 cc, 6232 cr, 130 out
▶ ./scripts/runner step-end 0 5 answer "Target element text extracted: 'The Fut...
  ✓ Recorded 0.5 answer
       Verified: Step 0.5 = pass [1.686s]

─── Turn 11/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 1736 in, 0 cc, 6232 cr, 129 out
▶ ./scripts/pt nav http://fixtures/form.html --snap
  ✓ ACCABA1699124602F729D6B6D862FC33
       # Form - PinchTab Benchmark | http://fixtures/form.html | 27 nodes (+27 lines) [329ms]

─── Turn 12/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 1790 in, 0 cc, 6232 cr, 124 out
▶ ./scripts/pt fill e3 "John Doe" --snap-diff
  ✓ OK
       # Form - PinchTab Benchmark | http://fixtures/form.html | 27 nodes ... (+27 lines) [137ms]

─── Turn 13/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 2267 in, 0 cc, 6232 cr, 140 out
▶ ./scripts/runner step-end 1 1 answer "Filled Full Name input field (e3) with ...
  ✓ Recorded 1.1 answer
       Verified: Step 1.1 = pass [1.665s]

─── Turn 14/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 1906 in, 0 cc, 6232 cr, 122 out
▶ ./scripts/pt fill e4 "[email protected]" --snap-diff
  ✓ OK
       # Form - PinchTab Benchmark | http://fixtures/form.html | 27 nodes ... (+27 lines) [118ms]

─── Turn 15/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 2394 in, 0 cc, 6232 cr, 103 out
▶ ./scripts/pt click e25 --snap-diff
  ✓ OK
       # Form - PinchTab Benchmark | http://fixtures/form.html | 28 nodes ... (+28 lines) [136ms]

─── Turn 16/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 2500 in, 0 cc, 6232 cr, 158 out
▶ ./scripts/runner step-end 1 2 answer "Clicked Submit Form button (e25) and fo...
  ✓ Recorded 1.2 answer
       Verified: Step 1.2 = pass [1.687s]

─── Turn 17/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 2749 in, 0 cc, 6232 cr, 111 out
▶ ./scripts/pt nav http://fixtures/search.html --snap
  ✓ ACCABA1699124602F729D6B6D862FC33
       # Search - PinchTab Benchmark | http://fixtures/search.html | 5 nodes (+5 lines) [324ms]

─── Turn 18/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 2073 in, 0 cc, 6232 cr, 127 out
▶ ./scripts/pt fill e3 "artificial intelligence" --snap-diff
  ✓ OK
       # Search - PinchTab Benchmark | http://fixtures/search.html | 5 nod... (+5 lines) [90ms]

─── Turn 19/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 2339 in, 0 cc, 6232 cr, 99 out
▶ ./scripts/pt click e4 --snap-diff
  ✓ OK
       # Search - PinchTab Benchmark | http://fixtures/search.html | 7 nod... (+7 lines) [105ms]

─── Turn 20/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 1889 in, 0 cc, 6232 cr, 168 out
▶ ./scripts/runner step-end 1 3 answer "Entered 'artificial intelligence' in se...
  ✓ Recorded 1.3 answer
       Verified: Step 1.3 = pass [1.657s]

─── Turn 21/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 2152 in, 0 cc, 6232 cr, 117 out
▶ ./scripts/pt nav http://fixtures/spa.html --snap
  ✓ ACCABA1699124602F729D6B6D862FC33
       # Task Manager — PinchTab Benchmark | http://fixtures/spa.html | ... (+17 lines) [330ms]

─── Turn 22/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 1823 in, 0 cc, 6232 cr, 120 out
▶ ./scripts/pt fill e4 "Test dynamic content" --snap-diff
  ✓ OK
       # Task Manager — PinchTab Benchmark | http://fixtures/spa.html | ... (+17 lines) [130ms]

─── Turn 23/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 2191 in, 0 cc, 6232 cr, 104 out
▶ ./scripts/pt click e9 --snap-diff
  ✓ OK
       # Task Manager — PinchTab Benchmark | http://fixtures/spa.html | ... (+20 lines) [131ms]

─── Turn 24/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 2088 in, 0 cc, 6232 cr, 178 out
▶ ./scripts/runner step-end 1 4 answer "Navigated to SPA page, filled task inpu...
  ✓ Recorded 1.4 answer
       Verified: Step 1.4 = pass [1.679s]

─── Turn 25/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 2374 in, 0 cc, 6232 cr, 103 out
▶ ./scripts/pt back --snap
  ✓ http://fixtures/search.html
       # Search - PinchTab Benchmark | http://fixtures/search.html | 7 nodes (+7 lines) [341ms]

─── Turn 26/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 2146 in, 0 cc, 6232 cr, 142 out
▶ ./scripts/runner step-end 1 5 answer "Used browser back navigation from SPA p...
  ✓ Recorded 1.5 answer
       Verified: Step 1.5 = pass [1.684s]

─── Turn 27/100 ───
  ← anthropic/claude-haiku-4-5-20251001: 2379 in, 0 cc, 6232 cr, 113 out
Wrote <repo>/tests/benchmark/results/pinchtab_benchmark_20260420_133720_summary.md

# Benchmark Summary

| Metric | Value |
|--------|-------|
| Type | pinchtab |
| Model | claude-haiku-4-5-20251001 |
| Steps Answered | 10 |
| Execution Failed | 0 |
| Execution Skipped | 0 |
| Answer Rate | 100% |
| Verified Passed | 10 |
| Verified Failed | 0 |
| Verified Skipped | 0 |
| Pending Verification | 0 |
| Verification Pass Rate | 100% |
| Tool Calls | 0 |

## Run Usage

| Metric | Value |
|--------|-------|
| Source | anthropic-messages |
| Provider | anthropic |
| API Requests | 27 |
| Input Tokens (uncached) | 47287 |
| Cache Creation Input Tokens | 6232 |
| Cache Read Input Tokens | 162032 |
| Total Input Tokens | 215551 |
| Output Tokens | 3385 |
| Total Tokens | 218936 |

## Pending Verification

- none

## Failed Steps

- none

## Verification Failures

- none

[run-usage] provider=anthropic requests=27 input=47287 cache_create=6232 cache_read=162032 output=3385 total=218936

══ Benchmark result ══
  answered:             10
  execution failed:     0
  execution skipped:    0
  verified passed:      10
  verified failed:      0
  verified skipped:     0
  pending verification: 0
  tool calls:           0
  verification pass rate: 100.0% (10/10)