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
Classical models
dev.cajeta.ml — the scikit-learn role over Tensor<float64>: fit and predict for the estimators a data scientist reaches for first, on synthetic data at 1e5 × 100 and on the sklearn digits and California housing sets. Each row’s metric is checked against scikit-learn’s on the same data within a recorded tolerance.
Benchmarks
| id | workload | against | check |
|---|---|---|---|
ml/linear-regression | fit and predict; variants synthetic, housing | scikit-learn | R² within tolerance |
ml/logistic-regression | fit and predict; variants synthetic, digits | scikit-learn | accuracy within tolerance |
ml/kmeans | k = 10 to convergence; variants | scikit-learn | inertia within tolerance |
ml/knn | k = 5 predict over 1e4 queries | scikit-learn | accuracy within tolerance |
ml/pca | 20 components | scikit-learn | explained variance within tolerance |
ml/standard-scaler | fit and transform 1e5 × 100 | scikit-learn | within epsilon |
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.
Reproduce
cd bench
./bench.sh --bench linear-regression # Cajeta
./bench.sh --bench linear-regression --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-llm/bench/ - Library:
cajeta-ml, benchmark code incajeta-ml/bench/