The same input and the same kernels, in neo's C++ and in Polars 2.0.0. Across 28 measurements neo finished 2.78× faster in the middle and 77.3× at most; Polars was quicker on 1: filter, count: one run from rest.
01 · The race
One kernel at a time
Each piece of work below has its own race, what it measures, what neo is held to, how Polars does it and every number taken for it. In a race both ships run for the same stretch: Polars completes the work once, and neo completes it as many times as the measured ratio says, turning around at each end.
Read a 46 MB CSV of a million rows and six columns into a table: split the bytes into fields, parse the amount column into numbers, and dictionary-encode the region column. Each engine's typed read, best of two, with the first read of a fresh process kept separately.
What neo is held to
The same table the app loads, with the amount column typed and the region column encoded at load, so that no kernel after it touches text. Before a time is taken every engine prints its table as one number and its checks, and the line under the table says whether they agreed.
How Polars does it
Polars's read_csv, which infers a type for each column.
Polars, this kernel · neon-cpp/bench/lang/python/yardstick.py
neo's side is confidential. What it is held to is above; why it is kept is under 03.
Every number taken for it
measurement
neo
Polars
× neo
time, runs in a row, msThe typed read, best of two, with the first read of a fresh process kept separately.
2.77
15.2
5.49×
energy, runs in a row, mJMillijoules a run, in the same run as the time: the energy over the timed runs and as many more as fill 200 ms, divided by the runs, less the draw at rest. A mean, where the time is a best.
Count the rows whose amount is over 500: a million comparisons on a typed column, the answer one integer. Each library's count is written the way its users write it.
What neo is held to
The count every other engine prints, under the JavaScript node's rule that NaN never matches. What comes out is a selection the next kernel reads from, not a copy of the rows.
How Polars does it
Written as a lazy query: filter, select the length, collect. Polars plans the count as one query.
Polars, this kernel · neon-cpp/bench/lang/python/yardstick.py
neo's side is confidential. What it is held to is above; why it is kept is under 03.
Every number taken for it
measurement
neo
Polars
× neo
time, runs in a row, msBest of three, runs in a row: every thread awake and the cores at speed.
0.018
0.179
9.94×
energy, runs in a row, mJMillijoules a run, in the same run as the time: the energy over the timed runs and as many more as fill 200 ms, divided by the runs, less the draw at rest. A mean, where the time is a best.
1.08
2.07
1.92×
time, one run from rest, msThe call made once after 50 ms of nothing, mean of ten: what a click finds.
0.782
1.43
1.82×
energy, one run from rest, mJThe same single call from rest, in millijoules. From rest a run costs less than in a row where the work is large, and more where it is tiny, because the threads have to be woken for it.
8.72
2.85
0.33×
Read it with this
Polars is ahead of neo on energy, one run from rest, and is shown ahead.
Keep the rows whose amount is over 500 and build a new table of them, about half the file, every column copied.
What neo is held to
The same rows every other engine keeps, every column copied, checked by the same line.
How Polars does it
An eager filter on the DataFrame, returning a new one with the matching rows.
Polars, this kernel · neon-cpp/bench/lang/python/yardstick.py
timed("filter_mat", lambda: df.filter(pred))
neo's side is confidential. What it is held to is above; why it is kept is under 03.
Every number taken for it
measurement
neo
Polars
× neo
time, runs in a row, msBest of three, runs in a row: every thread awake and the cores at speed.
0.380
0.889
2.34×
energy, runs in a row, mJMillijoules a run, in the same run as the time: the energy over the timed runs and as many more as fill 200 ms, divided by the runs, less the draw at rest. A mean, where the time is a best.
Produce the stable ascending order of the amount column as a permutation of row indices, without moving any other column. SQL engines have no such form, so DuckDB and Spark sit this one out.
What neo is held to
A stable ascending order under the JavaScript rule that NaN sorts first and ties keep their place. The first sorted values are printed and compared with every other engine's.
How Polars does it
arg_sort on the amount column: the order as row indices, with no other column moved.
Polars, this kernel · neon-cpp/bench/lang/python/yardstick.py
neo's side is confidential. What it is held to is above; why it is kept is under 03.
Every number taken for it
measurement
neo
Polars
× neo
time, runs in a row, msBest of three, runs in a row: every thread awake and the cores at speed.
1.03
6.68
6.47×
energy, runs in a row, mJMillijoules a run, in the same run as the time: the energy over the timed runs and as many more as fill 200 ms, divided by the runs, less the draw at rest. A mean, where the time is a best.
64.5
219
3.40×
time, one run from rest, msThe call made once after 50 ms of nothing, mean of ten: what a click finds.
2.73
9.59
3.52×
energy, one run from rest, mJThe same single call from rest, in millijoules. From rest a run costs less than in a row where the work is large, and more where it is tiny, because the threads have to be woken for it.
Sort by amount and build the whole sorted table, every column reordered.
What neo is held to
The whole table in that order, every column, with the same first values as every other engine.
How Polars does it
sort on amount, returning the whole DataFrame reordered.
Polars, this kernel · neon-cpp/bench/lang/python/yardstick.py
timed("sort_mat", lambda: df.sort("amount"))
neo's side is confidential. What it is held to is above; why it is kept is under 03.
Every number taken for it
measurement
neo
Polars
× neo
time, runs in a row, msBest of three, runs in a row: every thread awake and the cores at speed.
2.72
12.2
4.47×
energy, runs in a row, mJMillijoules a run, in the same run as the time: the energy over the timed runs and as many more as fill 200 ms, divided by the runs, less the draw at rest. A mean, where the time is a best.
Total the amount column for each of five regions: a grouped sum, the kernel every dashboard runs.
What neo is held to
The JavaScript loop's result to the bit. A floating-point sum depends on the order it is taken in, and neo is held to the row order's answer whatever it does to get there.
How Polars does it
group_by on region, with a sum of amount as the aggregation.
Polars, this kernel · neon-cpp/bench/lang/python/yardstick.py
neo's side is confidential. What it is held to is above; why it is kept is under 03.
Every number taken for it
measurement
neo
Polars
× neo
time, runs in a row, msBest of three, runs in a row: every thread awake and the cores at speed.
0.020
1.55
77.3×
energy, runs in a row, mJMillijoules a run, in the same run as the time: the energy over the timed runs and as many more as fill 200 ms, divided by the runs, less the draw at rest. A mean, where the time is a best.
1.55
50.9
32.8×
time, one run from rest, msThe call made once after 50 ms of nothing, mean of ten: what a click finds.
0.758
3.17
4.18×
energy, one run from rest, mJThe same single call from rest, in millijoules. From rest a run costs less than in a row where the work is large, and more where it is tiny, because the threads have to be woken for it.
9.11
30.8
3.38×
01.7 · public data · a file this project did not make
Read worldcitiespop from its path to a table in memory: 3,173,958 rows by 7 columns, 151 MB of place names, the file the CSV tools benchmark on. Every engine in a fresh process each round, the file in the OS cache, each engine's start-up done before the clock; warm is the median of the loads after the first. neo's table is text, with no types, no nulls and no UTF-8 check, so the rows as text are the like-for-like ones.
What neo is held to
The same loader the app uses, on a file this project did not make, checked column by column and row by row against DuckDB's reading of it before any time is taken.
How Polars does it
read_csv with infer_schema off, so every column is read as text. Its thread pool is started on a three-line file before the clock.
Polars reading the public files · neon-cpp/bench/lang/python/standards.py:79
def load_polars(path, mode, loads, opt=None):
import polars as pl
kw = {}
if opt and "infer" in opt: kw = {"infer_schema_length": opt["infer"]}
if opt and "overrides" in opt: kw = {"schema_overrides": {c: (pl.Float64 if t == "float" else pl.String) for c, t in opt["overrides"].items()}}
pl.read_csv(io.BytesIO(b"a,b\n1,x\n2,y\n")) # untimed: the reader's own start-up (its thread pool), on three lines that are not the file
out, rows, cols = [], 0, 0
for _ in range(loads):
t0 = time.perf_counter()
df = pl.read_csv(path, infer_schema=False) if mode == "text" else pl.read_csv(path, **kw)
out.append(ms_since(t0))
rows, cols = df.height, df.width
del df
return pl.__version__, out, rows, cols, pl.thread_pool_size()
neo's side is confidential. What it is held to is above; why it is kept is under 03.
Every number taken for it
measurement
neo
Polars
× neo
first load, as text, msThe median first load: a fresh process each round, the file in the operating system's cache, the engine's own start-up done before the clock.
23.8
47.5
2.00×
loads after the first, as text, msThe median of the loads after the first, in the same process.
11.4
39.9
3.51×
01.8 · public data · a file this project did not make
Read NYC taxi · 1M from its path to a table in memory: 1,000,000 rows by 51 columns, 425 MB of trips. Every engine in a fresh process each round, the file in the OS cache, each engine's start-up done before the clock; warm is the median of the loads after the first. neo's table is text, with no types, no nulls and no UTF-8 check, so the rows as text are the like-for-like ones.
What neo is held to
The same loader the app uses, on a file this project did not make, checked column by column and row by row against DuckDB's reading of it before any time is taken.
How Polars does it
read_csv with infer_schema off, so every column is read as text. Its thread pool is started on a three-line file before the clock. The reader is the one shown under the first public file.
neo's side is confidential. What it is held to is above; why it is kept is under 03.
Every number taken for it
measurement
neo
Polars
× neo
first load, as text, msThe median first load: a fresh process each round, the file in the operating system's cache, the engine's own start-up done before the clock.
72.9
142
1.95×
loads after the first, as text, msThe median of the loads after the first, in the same process.
52.9
95.3
1.80×
01.9 · public data · a file this project did not make
Read NYC taxi · 10M from its path to a table in memory: 10,000,000 rows by 51 columns, 4.3 GB of trips. Every engine in a fresh process each round, the file in the OS cache, each engine's start-up done before the clock; warm is the median of the loads after the first. neo's table is text, with no types, no nulls and no UTF-8 check, so the rows as text are the like-for-like ones.
What neo is held to
The same loader the app uses, on a file this project did not make, checked column by column and row by row against DuckDB's reading of it before any time is taken.
How Polars does it
read_csv with infer_schema off, so every column is read as text. Its thread pool is started on a three-line file before the clock. The reader is the one shown under the first public file.
neo's side is confidential. What it is held to is above; why it is kept is under 03.
Every number taken for it
measurement
neo
Polars
× neo
first load, as text, msThe median first load: a fresh process each round, the file in the operating system's cache, the engine's own start-up done before the clock.
448
1,245
2.78×
loads after the first, as text, msThe median of the loads after the first, in the same process.
418
1,098
2.63×
01.10 · public data · a file this project did not make
Read ClickBench · 1M from its path to a table in memory: 1,000,000 rows by 105 columns, 842 MB of web hits. Every engine in a fresh process each round, the file in the OS cache, each engine's start-up done before the clock; warm is the median of the loads after the first. neo's table is text, with no types, no nulls and no UTF-8 check, so the rows as text are the like-for-like ones.
What neo is held to
The same loader the app uses, on a file this project did not make, checked column by column and row by row against DuckDB's reading of it before any time is taken.
How Polars does it
read_csv with infer_schema off, so every column is read as text. Its thread pool is started on a three-line file before the clock. The reader is the one shown under the first public file.
neo's side is confidential. What it is held to is above; why it is kept is under 03.
Every number taken for it
measurement
neo
Polars
× neo
first load, as text, msThe median first load: a fresh process each round, the file in the operating system's cache, the engine's own start-up done before the clock.
126
274
2.17×
loads after the first, as text, msThe median of the loads after the first, in the same process.
96.0
189
1.97×
01.11 · public data · a file this project did not make
Read ClickBench · 10M from its path to a table in memory: 10,000,000 rows by 105 columns, 8.1 GB of web hits. Every engine in a fresh process each round, the file in the OS cache, each engine's start-up done before the clock; warm is the median of the loads after the first. neo's table is text, with no types, no nulls and no UTF-8 check, so the rows as text are the like-for-like ones.
What neo is held to
The same loader the app uses, on a file this project did not make, checked column by column and row by row against DuckDB's reading of it before any time is taken.
How Polars does it
read_csv with infer_schema off, so every column is read as text. Its thread pool is started on a three-line file before the clock. The reader is the one shown under the first public file.
neo's side is confidential. What it is held to is above; why it is kept is under 03.
Every number taken for it
measurement
neo
Polars
× neo
first load, as text, msThe median first load: a fresh process each round, the file in the operating system's cache, the engine's own start-up done before the clock.
1,053
2,814
2.67×
loads after the first, as text, msThe median of the loads after the first, in the same process.
1,056
2,696
2.55×
02 · Every number
Against the libraries people reach for first
1,000,000 rows · ms, lower is better · 2026-10-11 21:23
kernel
neo
Polars
× neo
load the CSV (parse + type)
2.77
15.2
5.49×
filter amount > 500, count
0.018
0.179
9.94×
filter into a new table
0.380
0.889
2.34×
sort, as a permutation
1.03
6.68
6.47×
sort into a new table
2.72
12.2
4.47×
sum(amount) by region
0.020
1.55
77.3×
filter, count: one run from rest
0.782
1.43
1.82×
sort, permutation: one run from rest
2.73
9.59
3.52×
sum by region: one run from rest
0.758
3.17
4.18×
The same CSV and the same six kernels in neo's engine and in the libraries people reach for first, each written the way its users write it (Polars 2.0.0, DuckDB 1.5.6, pandas 3.0.6, Spark 4.2.0). Milliseconds, best of three; the chip is how many times neo's time a library took. The last three rows are one run from rest: the call made once after 50 ms of nothing, mean of ten, neo's pool told to rest after it as the editor tells it. That is what a click finds; the rows above are runs in a row, every thread awake and the cores at speed.
The same run, in energy
1,000,000 rows · mJ, lower is better · 2026-10-11 21:23
kernel
neo
Polars
× neo
load the CSV (parse + type)
172
494
2.87×
filter amount > 500, count
1.08
2.07
1.92×
filter into a new table
21.6
22.0
1.02×
sort, as a permutation
64.5
219
3.40×
sort into a new table
144
317
2.20×
sum(amount) by region
1.55
50.9
32.8×
filter, count: one run from rest
8.72
2.85
0.33×
sort, permutation: one run from rest
44.8
163
3.63×
sum by region: one run from rest
9.11
30.8
3.38×
The same CSV and the same six kernels as the times, in the same run (Polars 2.0.0, DuckDB 1.5.6, pandas 3.0.6, Spark 4.2.0). Millijoules a run. What macOS billed each engine's process, and for Spark its JVM, for the processor cores it ran on: not the memory, the disk or the screen, and not the machine at rest. A kernel's figure is the energy over its timed runs, and as many more as fill 200 ms, divided by the runs, less what the process draws at rest for as long: a mean, where the time is a best. neo's is of the variant whose time is the number on the Speed side. Each benchmark reads the counter itself; scripts/bench_libraries.sh also reads it from outside the process (neon_energy) and RESULTS.md has both totals. The chip is how many times neo's energy a library used. The last three rows are one run from rest: the call made once after 50 ms of nothing, mean of ten, neo's pool told to rest after it as the editor tells it. That is what a click finds; the rows above are runs in a row, every thread awake and the cores at speed. From rest a run costs less energy than in a row where the work is large (the cores are not at their top voltage) and more where it is tiny (the threads have to be woken for it).
Public data, from a path to a table
loads after the first, as text · ms, lower is better · 2026-10-11 16:43
kernel
neo
Polars
× neo
worldcitiespop · first load, as text
23.8
47.5
2.00×
worldcitiespop · loads after the first, as text
11.4
39.9
3.51×
NYC taxi · 1M · first load, as text
72.9
142
1.95×
NYC taxi · 1M · loads after the first, as text
52.9
95.3
1.80×
NYC taxi · 10M · first load, as text
448
1,245
2.78×
NYC taxi · 10M · loads after the first, as text
418
1,098
2.63×
ClickBench · 1M · first load, as text
126
274
2.17×
ClickBench · 1M · loads after the first, as text
96.0
189
1.97×
ClickBench · 10M · first load, as text
1,053
2,814
2.67×
ClickBench · 10M · loads after the first, as text
1,056
2,696
2.55×
Public CSVs, not ours, from a path to a table in memory, in neo and in engines this project did not write (Arrow 25.0.1, Polars 2.0.0, DuckDB 1.5.6, pandas 3.0.6). Milliseconds. worldcitiespop.csv is the file as xsv, qsv, xan and zsv benchmark it; the taxi and ClickBench files are the first records of the files those benchmarks publish, byte for byte, under a header line made from the benchmark's own schema (scripts/fetch_standards.sh; every source and SHA-256 is in bench/results/standards/manifest.jsonl). Every engine runs in a fresh process each round, in an order shuffled each round: the first row is the median first load, the second the median of the loads after it. The file is in the operating system's cache throughout, and each engine's own start-up is done before its first load, so these are the readers and nothing else. neo goes through the loader the app uses. Its table is text and only text: no types, no nulls (an empty field is an empty string), no check that the bytes are UTF-8, every field trimmed and a line end inside quotes made \n, as the app it replaces did; the others asked for text check UTF-8 and keep nulls. So the first two rows are the like-for-like ones; in the last two the others also infer types, which neo's loader does not do, and neo's numbers there are its text load again. Before any time is taken neo's table is compared with DuckDB's reading of the file, and each card says what came of it. pandas is run with its pyarrow engine. Threads are each engine's default: 18 here for the others; neo 16, and 18 from 256 MB of input, counts that were chosen on this machine. A dash is an engine that did not read the file.
03 · Both sides
Polars's side, in full
Polars is a DataFrame library written in Rust with a Python front end, built on Apache Arrow memory with a lazy query engine that uses every core. Its kernels are written the way its users write them. Each kernel's lines are beside its race above; this is the whole block they come from, with the checks it prints.
polars, as its users write it: the six kernels · neon-cpp/bench/lang/python/yardstick.py:218
neo's kernels, the ports written in-house to beat them, and the techniques behind both stay with the engine. Nothing about how the numbers were made is withheld: the method, the checks every engine had to pass, every number and every place neo is behind are on this page. The engine itself we keep confidential, because we don't want it getting into the wrong hands. The binaries run on request and reproduce every number here.
04 · Diligence
What both sides were held to
Same input, same answer. Every engine reads the same file and prints the same checks line: the filter count, the first sorted values, the group sums. A number enters the ledger only when the checks agree with the C++.
Timed the same way. A kernel is the best of three in one process; a load is the engine's typed read, best of two, with the first read of a fresh process kept separately. Engines that need a warm-up get it before the clock.
Energy is what the machine billed. Millijoules a run, read from the hardware counters for each engine's whole process tree, with the draw at rest subtracted for the seconds of the window.
The machine is named, and so is its load. Apple M5 Max, 18 cores, 26.4.1. The load average before each run is in the ledger, and a study taken on a shared machine says so beside its numbers.
Where Polars wins, it is shown winning. 1 of 28 measurements on this page.
The caveat on this comparison. Polars is the closest fight on the Python side and the one to watch. On two of the public files its plain read_csv refused the file and needed a schema override, which the ledger records; and its typed reads are not like for like with neo's text table.
What is kept back. neo's kernels, the in-house ports and the techniques behind them: we don't want them getting into the wrong hands. The binaries run on request.
Scripts: scripts/bench_libraries.sh · scripts/bench_standards.sh · measured 2026-10-11 · the numbers on this page come from the same ledger as the app's own Evals page, written by neon-cpp/scripts/results_md.py.