demo(benchmark-react): remove plain React baseline app#3796
Conversation
Drop the baseline webpack entry, scenarios, and implementation; keep comparisons to TanStack Query and SWR only. Update README and benchmarking cursor rule. Made-with: Cursor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
There was a problem hiding this comment.
Benchmark
Details
| Benchmark suite | Current: b8f90f0 | Previous: 3d7a577 | Ratio |
|---|---|---|---|
data-client: getlist-100 |
20.9 ms (± 0.11) |
22 ms (± 1.44) |
0.95 |
data-client: getlist-500 |
33.8 ms (± 0) |
35.4 ms (± 0.29) |
0.95 |
data-client: update-single-entity |
5.3 ms (± 0.6) |
5.5 ms (± 0.79) |
0.96 |
data-client: ref-stability-issue-changed |
5 count (± 0) |
5 count (± 0) |
1 |
data-client: ref-stability-user-changed |
5 count (± 0) |
5 count (± 0) |
1 |
data-client: update-shared-user-500-mounted |
6.3 ms (± 0.49) |
6.6 ms (± 0.78) |
0.95 |
data-client: sorted-view-mount-500 |
26.1 ms (± 2.45) |
27 ms (± 0.88) |
0.97 |
data-client: sorted-view-update-entity |
5.5 ms (± 0.49) |
6 ms (± 0.59) |
0.92 |
data-client: list-detail-switch |
88.2 ms (± 3.92) |
92.1 ms (± 7.74) |
0.96 |
data-client: update-shared-user-10000-mounted |
27.7 ms (± 0.88) |
27.3 ms (± 3.14) |
1.01 |
data-client: invalidate-and-resolve |
14.6 ms (± 2.08) |
12.4 ms (± 0.58) |
1.18 |
data-client: unshift-item |
7 ms (± 0.47) |
7.2 ms (± 0.2) |
0.97 |
data-client: delete-item |
6.9 ms (± 0.43) |
7.8 ms (± 0.69) |
0.88 |
data-client: move-item |
5.6 ms (± 0.6) |
5.8 ms (± 0.87) |
0.97 |
This comment was automatically generated by workflow using github-action-benchmark.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| * | ||
| * @see https://dataclient.io/rest/api/Collection#moveWith | ||
| */ | ||
| moveWith<P extends any[] = Args>(merge: (existing: any, incoming: any) => any): Collection<S, P>; |
There was a problem hiding this comment.
Unrelated type definition changes bundled into benchmark PR
Low Severity
Several generated type definition files (endpoint.d.ts, graphql.d.ts, rest.d.ts, globals.d.ts, qs.d.ts) contain changes that add moveWith, unshift, and strictMerge — none of which are related to the PR's stated goal of removing the baseline benchmark app. These were likely regenerated by running copywebsitetypes.sh which picked up changes from a separate feature already landed in the packages. Mixing unrelated generated-file updates makes this PR harder to review and reason about.
Additional Locations (2)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3796 +/- ##
=======================================
Coverage 98.06% 98.06%
=======================================
Files 151 151
Lines 2843 2843
Branches 556 556
=======================================
Hits 2788 2788
Misses 11 11
Partials 44 44 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|


Motivation
The React benchmark suite compared
@data-client/reactto TanStack Query, SWR, and a separate plain React “baseline” app. That baseline duplicated competitor-style behavior without adding a distinct third data library, so removing it simplifies the harness and docs while keeping the meaningful library comparisons.Solution
src/baseline/index.tsxand thebaselinewebpack entry.baselinefromLIBRARIESinbench/scenarios.tsso the runner no longer schedules those scenarios.README.md,bench/validate.tsCLI example, and.cursor/rules/benchmarking.mdcto describe only data-client, TanStack Query, and SWR.Open questions
N/A
Made with Cursor
Note
Low Risk
Mostly removes a benchmark comparison target and updates docs/config accordingly; the only other changes are TypeScript declaration updates used by the website playground, with no runtime impact.
Overview
Removes the plain React
baselineimplementation fromexamples/benchmark-reactand stops scheduling/building it by droppingbaselinefromLIBRARIESand the webpack entries.Updates benchmark docs and validation CLI examples to reflect that the React harness now compares only
data-client, TanStack Query, and SWR.Updates website playground editor
.d.tsfiles to include the newCollection.moveWith()signature and exportunshift, and extendsqsparse options typing withstrictMerge.Written by Cursor Bugbot for commit b8f90f0. This will update automatically on new commits. Configure here.