@atlaspack/graph 3.5.0 → 3.5.2

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
@@ -1,5 +1,19 @@
1
1
  # @atlaspack/graph
2
2
 
3
+ ## 3.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`10fbcfb`](https://github.com/atlassian-labs/atlaspack/commit/10fbcfbfa49c7a83da5d7c40983e36e87f524a75), [`85c52d3`](https://github.com/atlassian-labs/atlaspack/commit/85c52d3f7717b3c84a118d18ab98cfbfd71dcbd2)]:
8
+ - @atlaspack/feature-flags@2.18.0
9
+
10
+ ## 3.5.1
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`73ea3c4`](https://github.com/atlassian-labs/atlaspack/commit/73ea3c4d85d4401fdd15abcbf988237e890e7ad3), [`b1b3693`](https://github.com/atlassian-labs/atlaspack/commit/b1b369317c66f8a431c170df2ebba4fa5b2e38ef)]:
15
+ - @atlaspack/feature-flags@2.17.0
16
+
3
17
  ## 3.5.0
4
18
 
5
19
  ### Minor Changes
@@ -0,0 +1,37 @@
1
+ /*
2
+ * BitSets are primarily used for performance reasons, so we want to be able to
3
+ * validate that changes we make to it are performace improvements.
4
+ *
5
+ * This file exists as a ready-made playground for benchmarking changes you may
6
+ * want to make to the BitSet implementation.
7
+ *
8
+ * Run with `yarn workspace @atlaspack/graph benchmark` from the root
9
+ */
10
+
11
+ // Needed to make Flow work in the benchmarks
12
+ require('@atlaspack/babel-register');
13
+
14
+ const {BitSet} = require('../src/BitSet.js');
15
+ const b = require('benny');
16
+
17
+ function createBitSetWithEntries(capacity, entries) {
18
+ let bitSet = new BitSet(capacity);
19
+ for (const index of entries) {
20
+ bitSet.add(index);
21
+ }
22
+ return bitSet;
23
+ }
24
+
25
+ let bundleIndices = [4334, 348, 2145, 480, 747, 1446, 326, 2791, 2658, 1334];
26
+
27
+ let bundleBitSet = createBitSetWithEntries(5000, bundleIndices);
28
+
29
+ b.suite(
30
+ 'BitSet - size',
31
+ b.add('Control', () => {
32
+ bundleBitSet.size();
33
+ }),
34
+ b.configure({minSamples: 100}),
35
+ b.cycle(),
36
+ b.complete(),
37
+ );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/graph",
3
- "version": "3.5.0",
3
+ "version": "3.5.2",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "publishConfig": {
@@ -15,9 +15,16 @@
15
15
  "engines": {
16
16
  "node": ">= 16.0.0"
17
17
  },
18
+ "scripts": {
19
+ "benchmark": "node ./benchmark/BitSet.js"
20
+ },
18
21
  "dependencies": {
19
- "@atlaspack/feature-flags": "2.16.0",
22
+ "@atlaspack/feature-flags": "2.18.0",
20
23
  "nullthrows": "^1.1.1"
21
24
  },
25
+ "devDependencies": {
26
+ "@atlaspack/babel-register": "2.14.1",
27
+ "benny": "^3.7.1"
28
+ },
22
29
  "type": "commonjs"
23
30
  }