githubnext / githubnext/tsb

[Autoloop] [Autoloop: perf-comparison]

オープン
#218 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
agentic-workflows autoloop automation
主要言語
TypeScript
スター
7
フォーク
3
平均マージ
1時間 42分
マージ済み PR(30日)
1

説明

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

## Goal

Systematically benchmark every tsb function against its pandas equivalent, one function per iteration. Results are published to the playground benchmarks page.

**Current best metric**: 643 benchmark pairs

## Latest iteration (290)

Added 5 new benchmark pairs:
- `string_accessor_lower_strip` — `str.lower()` + `str.strip()` on 100k strings
- `string_accessor_len_replace` — `str.len()` + `str.replace()` on 100k strings
- `string_accessor_split_join` — `str.split()` on 100k strings
- `insert_pop_column` — `insertColumn` + `popColumn` on 10k-row DataFrame
- `natsort_strings` — `natSorted` on 10k natural-order strings

Total: 508 → 643 benchmark pairs accumulated on this branch.

> Generated by [Autoloop](https://github.com/githubnext/tsessebe/actions/runs/24919519451/agentic_workflow) · ● 1.9M · [◷](https://github.com/search?q=repo%3Agithubnext%2Ftsessebe+%22gh-aw-workflow-id%3A+autoloop%22&type=pullrequests)

---

> [!NOTE]
> This was originally intended as a pull request, but the git push operation failed.
>
> **Workflow Run:** [View run details and download patch artifact](https://github.com/githubnext/tsessebe/actions/runs/24919519451)
>
> The patch file is available in the `agent` artifact in the workflow run linked above.

To create a pull request with the changes:

```sh
# Download the artifact from the workflow run
gh run download 24919519451 -n agent -D /tmp/agent-24919519451

# Create a new branch
git checkout -b autoloop/perf-comparison

# Apply the patch (--3way handles cross-repo patches where files may already exist)
git am --3way /tmp/agent-24919519451/aw-autoloop-perf-comparison.patch

# Push the branch to origin
git push origin autoloop/perf-comparison

# Create the pull request
gh pr create --title '[Autoloop] [Autoloop: perf-comparison]' --base main --head autoloop/perf-comparison --repo githubnext/tsessebe
```

Show patch preview (396 of 396 lines)

```diff
From fa861a099486416627401d4543a1eff2f98ab1fb Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Sat, 25 Apr 2026 01:43:50 +0000
Subject: [PATCH] [Autoloop: perf-comparison] Iteration 290: add 5 benchmark
pairs (string_accessor lower/strip, len/replace, split/join, insert_pop,
natsort)

Run: https://github.com/githubnext/tsessebe/actions/runs/24919519451

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
benchmarks/pandas/bench_insert_pop_column.py | 33 +++++++++++++++++
benchmarks/pandas/bench_natsort_strings.py | 29 +++++++++++++++
.../bench_string_accessor_len_replace.py | 27 ++++++++++++++
.../bench_string_accessor_lower_strip.py | 27 ++++++++++++++
.../bench_string_accessor_split_join.py | 25 +++++++++++++
benchmarks/tsb/bench_insert_pop_column.ts | 35 +++++++++++++++++++
benchmarks/tsb/bench_natsort_strings.ts | 29 +++++++++++++++
.../tsb/bench_string_accessor_len_replace.ts | 32 +++++++++++++++++
.../tsb/bench_string_accessor_lower_strip.ts | 32 +++++++++++++++++
.../tsb/bench_string_accessor_split_join.ts | 30 ++++++++++++++++
10 files changed, 299 insertions(+)
create mode 100644 benchmarks/pandas/bench_insert_pop_column.py
create mode 100644 benchmarks/pandas/bench_natsort_strings.py
create mode 100644 benchmarks/pandas/bench_string_accessor_len_replace.py
create mode 100644 benchmarks/pandas/bench_string_accessor_lower_strip.py
create mode 100644 benchmarks/pandas/bench_string_accessor_split_join.py
create mode 100644 benchmarks/tsb/bench_insert_pop_column.ts
create mode 100644 benchmarks/tsb/bench_natsort_strings.ts
create mode 100644 benchmarks/tsb/bench_string_accessor_len_replace.ts
create mode 100644 benchmarks/tsb/bench_string_accessor_lower_strip.ts
create mode 100644 benchmarks/tsb/bench_string_accessor_split_join.ts

diff --git a/benchmarks/pandas/bench_insert_pop_column.py b/benchmarks/pandas/bench_insert_pop_col
... (truncated)
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

benchmarks/pandas と benchmarks/tsb から始め、パッチプレビューで示されている 5 つの対応ファイルを確認します: insert_pop_column、natsort_strings、および 3 つの string-accessor ベンチマーク。ワークフローのパッチアーティファクトを具体的な参照として使用します。5 つの pandas/TypeScript ベンチマークペアが存在し、累積されたベンチマーク比較に一貫性が保たれていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
pandas, python, typescript
領域
performance, testing-qa
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。