The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
What does batch mode buy, and at
which batch size? This directory measures it end to end: the same
row-wise transformation written in R, Python, Node.js, DuckDB SQL and
Starlark, run by the real openflange binary
without batch mode (one record per call),
with batches as array lines (delivery: lines) of at most 1, 10, 100,
1,000 and 10,000 records,
with batches as files (delivery: file) of at most 100, 1,000 and
10,000 records — and 100,000 for DuckDB, which is started once per file,
plus one scenario that is the reason batch mode exists: a pipe whose every
call costs 5 ms, however many records the call carries.
Machine-readable results: results.json. The charts
(charts/) and the tables below are generated from it.
Command batch measures what batch mode buys, end to end: the same row-wise
transformation written in R, Python, Node.js, DuckDB SQL and Starlark, run
by the real `openflange` binary with no batch mode and with batches of 1 to
100,000 records, as array lines and as batch files — plus a pipe whose
every call costs 5 ms.
benchmarks/batch/run.sh # measure everything, write results.json, charts and the README table
go run ./benchmarks/batch -render # only redraw charts and table from results.json
go run ./benchmarks/batch -only 'r/|slow' # measure some cells (results go to a scratch file unless -out is given)
The runner is safe to start on a shared machine: by default it confines
itself and everything it starts to two CPUs at the lowest CPU and I/O
priority, keeps its files out of /tmp, stops a run that exceeds a memory
or time limit, and waits for the machine to be quiet (limits.go). On a
machine of your own, -dedicated lifts that.
Every run's output is hashed and compared with a reference implementation
before its time is accepted. See README.md in this directory.