Autoresearch: speed up analyze() (top-10 word frequencies + checksum)
# Autoresearch: speed up analyze() (top-10 word frequencies + checksum)
## Objective
Minimize wall-time of analyze() in solution.js over a fixed 40k-word input.
## Metrics
- Primary: ms (lower better) — median of 7 timed runs from bench.js
- Guardrail: test.js must pass (independent reference oracle); a keep is blocked on failure.
## How to run
`./.auto/measure.sh` → METRIC ms=<median>. `./.auto/checks.sh` → correctness.
## Files in scope
- solution.js — the only file to optimize.
## Off limits
- bench.js, test.js, gen.js (changing the harness/oracle would game the metric).
## What's been tried
(updated as we go)when to use it
Community prompt sourced from the open-source GitHub repo jdrhyne/agent-skills (MIT). A "Autoresearch: speed up analyze() (top-10 word frequencies + checksum)" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
roleplaycommunitygeneral
source
jdrhyne/agent-skills · MIT