Skip to content

[Autoloop] [Autoloop: perf-comparison]#128

Merged
mrjf merged 1 commit intomainfrom
autoloop/perf-comparison-12683ddd005469f2
Apr 12, 2026
Merged

[Autoloop] [Autoloop: perf-comparison]#128
mrjf merged 1 commit intomainfrom
autoloop/perf-comparison-12683ddd005469f2

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

🤖 This PR is maintained by Autoloop. Each accepted iteration adds a commit to this branch.

Performance Benchmarks: tsb vs pandas

Goal: Systematically benchmark every tsb function against its pandas equivalent, one function per iteration.

Branch: autoloop/perf-comparison
State File: perf-comparison.md

Current Best

Metric: benchmarked_functions = 22 (established in iteration 9)

Summary

This PR accumulates benchmark comparison pairs between tsb (TypeScript/Bun) and pandas (Python). Each iteration adds one or more benchmark scripts in benchmarks/tsb/ and benchmarks/pandas/, runs the Python benchmarks for timing, and updates benchmarks/results.json and playground/benchmarks.html.

Functions Benchmarked (22)

Function pandas (ms)
concat 0.114
dataframe_apply 47.2
dataframe_creation 5.15
dataframe_dropna 2.43
dataframe_filter 0.496
dataframe_rename 0.171
dataframe_sort 33.3
describe 5.52
ewm_mean 1.77
groupby_mean 8.08
merge 60.4
pivot_table 22.5
read_csv 30.0
rolling_mean 1.72
series_arithmetic 0.765
series_creation 7.61
series_cumsum 1.13
series_fillna 0.185
series_shift 0.0725
series_sort 5.13
series_string_ops 34.1
series_value_counts 9.21

tsb timings require Bun and will be populated when CI runs with Bun available.

Generated by Autoloop · ● 4.9M ·

Add benchmark pairs for: dataframe_creation, series_arithmetic, groupby_mean,
series_sort, dataframe_filter, concat, merge, rolling_mean, describe,
series_value_counts, read_csv, series_string_ops, pivot_table, ewm_mean,
dataframe_apply, series_fillna, dataframe_dropna, dataframe_sort,
series_cumsum, series_shift, dataframe_rename.

Fix playground/benchmarks.html to handle null tsb values gracefully.
Update results.json with pandas timing results.

Metric: 22 (previous best: 13, delta: +9)

Run: https://github.com/githubnext/tsessebe/actions/runs/24310339206
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant