Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .syncpackrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"versionGroups": [
{
"label": "packages/zql-benchmarks/rn is an Expo app that is deliberately not a pnpm workspace member (see packages/replicache-perf/rn/README.md). It pins the React, TypeScript and Expo versions its React Native release needs, independently of the workspace's.",
"packages": [
"zql-benchmarks-rn"
],
"isIgnored": true
},
{
"label": "packages/replicache-perf/rn is an Expo app that is deliberately not a pnpm workspace member (see its README). It pins the React, TypeScript and Expo versions its React Native release needs, independently of the workspace's.",
"packages": [
Expand Down
1 change: 1 addition & 0 deletions oxlint.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const baseConfig = {
// expo/tsconfig.base from its own node_modules, which type-aware linting
// cannot resolve from the repo root.
'packages/replicache-perf/rn',
'packages/zql-benchmarks/rn',
],
rules: {
// Disable unsafe optional chaining - many legitimate patterns in codebase
Expand Down
1 change: 1 addition & 0 deletions packages/replicache-perf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"playwright": "^1.60.0",
"playwright-core": "1.53.2",
"replicache": "workspace:*",
"rn-bench": "workspace:*",
"shared": "workspace:*",
"typescript": "~7.0.2",
"vite": "^8.0.13",
Expand Down
2 changes: 1 addition & 1 deletion packages/replicache-perf/src/benchmarks/compare-utf8.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {compareUTF8} from 'compare-utf8';
import type {Benchmark} from '../benchmark.ts';
import type {Benchmark} from '../../../../tools/rn-bench/src/benchmark.ts';
import {makeRandomASCIIStrings, makeRandomStrings} from '../data.ts';

const encoder = new TextEncoder();
Expand Down
2 changes: 1 addition & 1 deletion packages/replicache-perf/src/benchmarks/hash.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {createSHA512} from 'hash-wasm';
import type {Benchmark} from '../benchmark.ts';
import type {Benchmark} from '../../../../tools/rn-bench/src/benchmark.ts';
import {makeRandomStrings} from '../data.ts';

const encoder = new TextEncoder();
Expand Down
5 changes: 4 additions & 1 deletion packages/replicache-perf/src/benchmarks/idb.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import {deleteDB, type IDBPDatabase, openDB} from 'idb/with-async-ittr';
// @ts-ignore Invalid module when using node16 module resolution.
import xbytes from 'xbytes';
import type {Bencher, Benchmark} from '../benchmark.ts';
import type {
Bencher,
Benchmark,
} from '../../../../tools/rn-bench/src/benchmark.ts';
import {randomData, type RandomDataType} from '../data.ts';

function benchmarkIDBReadGetAll(opts: {
Expand Down
2 changes: 1 addition & 1 deletion packages/replicache-perf/src/benchmarks/map-loop.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {Benchmark} from '../benchmark.ts';
import type {Benchmark} from '../../../../tools/rn-bench/src/benchmark.ts';

export function benchmarks(): Array<Benchmark> {
return [forLoop(), forEach()];
Expand Down
5 changes: 4 additions & 1 deletion packages/replicache-perf/src/benchmarks/replicache.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import {resolver} from '@rocicorp/resolver';
import type {
Bencher,
Benchmark,
} from '../../../../tools/rn-bench/src/benchmark.ts';
import {
closeAndCleanupRep,
createIndexDefinitions,
Expand All @@ -24,7 +28,6 @@ import type {
} from '../../../replicache/src/transactions.ts';
import {assert} from '../../../shared/src/asserts.ts';
import {deepEqual, type JSONValue} from '../../../shared/src/json.ts';
import type {Bencher, Benchmark} from '../benchmark.ts';
import {
getTmcwData,
jsonArrayTestData,
Expand Down
2 changes: 1 addition & 1 deletion packages/replicache-perf/src/benchmarks/storage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {Benchmark} from '../benchmark.ts';
import type {Benchmark} from '../../../../tools/rn-bench/src/benchmark.ts';
import {randomString} from '../data.ts';

export function benchmarks(): Benchmark[] {
Expand Down
4 changes: 2 additions & 2 deletions packages/replicache-perf/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {runBenchmark} from './benchmark.ts';
import {formatAsReplicache} from './format.ts';
import {runBenchmark} from '../../../tools/rn-bench/src/benchmark.ts';
import {formatAsReplicache} from '../../../tools/rn-bench/src/format.ts';
import * as m from './perf.ts';
import {benchmarks, findBenchmarks} from './perf.ts';

Expand Down
Loading
Loading