Commit 646262b
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
File tree
- benchmarks
- tsb
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
0 commit comments