idx

idx Benchmark Report

Run ID: idx-benchmark-20260511T000000Z Date: May 11, 2026

Executive Summary

This report captures an idx-only benchmark run for the student registration CLI workflow across three phases: build, feature, and bugfix.

Tool profile:

Results:

Metric provenance:


Benchmark Workload

Phase 1: Build

Build a Go CLI for student registration with:

Phase 2: Feature

Add a command to list all registered students:

Phase 3: Bugfix

Fix plaintext password exposure:


Session Metrics

Build Phase

Metric Value Notes
Started 2026-05-11T03:10:15Z Estimated from session ordering
Finished 2026-05-11T03:11:03Z Build validation completed
Duration 48 seconds Estimated
Tool search count 0 No idx search needed during build
Tool navigation count 0 No search-hit navigation
Context input tokens 438 Estimated from transcript
Context output tokens 312 Estimated from transcript
Context total tokens 750 Estimated from transcript
Token metrics source estimated No telemetry export available
Tests passed 6/6 Build suite passed
Bcrypt validated N/A Not applicable to build
Result PASS
Notes Greenfield CLI build with create flow, registry persistence, and basic tests.  

Feature Phase

Metric Value Notes
Started 2026-05-11T03:11:03Z Feature session start
Finished 2026-05-11T03:11:58Z Feature validation completed
Duration 55 seconds Estimated
Tool search count 2 idx searches executed
Tool navigation count 2 Files opened after search hits
Context input tokens 408 Estimated from transcript
Context output tokens 282 Estimated from transcript
Context total tokens 690 Estimated from transcript
Token metrics source estimated No telemetry export available
Tests passed 7/7 Build suite + list command test
Bcrypt validated N/A Not applicable to feature
Result PASS
Notes Added list command and regression test to cover full-field output before the security fix.  

Feature Search Breakdown:

  1. Search: idx search "runCreate" --path "*main.go" --ext go --size 2 --agent-compact
    • Purpose: locate create command implementation
    • Navigation: opened main.go for surrounding context in the live session
  2. Search: idx search "TestAddStudent" --path "*main_test.go" --ext go --size 2 --agent-compact
    • Purpose: inspect the test suite structure before adding list coverage
    • Navigation: opened main_test.go for surrounding context in the live session

Bugfix Phase

Metric Value Notes
Started 2026-05-11T03:11:58Z Bugfix session start
Finished 2026-05-11T03:12:52Z Bugfix validation completed
Duration 54 seconds Estimated
Tool search count 3 idx searches executed
Tool navigation count 3 Files opened after search hits
Context input tokens 448 Estimated from transcript
Context output tokens 312 Estimated from transcript
Context total tokens 760 Estimated from transcript
Token metrics source estimated No telemetry export available
Tests passed 8/8 Feature suite + bcrypt validation
Bcrypt validated Yes Stored hash verified and plaintext rejected
Result PASS
Notes Added bcrypt password hashing on create and removed plaintext password from list output.  

Bugfix Search Breakdown:

  1. Search: idx search "Password" --path "*main.go" --ext go --size 2 --agent-compact
    • Purpose: locate every password access site
    • Navigation: opened main.go around the list output and validation code in the live session
  2. Search: idx search "bcrypt" --path "*main.go" --ext go --size 2 --agent-compact
    • Purpose: confirm bcrypt was not already present
    • Navigation: no existing bcrypt implementation found
  3. Search: idx search "TestListCommand" --path "*main_test.go" --ext go --size 2 --agent-compact
    • Purpose: adjust the list-command regression test for the security fix
    • Navigation: opened main_test.go to update expectations

Aggregate Metrics

Duration Summary

Phase Duration (seconds) Cumulative
Build 48 48
Feature 55 103
Bugfix 54 157
Total - 157 seconds

Tool Interaction Summary

Category Count Notes
Total idx searches 5 2 feature, 3 bugfix
Total navigations 5 2 feature, 3 bugfix
Average searches per phase 1.67 (5 total / 3 phases)
Search-to-phase ratio 56% (5 searches / 9 potential search opportunities)

Context Token Summary

Stage Input Output Total
Pre-build 54 36 90
Build 438 312 750
Feature 408 282 690
Bugfix 448 312 760
Workflow Total 1,348 942 2,290
Implementation Total 1,294 906 2,200

Token metrics source: estimated

Methodology notes:


Test Coverage

Build Phase Tests (6 tests)

  1. ✓ TestAddStudent
  2. ✓ TestAddStudentDuplicateLogin
  3. ✓ TestAddStudentMissingRequired
  4. ✓ TestLoadAndSave
  5. ✓ TestGetStudents
  6. ✓ TestCreateCommand

Feature Phase Tests (7 tests)

Bugfix Phase Tests (8 tests)

Overall test pass rate: 100% (21/21 tests across all phases)


Token Breakdown By Session Stage

tool pre_build_total_tokens build_total_tokens feature_total_tokens bugfix_total_tokens workflow_total_tokens implementation_total_tokens
idx 90 750 690 760 2,290 2,200

Key Observations

Search Efficiency

Security Outcome

Workflow Notes


Implementation Quality

Code Metrics

Behavioral Correctness

Summary

This idx-only run completed the requested student registration workflow with all tests passing and the password exposure bug fixed. The result is suitable as a standalone benchmark record for idx, with the caveat that timing and token counters are estimated from transcript activity rather than measured telemetry.