Thanks to everyone who has tested so far. Here’s where things stand.
Steady-state export time per image (median of exports 2-5), Slang vs OpenCL on the same machine. Lower ratio is better for Slang.
mire1.cr2 (10 MP), the standard benchmark
| GPU | OS | Slang | OpenCL | Slang / OpenCL |
|---|---|---|---|---|
| Apple M4 Max | macOS | 86 ms | 175 ms | 0.49 |
| Apple M5 Pro | macOS | 124 ms | 205 ms | 0.60 |
| AMD Radeon Pro 5700 XT (iMac) | macOS | 145 ms | 199 ms | 0.73 |
| AMD Radeon Pro 5500M (MacBook Pro) | macOS | 298 ms | 367 ms | 0.81 |
| AMD Radeon Pro 5300 (iMac) | macOS | 341 ms | 407 ms | 0.84 |
| NVIDIA RTX 3060 Ti | Linux | 133 ms | 220 ms | 0.60 |
| NVIDIA RTX 4060 Laptop | Linux | 156 ms | 255 ms | 0.61 |
| NVIDIA RTX 3050 Ti Laptop | Linux | 235 ms | 324 ms | 0.72 |
| Intel Iris Xe (i7-1165G7) | Linux | 562 ms | 1111 ms | 0.51 |
| Intel Iris Xe (i7-1365U) | Windows | 913 ms | 1833 ms | 0.50 |
| Intel UHD 620 | Linux | 1597 ms | 2223 ms | 0.72 |
61 MP Sony raw (larger image, so the denoise module runs in tiles)
| GPU | OS | Slang | OpenCL (ROCm) | Slang / OpenCL |
|---|---|---|---|---|
| AMD Radeon RX 9060 XT | Linux | 0.91 s | 1.37 s | 0.67 |
| AMD Radeon 780M (integrated) | Linux | 3.74 s | 5.03 s | 0.74 |
Slang is faster than OpenCL on every machine tested so far, and its output matches OpenCL within the usual tolerance (max dE about 1.2-1.5, average below 0.001). The Radeon 780M started at 1.8x slower than OpenCL; @da-phil’s patches and logs got it to where it is now.
Still being worked on
- On integrated AMD GPUs, up to about 1.5 s of each 61 MP export went on re-allocating GPU memory. A fix is in the latest nightly; a rerun on a Radeon 780M will show how much it saves. @da-phil
- On Intel Macs, the first export after installing takes about 30 s while the GPU kernels are prepared; later launches are fast. A fix that cuts this to about 3 s is being tested.
Want to test? The nightly builds (Linux AppImage, Windows, Apple silicon macOS) are at Release Darktable nightly build 20261108 · nicknezis/darktable · GitHub. The benchmark instructions are in tools/slang-bench/README.md on the slang-benchmark branch. Please post your summary.md, and mention your driver version. Machines not covered yet would be especially useful: AMD discrete cards on Windows, Intel Arc, and older NVIDIA cards.