From 089bed815ae5dcc501dec3fc061346c889ba4f46 Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Thu, 30 Oct 2025 10:52:54 +0100 Subject: [PATCH 1/3] fix --- JetStreamDriver.js | 30 ++++++++++++++++++++++++++++++ mobx/benchmark.js | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/JetStreamDriver.js b/JetStreamDriver.js index ad8af878..116edbd0 100644 --- a/JetStreamDriver.js +++ b/JetStreamDriver.js @@ -2254,6 +2254,36 @@ let BENCHMARKS = [ ], tags: ["default", "js", "Proxy"], }), + new AsyncBenchmark({ + name: "mobx-startup-es6", + files: [ + "./utils/StartupBenchmark.js", + "./mobx/benchmark.js", + ], + preload: { + // Debug Sources for nicer profiling. + // BUNDLE: "./mobx/dist/bundle.es6.js", + BUNDLE: "./mobx/dist/bundle.es6.min.js", + }, + tags: ["default", "js", "mobx", "startup", "es6"], + iterations: 15, + worstCaseCount: 2, + }), + new AsyncBenchmark({ + name: "mobx-startup-es5", + files: [ + "./utils/StartupBenchmark.js", + "./mobx/benchmark.js", + ], + preload: { + // Debug Sources for nicer profiling. + // BUNDLE: "./mobx/dist/bundle.es5.js", + BUNDLE: "./mobx/dist/bundle.es5.min.js", + }, + tags: ["js", "mobx", "startup", "es5"], + iterations: 15, + worstCaseCount: 2, + }), new AsyncBenchmark({ name: "jsdom-d3-startup", files: [ diff --git a/mobx/benchmark.js b/mobx/benchmark.js index 124b374a..fe870f85 100644 --- a/mobx/benchmark.js +++ b/mobx/benchmark.js @@ -28,7 +28,7 @@ const EXPECTED_LOG_LENGTH = 6824; class Benchmark extends StartupBenchmark { lastResult; - constructor(iterationCount) { + constructor({iterationCount}) { super({ iterationCount, expectedCacheCommentCount: 464, From 7f3babc915e147b795e4cd547d0b22e8cb585447 Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Thu, 30 Oct 2025 10:53:42 +0100 Subject: [PATCH 2/3] add license file --- mobx/dist/LICENSE.txt | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 mobx/dist/LICENSE.txt diff --git a/mobx/dist/LICENSE.txt b/mobx/dist/LICENSE.txt new file mode 100644 index 00000000..b27039ea --- /dev/null +++ b/mobx/dist/LICENSE.txt @@ -0,0 +1,35 @@ +This file was generated with the generate-license-file npm package! +https://www.npmjs.com/package/generate-license-file + +The following npm package may be included in this product: + + - mobx@6.13.7 + +This package contains the following license: + +The MIT License (MIT) + +Copyright (c) 2015 Michel Weststrate + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +----------- + +This file was generated with the generate-license-file npm package! +https://www.npmjs.com/package/generate-license-file From b14788612de33660357fed9d1a6fded05df1872a Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Thu, 30 Oct 2025 10:59:02 +0100 Subject: [PATCH 3/3] cleanup --- JetStreamDriver.js | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/JetStreamDriver.js b/JetStreamDriver.js index 39a94872..548d3be3 100644 --- a/JetStreamDriver.js +++ b/JetStreamDriver.js @@ -2255,7 +2255,7 @@ let BENCHMARKS = [ tags: ["default", "js", "Proxy"], }), new AsyncBenchmark({ - name: "mobx-startup-es6", + name: "mobx-startup", files: [ "./utils/StartupBenchmark.js", "./mobx/benchmark.js", @@ -2266,23 +2266,8 @@ let BENCHMARKS = [ BUNDLE: "./mobx/dist/bundle.es6.min.js", }, tags: ["default", "js", "mobx", "startup", "es6"], - iterations: 15, - worstCaseCount: 2, - }), - new AsyncBenchmark({ - name: "mobx-startup-es5", - files: [ - "./utils/StartupBenchmark.js", - "./mobx/benchmark.js", - ], - preload: { - // Debug Sources for nicer profiling. - // BUNDLE: "./mobx/dist/bundle.es5.js", - BUNDLE: "./mobx/dist/bundle.es5.min.js", - }, - tags: ["js", "mobx", "startup", "es5"], - iterations: 15, - worstCaseCount: 2, + iterations: 30, + worstCaseCount: 3, }), new AsyncBenchmark({ name: "jsdom-d3-startup",