Search arXiv⌕ Search

arXiv · 2611.40969

Metewand: Reproducible Computational Benchmarks Across Languages

Abstract

Metewand is a framework and command-line tool for benchmarking computational methods across programming languages. To set up a benchmark, the researcher specifies which methods to run on which data and supplies an independent evaluator that checks the answers. Metewand then runs each method in a separate process and records how long it took, how well its answer met the evaluation criteria, and whether the run failed. It also records which data, code, and settings produced each measurement. This makes it possible to compare both speed and accuracy in problems such as numerical optimization and statistical estimation. The command-line tool runs on Linux, macOS, and Windows. The project also includes small Python and R packages that make it easier to write benchmarks in those languages. Metewand is open source under either the MIT License or the Apache License, Version 2.0. Its documentation is available at metewand.org.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Johan Larsson. 2026-11-30. Metewand: Reproducible Computational Benchmarks Across Languages. https://searcharxiv.org/abs/2611.40969

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Precision Atlas for Scientific Kernels and Its Application to Adaptive Mesh Refinement

In scientific calculations, precision of the stored quantities affects accuracy and, in adaptive methods, the spatial resolution selected by the numerical method. The objective here is to determine the precision required by individual operations and to apply these requirements to AMR. For this purpose, selected Lean-verified arithmetic results, analytical precision bounds and 6,480 evaluations of 60 scientific kernels are organized in a Precision Atlas. Controlled time integration problems are first used to distinguish the requirements for time advancement, state accumulation and output. The analysis is then extended to AMR, where a rounded sensor determines which cells are refined. The probabilities of tagging a cell and selecting a refinement block under stochastic rounding are derived. It is shown that rounding can tag a uniform field, producing a phantom gradient, when the floating-point spacing exceeds the refinement threshold. For a fixed gradient threshold, excluding these tags requires one additional significand bit for each halving of the mesh spacing. Shock--vortex (SV) and Rayleigh--Taylor (RT) calculations confirm that the extra refinement appears where this condition is violated. In finer SV case, stochastic BF16 tagging requires 2.69 times the cell updates of FP64 tagging. The Atlas bounds are used to construct a tagging criterion that excludes these extra tags. This criterion retains 20.03%, 61.67% and 99.99% of the reference tags under stochastic BF16, FP16 and FP32 sensor rounding. When the conserved state is also stored in FP16, the bound must include pressure reconstruction from conserved variables, and 94.73% of the decisions remain unresolved under stochastic rounding. The Atlas indicates when the stored quantities cannot establish the requested refinement decision and is a step toward a-priori precision selection for scientific calculations.

cs.MS↗

Faster than the West: agentic engineering of a portable fast Fourier transform

Coding agents increasingly write scientific software. We asked whether one, guided by a domain expert, can match the best hand-engineered libraries, and what the expert contributes. The fast Fourier transform is a severe test: its reference, FFTW, embodies decades of expert work. Here an agent built such a library in 60 active hours within 7 days up to its public release. One Julia package runs on ARM and x86 processors, Apple and NVIDIA graphics processors and as a C library. Measured 9 days later, it was faster than the fastest other library in 76-85% of cases on the processors and in 73% on the Apple graphics processor, and on a par with VkFFT on the NVIDIA graphics processor. The record shows the agent taking up gaps measured against competitors while the expert mostly checked its work; a few decisions on what to measure against acted as the specification.

cs.MS↗

Fast matrix multiplication: mixing fast, accurate schemes over a vendor GEMM, chosen by a calibrated planner

Fast matrix multiplication is in practice a few levels of a Strassen-like scheme over a vendor's General Matrix Multiplication (GEMM) routine. We treat each scheme as an operator that takes a problem one level down, and let every level of a plan use a different one. On Apple's M4 Pro, over Accelerate's GEMM, a calibrated planner chooses among accurate forms of the $\langle 2\times2\times2:7\rangle$, $\langle 4\times4\times4:48\rangle$ and $\langle 3\times3\times6:40\rangle$ schemes. A level runs as three fused passes over memory, so its cost is the blocks it moves, not its arithmetic. At $n=13824$ the plans run $1.71\times$ (f32) and $1.88\times$ (f64) faster than Accelerate's GEMM with 0.38 and 0.50 of its error on well-scaled inputs. At 6912 and 13824 they are 5-16% faster than the best plans built from the $\langle 4\times4\times4:48\rangle$ scheme alone, with 0.57-0.75 of their error. The planner's error model predicts a plan's error from where its levels sit (a level's own rounding is multiplied by the levels above it), and the planner uses it to choose between plans of equal speed. A conventional implementation of Strassen-Winograd (one block operation at a time), the algorithm of IBM ESSL's _GEMMS, over the same GEMM is 1.21-1.54 times slower than the plans and has 1.9-9.7 times their error; fused $2\times2$ levels, which the library also has, are level with the $4\times4$ scheme at half the depth. On badly scaled inputs the plans need exact power-of-two prescaling, at up to 4% of the time, and inputs whose magnitudes cross between blocks defeat them. In f32, sharing a level's products with the GPU brings the speedup over Accelerate to $3.1\times$.

cs.MS↗