BLXBenchBLXBench UI
blxbench

Benchmark

Misc

DocsOur TestsPassSponsor / Partnership
DocsOur TestsPassSponsor / Partnership
BLXBenchBLXBench UI
blxbench

Benchmark

Suite

Misc

DocsOur TestsPassSponsor / Partnership
DocsOur TestsPassSponsor / Partnership
  1. Home
  2. Our Tests
  3. Coding-Medium-Memoize
blxbench

Test fixture

Coding-Medium-Memoize

Codingv2 — Resiliencemediumscorer: javascript_function_tests

Implementation-focused coding tasks with structured correctness checks.

How it is scored

The model receives the prompt (and optional system message). The run uses scorer javascript_function_tests with the JSON configuration below. Pass/fail and partial credit are determined entirely by that scorer against the model output; no human grading.

User prompt
Return JSON only with a string field named code. The code must be dependency-free JavaScript, define the requested function in the top level or module.exports, and include no markdown, imports, require, timers, network, filesystem, eval, or placeholders.

Implement function memoizeScript(script). The script is a comma-separated string where each token is 'call:N' meaning call an internal function with number argument N. The internal function returns N*N (a square). Use memoization so each unique argument is only computed once. Return an array: for each call operation, return the result. Also append the total number of actual computations performed (cache misses) as the last element.

Your JSON must look like {"code":"function memoizeScript(...) { ... }"}.
Scorer config
{
  "function_name": "memoizeScript",
  "timeout_ms": 100,
  "test_pass_threshold": 1,
  "partial_credit_threshold": 0.5,
  "tests": "[hidden executable tests]"
}
Run parameters

temperature

0

max_tokens

1200

timeout (s)

120

type

scored

file

coding-medium-memoize.json

← PreviousCoding-Medium-Lru-Cache
|
Next →Coding-Medium-Merge-Intervals

BLXBench

Community driven leaderboardPublic benchmark runner — run in your environment, share results with the community.

© 2026 BLXBench by bitslix.com

ProvenanceAggregated from user runs
Scope43 / 11 / 490
Latestrun_7730ad / 459 / $0.00
TermsPrivacy