enescingoz/humaneval-apple-silicon
Mac Coding Bench Results v1 — Speed + Code Quality Benchmarks on Apple Silicon Speed and code quality benchmarks for quantized LLMs running locally on Apple Silicon Macs. The dataset pairs inference speed measurements (tokens/sec) with HumanEval+ functional correctness scores for 21 models, across three hardware configurations (M1, M2 Max, M5) totaling 123 benchmark results. Key Highlights Qwen 3.6 35B-A3B achieves 89.6% HumanEval+ pass@1 at 16.7 tok/s — best… See the full description on the dataset page: https://huggingface.co/datasets/enescingoz/humaneval-apple-silicon.
Mac Coding Bench Results v1 — Speed + Code Quality Benchmarks on Apple Silicon
Speed and code quality benchmarks for quantized LLMs running locally on Apple Silicon Macs. The dataset pairs inference speed measurements (tokens/sec) with HumanEval+ functional correctness scores for 21 models, across three hardware configurations (M1, M2 Max, M5) totaling 123 benchmark results.
Key Highlights
- Qwen 3.6 35B-A3B achieves 89.6% HumanEval+ pass@1 at 16.7 tok/s — best quality score in the dataset, and fast thanks to MoE architecture
- Qwen 2.5 Coder 7B hits 84.2% at 11.3 tok/s — best quality-to-speed ratio for a dense model
- Phi 4 Mini 3.8B reaches 70.7% at 19.6 tok/s — strong for its size
- Gemma 4 family scores 9-31% on HumanEval+, significantly underperforming Gemma 3 (34-79%)
- 21 models evaluated for code quality, 123 total speed benchmark results across 3 chips
- All models quantized to Q4KM (GGUF) or 4-bit (MLX)
Dataset Description
Each row represents one model benchmarked on one hardware configuration. Speed metrics come from llama-bench (GGUF) or mlx_lm.benchmark (MLX). Code quality metrics come from EvalPlus HumanEval+ evaluation (164 problems). Quality scores are available for 21 models on the M5 configuration; the remaining 102 rows have speed-only data across M1, M2 Max, and M5.
Data Fields
Hardware Configurations
Code quality evaluations (HumanEval+) were run on the M5 configuration only.
Benchmark Methodology
Speed benchmarks:
- GGUF models:
llama-benchwith flash attention enabled, all layers offloaded to GPU (-ngl 99) - MLX models:
mlx_lm.benchmark - Prompt processing measured at 128, 256, and 512 input tokens
- Text generation measured at 128 and 256 output tokens
Code quality benchmarks:
- Framework: EvalPlus HumanEval+
- 164 problems with 80x test coverage over the original HumanEval test suite
- Greedy decoding (temperature=0)
- Reasoning models evaluated with
--no-thinkflag - Quantization: Q4KM (GGUF), 4-bit (MLX)
Models with Code Quality Scores
All results on Apple M5, 32 GB, Q4KM quantization.
Limitations
- Single quantization level: All GGUF models use Q4KM; only one MLX model included. Results may differ at other quantization levels.
- Limited hardware configs: Three Apple Silicon chips (M1 16GB, M2 Max 32GB, M5 32GB). No M3/M4 Pro/Ultra data.
- Greedy decoding only: All code quality evaluations use temperature=0. Sampling-based pass@k scores would differ.
- Reasoning models: Models like DeepSeek R1 Distill were tested with
--no-think, which disables their chain-of-thought reasoning and may understate their capability. - Quality scores on M5 only: HumanEval+ evaluations were run on a single hardware config. Scores should be hardware-independent, but inference artifacts from quantization on different memory configurations could vary.
- Gemma 4 scores: The Gemma 4 models score unusually low. This may reflect early quantization issues, prompt template incompatibilities, or model behavior at Q4KM precision.
Links
- GitHub: enescingoz/mac-llm-bench
- HF Collection: enescingoz/humaneval-apple-silicon
Citation
@dataset{mac_coding_bench_v1,
title = {Mac Coding Bench Results v1},
author = {Enes Cingoz},
year = {2026},
url = {https://huggingface.co/datasets/enescingoz/humaneval-apple-silicon},
note = {Speed and code quality benchmarks for quantized LLMs on Apple Silicon}
}License
MIT
