Benchmarks
Measured on an Apple M3 Max unless stated. The commands and raw tables are in docs/BENCHMARKS.md.
Read this first: speed against accuracy
The fused kernel is faster than RDKit on 14 threads only at 200 iterations, where 32% of conformers reach RDKit’s energy. Cost grows linearly with iterations, so at matched accuracy Metal is ~6× behind RDKit-14T and level with RDKit on one thread.
MMFF on Metal against RDKit, at matched accuracy
50 molecules × 50 conformers = 2,500 conformers, 9–49 atoms, quiet machine, a fresh Chem.Mol per method. ΔE in kcal/mol against RDKit.
| Method | Total | ms/conf | vs RDKit 14T | Mean |ΔE| | Within 0.1 |
|---|---|---|---|---|---|
| RDKit, 1 thread | 3.98 s | 1.59 | 0.13× | — | — |
| RDKit, 14 threads | 0.50 s | 0.20 | 1.00× | 0.000 | — |
| Fused, 200 iterations | 0.41 s | 0.16 | 1.22× | 1.742 | 800 |
| Fused, 500 iterations | 0.84 s | 0.34 | 0.59× | 0.520 | 1,431 |
| Fused, 1,000 iterations | 1.59 s | 0.64 | 0.31× | 0.203 | 2,019 |
| Fused, 2,000 iterations | 3.10 s | 1.24 | 0.16× | 0.073 | 2,326 |
| Multi, 1,000 iterations | 3.39 s | 1.36 | 0.15× | 0.015 | 2,470 |
| Multi, 2,000 iterations | 3.69 s | 1.48 | 0.13× | 0.015 | 2,470 |
Three ways to measure this wrong
mmff_optimize_batch(mol, conf_ids)batches the conformers of one molecule: ~10 wide, so it measures kernel dispatch, not throughput. Use the multi-molecule entry points.MMFFOptimizeMoleculeConfsoptimises in place. Reusing a molecule across methods re-converges a minimum; take a freshChem.Mol(m)per method.- Benchmark on a quiet machine. A loaded one flatters the GPU against a 14-thread CPU baseline.
Throughput
Conformer generation at scale
N molecules × k conformers per molecule, every stage on Metal, no RDKit post-processing.
| Scale | Pipeline | Time | Conformers/s | Converged |
|---|---|---|---|---|
| N = 1,000, k = 10 | DG + ETK | 5.0 s | 2,017 | 99.7% |
| N = 1,000, k = 10 | DG + ETK + MMFF | 8.0 s | 1,250 | 99.7% |
| N = 10,000, k = 1 | DG + ETK | 17.7 s | 565 | 99.6% |
| N = 10,000, k = 1 | DG + ETK + MMFF | 37.9 s | 264 | 99.6% |
| N = 10,000, k = 10 | DG + ETK | 38.1 s | 2,625 | 99.7% |
| N = 10,000, k = 10 | DG + ETK + MMFF | 67.9 s | 1,473 | 99.7% |
Batch size
20 molecules × 50 conformers. Fewer, larger batches mean fewer kernel launches; the default picks the largest batch that fits.
| Batch | Batches | Time | Conformers/s |
|---|---|---|---|
| 100 | 10 | 0.62 s | 1,610 |
| 500 | 2 | 0.29 s | 3,394 |
| 1,000+ | 1 | 0.22 s | 4,442 |
Clustering
Butina clustering
Enamine REAL subset, Morgan fingerprints, Tanimoto cutoff 0.4. Above 100,000 molecules the neighbour search runs blockwise in bounded memory.
| Molecules | Similarity → CSR | Butina | Total | vs RDKit | Memory |
|---|---|---|---|---|---|
| 20,000 | 0.26 s | 0.09 s | 0.35 s | 152× | 0.1 MB |
| 50,000 | 1.26 s | 0.36 s | 1.62 s | — | 0.5 MB |
| 100,000 | 4.87 s | 0.97 s | 5.84 s | — | 1.3 MB |
Quality against RDKit
Conformer quality, rescored by RDKit’s MMFF94
k = 20, ETKDGv2. RMSD and ΔE (kcal/mol) to the closest RDKit conformer, before and after MMFF optimisation.
| Molecule | Atoms | RMSD before MMFF | RMSD after MMFF | ΔE |
|---|---|---|---|---|
| Benzene | 12 | 0.12 Å | 0.00 Å | 0.0 |
| Aspirin | 21 | 0.98 Å | 0.00 Å | 0.0 |
| Ibuprofen | 33 | 1.79 Å | 0.96 Å | 0.6 |
| Acetaminophen | 20 | 0.99 Å | 0.00 Å | 0.0 |
Bond lengths and angles match RDKit within 0.03 Å; after MMFF the energy gap is under 1 kcal/mol.
Memory
GPU memory per conformer
BFGS keeps a dense (3n)² Hessian, so it grows as O(n²); the pipeline switches to L-BFGS above ~150 atoms.
| Atoms | DG (4D) | ETK (3D) | MMFF, BFGS | MMFF, L-BFGS |
|---|---|---|---|---|
| 5 | 1.9 KB | 1.4 KB | 1.3 KB | 1.4 KB |
| 12 | 4.4 KB | 3.3 KB | 6.0 KB | 3.3 KB |
| 21 | 7.6 KB | 5.7 KB | 17.2 KB | 5.7 KB |
| 30 | 10.8 KB | 8.1 KB | 34.1 KB | 8.1 KB |
| 50 | 18.0 KB | 13.5 KB | 92.0 KB | 13.5 KB |
| 64 | 23.1 KB | 17.3 KB | 149.2 KB | 17.3 KB |
GPU memory stays constant as the number of conformers grows: 2.6 MB for 10,000 conformers at batch 500, because batches are processed one after the other.