chore: update the bench to target 0.17.9
This commit is contained in:
@@ -98,11 +98,11 @@ describe("Message.create", () => {
|
||||
schema.Group.create(schema.account),
|
||||
);
|
||||
},
|
||||
{ iterations: 500 },
|
||||
{ iterations: 1000 },
|
||||
);
|
||||
|
||||
bench(
|
||||
"Jazz 0.17.5",
|
||||
"Jazz 0.17.9",
|
||||
() => {
|
||||
schemaLatest.Message.create(
|
||||
{
|
||||
@@ -116,22 +116,30 @@ describe("Message.create", () => {
|
||||
schemaLatest.Group.create(schemaLatest.account),
|
||||
);
|
||||
},
|
||||
{ iterations: 500 },
|
||||
{ iterations: 1000 },
|
||||
);
|
||||
});
|
||||
|
||||
describe("Message import", () => {
|
||||
bench("current version (SessionLog)", () => {
|
||||
tools.importContentPieces(content ?? [], schema.account as any);
|
||||
schema.account._raw.core.node.internalDeleteCoValue(message.id as any);
|
||||
});
|
||||
bench(
|
||||
"current version",
|
||||
() => {
|
||||
tools.importContentPieces(content ?? [], schema.account as any);
|
||||
schema.account._raw.core.node.internalDeleteCoValue(message.id as any);
|
||||
},
|
||||
{ iterations: 5000 },
|
||||
);
|
||||
|
||||
bench("Jazz 0.17.5", () => {
|
||||
toolsLatest.importContentPieces(content ?? [], schemaLatest.account);
|
||||
schemaLatest.account._raw.core.node.internalDeleteCoValue(
|
||||
message.id as any,
|
||||
);
|
||||
});
|
||||
bench(
|
||||
"Jazz 0.17.9",
|
||||
() => {
|
||||
toolsLatest.importContentPieces(content ?? [], schemaLatest.account);
|
||||
schemaLatest.account._raw.core.node.internalDeleteCoValue(
|
||||
message.id as any,
|
||||
);
|
||||
},
|
||||
{ iterations: 5000 },
|
||||
);
|
||||
});
|
||||
|
||||
describe("import+ decrypt", () => {
|
||||
@@ -145,11 +153,11 @@ describe("import+ decrypt", () => {
|
||||
node.expectCoValueLoaded(message.id as any).getCurrentContent();
|
||||
node.internalDeleteCoValue(message.id as any);
|
||||
},
|
||||
{ iterations: 500 },
|
||||
{ iterations: 5000 },
|
||||
);
|
||||
|
||||
bench(
|
||||
"Jazz 0.17.5",
|
||||
"Jazz 0.17.9",
|
||||
() => {
|
||||
toolsLatest.importContentPieces(content ?? [], schemaLatest.account);
|
||||
|
||||
@@ -158,6 +166,6 @@ describe("import+ decrypt", () => {
|
||||
node.expectCoValueLoaded(message.id as any).getCurrentContent();
|
||||
node.internalDeleteCoValue(message.id as any);
|
||||
},
|
||||
{ iterations: 500 },
|
||||
{ iterations: 5000 },
|
||||
);
|
||||
});
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"dependencies": {
|
||||
"cojson": "workspace:*",
|
||||
"jazz-tools": "workspace:*",
|
||||
"cojson-latest": "npm:cojson@latest",
|
||||
"jazz-tools-latest": "npm:jazz-tools@latest"
|
||||
"cojson-latest": "npm:cojson@0.17.9",
|
||||
"jazz-tools-latest": "npm:jazz-tools@0.17.9"
|
||||
},
|
||||
"scripts": {
|
||||
"bench": "vitest bench"
|
||||
|
||||
44
pnpm-lock.yaml
generated
44
pnpm-lock.yaml
generated
@@ -148,14 +148,14 @@ importers:
|
||||
specifier: workspace:*
|
||||
version: link:../packages/cojson
|
||||
cojson-latest:
|
||||
specifier: npm:cojson@latest
|
||||
version: cojson@0.17.5
|
||||
specifier: npm:cojson@0.17.9
|
||||
version: cojson@0.17.9
|
||||
jazz-tools:
|
||||
specifier: workspace:*
|
||||
version: link:../packages/jazz-tools
|
||||
jazz-tools-latest:
|
||||
specifier: npm:jazz-tools@latest
|
||||
version: jazz-tools@0.17.5(fcnzwos7wezy7dy4sqlslwz4mm)
|
||||
specifier: npm:jazz-tools@0.17.9
|
||||
version: jazz-tools@0.17.9(fcnzwos7wezy7dy4sqlslwz4mm)
|
||||
|
||||
crates/cojson-core-wasm:
|
||||
devDependencies:
|
||||
@@ -8329,14 +8329,14 @@ packages:
|
||||
resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==}
|
||||
engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'}
|
||||
|
||||
cojson-storage-indexeddb@0.17.5:
|
||||
resolution: {integrity: sha512-Q0VOvqhPvBD18gf0YMXEjq/XzGg3b7B0zGl8DiqtWbCLtei5fzCyCDxcEUSODjBFEC8hYuJTLnbNBdWSnNR+Ug==}
|
||||
cojson-storage-indexeddb@0.17.9:
|
||||
resolution: {integrity: sha512-aOKoYHTUwxwEr08n6dXqMmpEciE8w0DaMuP8wAUg/8ijRz9uTBATZHHiUE4LM+0sZjA/3RbvfnAh8FSgR2MiIQ==}
|
||||
|
||||
cojson-transport-ws@0.17.5:
|
||||
resolution: {integrity: sha512-F8z2EhJwYnLiejxwsfrfk6MmhiBcj/jz6qEH0ME4gFy3SUx0QtXeiZI9BwuL/DufoTHB6lNH1xPivu3OdVJjAw==}
|
||||
cojson-transport-ws@0.17.9:
|
||||
resolution: {integrity: sha512-xIc6pfugEcNF744LAppgtVNSGqznZRzjRQlxzge4KtBPPUxouG3B95ts8ufyP0ZIxik5wwAqaxGQH8FyYBlJOg==}
|
||||
|
||||
cojson@0.17.5:
|
||||
resolution: {integrity: sha512-GBWySEsURzFakyIhQHSBTxcNQDDmnYVlP802m0jYbSW5aK6PdT1H53QOIzBSq0sm0eEiN8DDP3u+w1TfVJydcQ==}
|
||||
cojson@0.17.9:
|
||||
resolution: {integrity: sha512-oKMXyYKh14O5TuD4+Ja+ecliZ2iY7uCbVFZVqOrxzbgA1ManW4P69UeUC0uu7himxWXPOImAn3+ptt7w7k7d0g==}
|
||||
|
||||
collect-v8-coverage@1.0.2:
|
||||
resolution: {integrity: sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==}
|
||||
@@ -10310,8 +10310,8 @@ packages:
|
||||
jazz-crypto-rs@0.0.7:
|
||||
resolution: {integrity: sha512-Pzs8Zu1zgKVURkBVvqqF1B2r78FaSZdwPbmeCWx0Nb3nibzPuB/kSKEO7LJsKnb3P5HO0v+lTIJ53mGC5H1urQ==}
|
||||
|
||||
jazz-tools@0.17.5:
|
||||
resolution: {integrity: sha512-3Kvad7APpnMpYDTX6zZPcyD9vwDeQoa52g809CZ+F0mC9GQZDWTWaY7jYJd+aJbH2K/TLkIcTLDFX8OF6LnNCQ==}
|
||||
jazz-tools@0.17.9:
|
||||
resolution: {integrity: sha512-S1O4Pzf5mdnX0gQLs2X7Y2j2X9V08jy/rFtgIuTwwTp6MB4MXrd77bcP8HPcKT0oV9kCVsqp3W/9LwLBbssh2g==}
|
||||
peerDependencies:
|
||||
'@bam.tech/react-native-image-resizer': '*'
|
||||
'@op-engineering/op-sqlite': ^11.4.8
|
||||
@@ -20021,7 +20021,9 @@ snapshots:
|
||||
metro-runtime: 0.82.3
|
||||
transitivePeerDependencies:
|
||||
- '@babel/core'
|
||||
- bufferutil
|
||||
- supports-color
|
||||
- utf-8-validate
|
||||
|
||||
'@react-native/normalize-colors@0.80.0': {}
|
||||
|
||||
@@ -23018,16 +23020,16 @@ snapshots:
|
||||
co@4.6.0:
|
||||
optional: true
|
||||
|
||||
cojson-storage-indexeddb@0.17.5:
|
||||
cojson-storage-indexeddb@0.17.9:
|
||||
dependencies:
|
||||
cojson: 0.17.5
|
||||
cojson: 0.17.9
|
||||
|
||||
cojson-transport-ws@0.17.5:
|
||||
cojson-transport-ws@0.17.9:
|
||||
dependencies:
|
||||
'@opentelemetry/api': 1.9.0
|
||||
cojson: 0.17.5
|
||||
cojson: 0.17.9
|
||||
|
||||
cojson@0.17.5:
|
||||
cojson@0.17.9:
|
||||
dependencies:
|
||||
'@noble/ciphers': 1.3.0
|
||||
'@noble/curves': 1.9.1
|
||||
@@ -25371,16 +25373,16 @@ snapshots:
|
||||
|
||||
jazz-crypto-rs@0.0.7: {}
|
||||
|
||||
jazz-tools@0.17.5(fcnzwos7wezy7dy4sqlslwz4mm):
|
||||
jazz-tools@0.17.9(fcnzwos7wezy7dy4sqlslwz4mm):
|
||||
dependencies:
|
||||
'@manuscripts/prosemirror-recreate-steps': 0.1.4
|
||||
'@scure/base': 1.2.1
|
||||
'@scure/bip39': 1.5.0
|
||||
'@tiptap/core': 2.12.0(@tiptap/pm@2.12.0)
|
||||
clsx: 2.1.1
|
||||
cojson: 0.17.5
|
||||
cojson-storage-indexeddb: 0.17.5
|
||||
cojson-transport-ws: 0.17.5
|
||||
cojson: 0.17.9
|
||||
cojson-storage-indexeddb: 0.17.9
|
||||
cojson-transport-ws: 0.17.9
|
||||
fast-myers-diff: 3.2.0
|
||||
goober: 2.1.16(csstype@3.1.3)
|
||||
prosemirror-example-setup: 1.2.3
|
||||
|
||||
Reference in New Issue
Block a user