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-Circular-Buffer
blxbench

Test fixture

Coding-Medium-Circular-Buffer

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 createCircularBuffer(capacity, script). The script is a comma-separated string of operations: 'push:VALUE' adds a value to the buffer (dropping the oldest if full), 'pop' removes and returns the oldest value (or null if empty). Return an array of results: null for each push operation, and the popped value (or null if empty) for each pop operation.

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

temperature

0

max_tokens

1400

timeout (s)

120

type

scored

file

coding-medium-circular-buffer.json

← PreviousCoding-Hard-Trie-Autocomplete
|
Next →Coding-Medium-Count-Islands

BLXBench

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

© 2026 BLXBench by bitslix.com

ProvenanceAggregated from user runs
Scope40 / 11 / 490
Latestrun_f78b01 / 459 / $18.57
TermsPrivacy