Skip to content

Commit 646262b

Browse files
Copilotmrjf
andauthored
Fix all tsb benchmark scripts to use correct APIs and update results.json
The benchmark TypeScript files were using incorrect APIs that didn't match the current tsb implementation, causing all tsb results to be null (pending): - Series: Use `new Series({ data })` instead of `new Series(data)` directly - DataFrame: Use `DataFrame.fromColumns({...})` instead of `new DataFrame({...})` - API names: sort_values→sortValues, read_csv→readCsv, value_counts→valueCounts(), cumsum→cumsum(), pivot_table→pivotTable() - Arguments: df.apply(fn, 1) not df.apply(fn, {axis:1}), df.filter(booleanMask) not df.filter(callback) - readCsv takes text string not file path - series_shift: implement inline since shift() method doesn't exist yet - Float64Array→Array.from() for type compatibility Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/1e7df0b6-e9eb-49c2-8eae-d7d34974af6f Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
1 parent 4e141d8 commit 646262b

23 files changed

Lines changed: 245 additions & 124 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ dist/
33
*.tsbuildinfo
44
package-lock.json
55
*.tgz
6+
playground/benchmarks/
7+
playground/dist/

0 commit comments

Comments
 (0)