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-Hard-Consistent-Hash
blxbench

Test fixture

Coding-Hard-Consistent-Hash

Codingv2 — Resiliencehardscorer: 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 consistentHash(nodes, key, virtualNodes). Distribute keys across nodes using a consistent hash ring of size 360. Place virtualNodes virtual points per node using: position = charCodeSum(nodeName) * (virtualIndex + 1) % 360, where charCodeSum sums all char codes of the string. Hash the key using keyPos = charCodeSum(key) % 360. Walk the ring clockwise to find the nearest virtual point at or after keyPos; wrap around to the lowest-position point if needed. When multiple virtual points share the same position, pick the one belonging to the lexicographically smallest node name. Return the node name.

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

temperature

0

max_tokens

2000

timeout (s)

120

type

scored

file

coding-hard-consistent-hash.json

← PreviousCoding-Hard-Bloom-Filter
|
Next →Coding-Hard-Diff-Objects

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