docs / benchmarks / ml
Benchmarks index
aot
codec
codec / csv
codec / json
collection
- Overview
- ArrayList
- BPlusTree
- Cache
- Collectors
- HashMap
- HashSet
- Heap
- ImmutableList
- ImmutableMap
- ImmutableSet
- LinkedList
- RedBlackTree
- Sort
collection / ltm
concurrent
gfx
hash
http
io
io / file
io / net
io / net / uri
lang
- Overview
- Allocation and ownership
- Calls and dispatch
- Exceptions
- Guid
- Loops
- Math and SIMD
- Optional
- Pair
- Slice
- String
- StringBuilder
- Whole programs: the Benchmarks Game
lang / stream
llm
math
math / fft
math / linalg
math / npio
math / poly
math / random
math / stats
ml
nucleo
primavera
process
reflect
search
search / distance
search / fuzzy
search / ngram
time
toolchain
toolchain / kernel-startup
wire
xpu
xpu / mesh
Neural models
dev.cajeta.ml — the torch role over Tensor<float32>: a training step and inference for an MLP, a small CNN and a transformer block at batch 64, on the CPU and on the device, plus the autodiff overhead and checkpoint load.
Benchmarks
| id | workload | against | check |
|---|---|---|---|
ml/mlp-train-step | 784-512-10 MLP, one step; variants cpu, device | PyTorch (CPU, CUDA/ROCm) | loss decreases over 100 steps |
ml/mlp-infer | inference at batch 64 | PyTorch | logits within epsilon |
ml/cnn-train-step | two-conv CNN on 28×28, one step | PyTorch | loss decreases |
ml/cnn-infer | inference at batch 64 | PyTorch | within epsilon |
ml/transformer-block-train | one encoder block, d = 512, seq 128, one step | PyTorch | loss decreases |
ml/transformer-block-infer | inference | PyTorch | within epsilon |
ml/autodiff-overhead | backward over forward ratio for the MLP | PyTorch autograd | gradients within epsilon |
ml/checkpoint-load | load a torch checkpoint of the MLP, 1e2 times | torch.load | weights equal |
Results
One chart per benchmark, for the machine selected at the top of the page. Languages are the bars, best first; Cajeta’s bar is in color and the competitors’ are gray. A skipped competitor keeps its row with the reason in place of a bar. A benchmark with no row on the selected machine says so and shows nothing else.
Not yet measured on Proton.
Not yet measured on Proton.
Not yet measured on Proton.
Not yet measured on Proton.
Not yet measured on Proton.
Not yet measured on Proton.
Not yet measured on Proton.
Not yet measured on Proton.
Reproduce
cd bench
./bench.sh --bench mlp-train-step # Cajeta
./bench.sh --bench mlp-train-step --competitors # every pinned competitor
Every row records the compiler and competitor versions, flags, machine, OS and driver; METHODOLOGY states the rules a number must satisfy before it is published.
See also
- Benchmark source:
cajeta-ml/bench/ and cajeta-xgboost/bench/ - Library:
cajeta-ml