DomainCodeBench: leaderboard

20 Python code-generation tasks, five each in healthcare (FHIR/HIPAA), finance (Black-Scholes, VaR), molecular simulation and legal documents; composite score with correctness weighted 40% (2026).

Metric: Composite Score (%). Source: huggingface.co. Saturation forecast: Estimated already saturated. 4 models tracked. Updated 27 Jun 2026.

Top models

#ModelScoreOverall rank
1Qwen 2.5 Coder 7B89.77#5841
2starcoder2-15B88.96#8508
3Qwen 2.5 Coder 3B87.46#7779
4CodeLlama-7B73.84#9239

No result here: #2 Claude Fable 5.2, #5 GPT-6.2 Astra, #6 Gemini 4 Neon.

Example tasks

Write a Python function `black_scholes(S, K, T, r, sigma, option_type='call')` that calculates the Black-Scholes option price. Parameters:
- S: current stock price
- K: strike price
- T: time to expiration in years
- r: risk-free interest rate (annual)
- sigma: volatility (annual)
- option_type: 'call' or 'put'
Return a dictionary with: 'price' (float), 'delta' (float), 'd1' (float), 'd2'…

Source

Write a Python function `calculate_bmi(weight_kg, height_m)` that calculates Body Mass Index and returns a dictionary with keys 'bmi' (float rounded to 1 decimal), 'category' (string), and 'risk_level' (string). Categories: Underweight (<18.5), Normal (18.5-24.9), Overweight (25-29.9), Obese Class I (30-34.9), Obese Class II (35-39.9), Obese Class III (>=40). Risk levels: Low (Normal), Moderate…

Source

Interactive version: theaggregate.ai/benchmark?slug=domaincodebench · How It Works · Data refreshed daily, snapshot 2026-12-04.