@fluidframework/merge-tree 2.74.0 → 2.80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -9,7 +9,7 @@ const snapshot_utils_js_1 = require("./snapshot.utils.js");
|
|
|
9
9
|
describe("MergeTree snapshots", () => {
|
|
10
10
|
let summary;
|
|
11
11
|
for (const summarySize of [10, 50, 100, 500, 1000, 5000, 10_000]) {
|
|
12
|
-
(0, benchmark_1.benchmark)({
|
|
12
|
+
const test = (0, benchmark_1.benchmark)({
|
|
13
13
|
type: benchmark_1.BenchmarkType.Measurement,
|
|
14
14
|
title: `load snapshot with ${summarySize} segments`,
|
|
15
15
|
category: "snapshot loading",
|
|
@@ -29,6 +29,11 @@ describe("MergeTree snapshots", () => {
|
|
|
29
29
|
summary = undefined;
|
|
30
30
|
},
|
|
31
31
|
});
|
|
32
|
+
if (summarySize > 5000) {
|
|
33
|
+
const currentTimeout = test.timeout();
|
|
34
|
+
// Default value of 2 seconds causes failure around P95 for large snapshot sizes.
|
|
35
|
+
test.timeout(currentTimeout === 0 ? 0 : Math.max(5000, currentTimeout));
|
|
36
|
+
}
|
|
32
37
|
}
|
|
33
38
|
});
|
|
34
39
|
//# sourceMappingURL=Snapshot.perf.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Snapshot.perf.spec.js","sourceRoot":"","sources":["../../src/test/Snapshot.perf.spec.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAEH,sDAAkE;AAGlE,2DAA+D;AAE/D,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACpC,IAAI,OAAiC,CAAC;IAEtC,KAAK,MAAM,WAAW,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC;QAClE,IAAA,qBAAS,EAAC;
|
|
1
|
+
{"version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C,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;QACzE,CAAC;IACF,CAAC;AACF,CAAC,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { BenchmarkType, benchmark } from \"@fluid-tools/benchmark\";\nimport type { ISummaryTree } from \"@fluidframework/driver-definitions\";\n\nimport { TestString, loadSnapshot } from \"./snapshot.utils.js\";\n\ndescribe(\"MergeTree snapshots\", () => {\n\tlet summary: ISummaryTree | undefined;\n\n\tfor (const summarySize of [10, 50, 100, 500, 1000, 5000, 10_000]) {\n\t\tconst test = benchmark({\n\t\t\ttype: BenchmarkType.Measurement,\n\t\t\ttitle: `load snapshot with ${summarySize} segments`,\n\t\t\tcategory: \"snapshot loading\",\n\t\t\tbefore: () => {\n\t\t\t\tconst str = new TestString(\"id\", {});\n\t\t\t\tfor (let i = 0; i < summarySize; i++) {\n\t\t\t\t\tstr.append(\"a\", false);\n\t\t\t\t}\n\n\t\t\t\tstr.applyPendingOps();\n\t\t\t\tsummary = str.getSummary();\n\t\t\t},\n\t\t\tbenchmarkFnAsync: async () => {\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t\t\t\tawait loadSnapshot(summary!);\n\t\t\t},\n\t\t\tafter: () => {\n\t\t\t\tsummary = undefined;\n\t\t\t},\n\t\t});\n\n\t\tif (summarySize > 5000) {\n\t\t\tconst currentTimeout = test.timeout();\n\t\t\t// Default value of 2 seconds causes failure around P95 for large snapshot sizes.\n\t\t\ttest.timeout(currentTimeout === 0 ? 0 : Math.max(5000, currentTimeout));\n\t\t}\n\t}\n});\n"]}
|
|
@@ -7,7 +7,7 @@ import { TestString, loadSnapshot } from "./snapshot.utils.js";
|
|
|
7
7
|
describe("MergeTree snapshots", () => {
|
|
8
8
|
let summary;
|
|
9
9
|
for (const summarySize of [10, 50, 100, 500, 1000, 5000, 10_000]) {
|
|
10
|
-
benchmark({
|
|
10
|
+
const test = benchmark({
|
|
11
11
|
type: BenchmarkType.Measurement,
|
|
12
12
|
title: `load snapshot with ${summarySize} segments`,
|
|
13
13
|
category: "snapshot loading",
|
|
@@ -27,6 +27,11 @@ describe("MergeTree snapshots", () => {
|
|
|
27
27
|
summary = undefined;
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
|
+
if (summarySize > 5000) {
|
|
31
|
+
const currentTimeout = test.timeout();
|
|
32
|
+
// Default value of 2 seconds causes failure around P95 for large snapshot sizes.
|
|
33
|
+
test.timeout(currentTimeout === 0 ? 0 : Math.max(5000, currentTimeout));
|
|
34
|
+
}
|
|
30
35
|
}
|
|
31
36
|
});
|
|
32
37
|
//# sourceMappingURL=Snapshot.perf.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Snapshot.perf.spec.js","sourceRoot":"","sources":["../../src/test/Snapshot.perf.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGlE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAE/D,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACpC,IAAI,OAAiC,CAAC;IAEtC,KAAK,MAAM,WAAW,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC;QAClE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Snapshot.perf.spec.js","sourceRoot":"","sources":["../../src/test/Snapshot.perf.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGlE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAE/D,Q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yright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { BenchmarkType, benchmark } from \"@fluid-tools/benchmark\";\nimport type { ISummaryTree } from \"@fluidframework/driver-definitions\";\n\nimport { TestString, loadSnapshot } from \"./snapshot.utils.js\";\n\ndescribe(\"MergeTree snapshots\", () => {\n\tlet summary: ISummaryTree | undefined;\n\n\tfor (const summarySize of [10, 50, 100, 500, 1000, 5000, 10_000]) {\n\t\tconst test = benchmark({\n\t\t\ttype: BenchmarkType.Measurement,\n\t\t\ttitle: `load snapshot with ${summarySize} segments`,\n\t\t\tcategory: \"snapshot loading\",\n\t\t\tbefore: () => {\n\t\t\t\tconst str = new TestString(\"id\", {});\n\t\t\t\tfor (let i = 0; i < summarySize; i++) {\n\t\t\t\t\tstr.append(\"a\", false);\n\t\t\t\t}\n\n\t\t\t\tstr.applyPendingOps();\n\t\t\t\tsummary = str.getSummary();\n\t\t\t},\n\t\t\tbenchmarkFnAsync: async () => {\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t\t\t\tawait loadSnapshot(summary!);\n\t\t\t},\n\t\t\tafter: () => {\n\t\t\t\tsummary = undefined;\n\t\t\t},\n\t\t});\n\n\t\tif (summarySize > 5000) {\n\t\t\tconst currentTimeout = test.timeout();\n\t\t\t// Default value of 2 seconds causes failure around P95 for large snapshot sizes.\n\t\t\ttest.timeout(currentTimeout === 0 ? 0 : Math.max(5000, currentTimeout));\n\t\t}\n\t}\n});\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/merge-tree",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.80.0",
|
|
4
4
|
"description": "Merge tree",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -81,44 +81,44 @@
|
|
|
81
81
|
"temp-directory": "nyc/.nyc_output"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@fluid-internal/client-utils": "~2.
|
|
85
|
-
"@fluidframework/container-definitions": "~2.
|
|
86
|
-
"@fluidframework/core-interfaces": "~2.
|
|
87
|
-
"@fluidframework/core-utils": "~2.
|
|
88
|
-
"@fluidframework/datastore-definitions": "~2.
|
|
89
|
-
"@fluidframework/driver-definitions": "~2.
|
|
90
|
-
"@fluidframework/runtime-definitions": "~2.
|
|
91
|
-
"@fluidframework/runtime-utils": "~2.
|
|
92
|
-
"@fluidframework/shared-object-base": "~2.
|
|
93
|
-
"@fluidframework/telemetry-utils": "~2.
|
|
84
|
+
"@fluid-internal/client-utils": "~2.80.0",
|
|
85
|
+
"@fluidframework/container-definitions": "~2.80.0",
|
|
86
|
+
"@fluidframework/core-interfaces": "~2.80.0",
|
|
87
|
+
"@fluidframework/core-utils": "~2.80.0",
|
|
88
|
+
"@fluidframework/datastore-definitions": "~2.80.0",
|
|
89
|
+
"@fluidframework/driver-definitions": "~2.80.0",
|
|
90
|
+
"@fluidframework/runtime-definitions": "~2.80.0",
|
|
91
|
+
"@fluidframework/runtime-utils": "~2.80.0",
|
|
92
|
+
"@fluidframework/shared-object-base": "~2.80.0",
|
|
93
|
+
"@fluidframework/telemetry-utils": "~2.80.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@arethetypeswrong/cli": "^0.
|
|
96
|
+
"@arethetypeswrong/cli": "^0.18.2",
|
|
97
97
|
"@biomejs/biome": "~1.9.3",
|
|
98
|
-
"@fluid-internal/mocha-test-setup": "~2.
|
|
99
|
-
"@fluid-private/stochastic-test-utils": "~2.
|
|
100
|
-
"@fluid-private/test-pairwise-generator": "~2.
|
|
98
|
+
"@fluid-internal/mocha-test-setup": "~2.80.0",
|
|
99
|
+
"@fluid-private/stochastic-test-utils": "~2.80.0",
|
|
100
|
+
"@fluid-private/test-pairwise-generator": "~2.80.0",
|
|
101
101
|
"@fluid-tools/benchmark": "^0.51.0",
|
|
102
|
-
"@fluid-tools/build-cli": "^0.
|
|
102
|
+
"@fluid-tools/build-cli": "^0.62.0",
|
|
103
103
|
"@fluidframework/build-common": "^2.0.3",
|
|
104
|
-
"@fluidframework/build-tools": "^0.
|
|
105
|
-
"@fluidframework/eslint-config-fluid": "~2.
|
|
106
|
-
"@fluidframework/merge-tree-previous": "npm:@fluidframework/merge-tree@2.
|
|
107
|
-
"@fluidframework/test-runtime-utils": "~2.
|
|
104
|
+
"@fluidframework/build-tools": "^0.62.0",
|
|
105
|
+
"@fluidframework/eslint-config-fluid": "~2.80.0",
|
|
106
|
+
"@fluidframework/merge-tree-previous": "npm:@fluidframework/merge-tree@2.74.0",
|
|
107
|
+
"@fluidframework/test-runtime-utils": "~2.80.0",
|
|
108
108
|
"@microsoft/api-extractor": "7.52.11",
|
|
109
109
|
"@types/diff": "^3.5.1",
|
|
110
110
|
"@types/mocha": "^10.0.10",
|
|
111
111
|
"@types/node": "^18.19.0",
|
|
112
112
|
"c8": "^10.1.3",
|
|
113
|
-
"concurrently": "^
|
|
113
|
+
"concurrently": "^9.2.1",
|
|
114
114
|
"copyfiles": "^2.4.1",
|
|
115
|
-
"cross-env": "^
|
|
115
|
+
"cross-env": "^10.1.0",
|
|
116
116
|
"diff": "^3.5.0",
|
|
117
|
-
"eslint": "~
|
|
117
|
+
"eslint": "~9.39.1",
|
|
118
118
|
"jiti": "^2.6.1",
|
|
119
119
|
"mocha": "^10.8.2",
|
|
120
120
|
"mocha-multi-reporters": "^1.5.1",
|
|
121
|
-
"rimraf": "^
|
|
121
|
+
"rimraf": "^6.1.2",
|
|
122
122
|
"typescript": "~5.4.5"
|
|
123
123
|
},
|
|
124
124
|
"typeValidation": {
|