Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update the publish script to use only npm options #416

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

nazarhussain
Copy link
Contributor

Motivation

Fix the publish script for the workflow.

Description

In previous #408 I left out --tolerate-republish as it was used for a very long time.

- run: yarn workspaces foreach -v --exclude root --exclude simpleserialize.com --no-private npm publish --tolerate-republish --access public

But actual issue was mixing up npm publish with the yarn npm publish. So eventually yarn had it's own set of npm commands. 🥹

https://yarnpkg.com/cli/npm/publish

Steps to test or reproduce

  • Run all tests and publish a newer version later on.

@nazarhussain nazarhussain requested a review from a team as a code owner October 16, 2024 11:37
@github-actions github-actions bot added the CI label Oct 16, 2024
@nazarhussain
Copy link
Contributor Author

nazarhussain commented Oct 16, 2024

The dry run works fine.
yarn lerna exec --ignore root --ignore simpleserialize.com --no-private "npm publish --access public --dry "
yarn run v1.22.22
$ /Hub/ssz/node_modules/.bin/lerna exec --ignore root --ignore simpleserialize.com --no-private 'npm publish --access public --dry '
(node:32074) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
lerna notice cli v8.1.3
lerna notice filter excluding ["root","simpleserialize.com"]
lerna info filter [ '!root', '!simpleserialize.com' ]
lerna info Executing command in 4 packages: "npm publish --access public --dry "
(node:32074) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
@chainsafe/persistent-ts: npm notice
@chainsafe/persistent-ts: npm notice 📦  @chainsafe/persistent-ts@0.19.1
@chainsafe/persistent-ts: npm notice Tarball Contents
@chainsafe/persistent-ts: npm notice 1.1kB LICENSE
@chainsafe/persistent-ts: npm notice 1.8kB README.md
@chainsafe/persistent-ts: npm notice 118B lib/index.d.ts
@chainsafe/persistent-ts: npm notice 726B lib/index.js
@chainsafe/persistent-ts: npm notice 3.8kB lib/List.d.ts
@chainsafe/persistent-ts: npm notice 6.2kB lib/List.js
@chainsafe/persistent-ts: npm notice 879B lib/MutableVector.d.ts
@chainsafe/persistent-ts: npm notice 1.9kB lib/MutableVector.js
@chainsafe/persistent-ts: npm notice 5.1kB lib/Vector.d.ts
@chainsafe/persistent-ts: npm notice 18.3kB lib/Vector.js
@chainsafe/persistent-ts: npm notice 1.1kB package.json
@chainsafe/persistent-ts: npm notice Tarball Details
@chainsafe/persistent-ts: npm notice name: @chainsafe/persistent-ts
@chainsafe/persistent-ts: npm notice version: 0.19.1
@chainsafe/persistent-ts: npm notice filename: chainsafe-persistent-ts-0.19.1.tgz
@chainsafe/persistent-ts: npm notice package size: 8.9 kB
@chainsafe/persistent-ts: npm notice unpacked size: 40.9 kB
@chainsafe/persistent-ts: npm notice shasum: 73595efe96e41e50b9545b6713969a4f02df731b
@chainsafe/persistent-ts: npm notice integrity: sha512-RNHkBp7SoRYHI[...]cKWIGHARsLSIw==
@chainsafe/persistent-ts: npm notice total files: 11
@chainsafe/persistent-ts: npm notice
@chainsafe/persistent-ts: npm warn This command requires you to be logged in to https://registry.yarnpkg.com (dry-run)
@chainsafe/persistent-ts: npm notice Publishing to https://registry.yarnpkg.com with tag latest and public access (dry-run)
@chainsafe/persistent-ts: + @chainsafe/persistent-ts@0.19.1
@chainsafe/as-sha256: npm notice
@chainsafe/as-sha256: npm notice 📦  @chainsafe/as-sha256@0.5.0
@chainsafe/as-sha256: npm notice Tarball Contents
@chainsafe/as-sha256: npm notice 589B LICENSE
@chainsafe/as-sha256: npm notice 757B README.md
@chainsafe/as-sha256: npm notice 16.8kB build/optimized.wasm
@chainsafe/as-sha256: npm notice 267.4kB build/optimized.wat
@chainsafe/as-sha256: npm notice 27.4kB build/untouched.wasm
@chainsafe/as-sha256: npm notice 531.3kB build/untouched.wat
@chainsafe/as-sha256: npm notice 381B lib/alloc.d.ts
@chainsafe/as-sha256: npm notice 198B lib/alloc.d.ts.map
@chainsafe/as-sha256: npm notice 748B lib/alloc.js
@chainsafe/as-sha256: npm notice 588B lib/alloc.js.map
@chainsafe/as-sha256: npm notice 1.2kB lib/hashObject.d.ts
@chainsafe/as-sha256: npm notice 656B lib/hashObject.d.ts.map
@chainsafe/as-sha256: npm notice 5.2kB lib/hashObject.js
@chainsafe/as-sha256: npm notice 7.0kB lib/hashObject.js.map
@chainsafe/as-sha256: npm notice 2.1kB lib/index.d.ts
@chainsafe/as-sha256: npm notice 913B lib/index.d.ts.map
@chainsafe/as-sha256: npm notice 11.5kB lib/index.js
@chainsafe/as-sha256: npm notice 11.6kB lib/index.js.map
@chainsafe/as-sha256: npm notice 372B lib/sha256.d.ts
@chainsafe/as-sha256: npm notice 408B lib/sha256.d.ts.map
@chainsafe/as-sha256: npm notice 1.4kB lib/sha256.js
@chainsafe/as-sha256: npm notice 1.5kB lib/sha256.js.map
@chainsafe/as-sha256: npm notice 624B lib/wasm.d.ts
@chainsafe/as-sha256: npm notice 728B lib/wasm.d.ts.map
@chainsafe/as-sha256: npm notice 645B lib/wasm.js
@chainsafe/as-sha256: npm notice 494B lib/wasm.js.map
@chainsafe/as-sha256: npm notice 81B lib/wasmCode.d.ts
@chainsafe/as-sha256: npm notice 142B lib/wasmCode.d.ts.map
@chainsafe/as-sha256: npm notice 64.6kB lib/wasmCode.js
@chainsafe/as-sha256: npm notice 168.2kB lib/wasmCode.js.map
@chainsafe/as-sha256: npm notice 2.0kB package.json
@chainsafe/as-sha256: npm notice Tarball Details
@chainsafe/as-sha256: npm notice name: @chainsafe/as-sha256
@chainsafe/as-sha256: npm notice version: 0.5.0
@chainsafe/as-sha256: npm notice filename: chainsafe-as-sha256-0.5.0.tgz
@chainsafe/as-sha256: npm notice package size: 90.5 kB
@chainsafe/as-sha256: npm notice unpacked size: 1.1 MB
@chainsafe/as-sha256: npm notice shasum: 2f949559dc4dee3bb687367af8d01d0f55f8da60
@chainsafe/as-sha256: npm notice integrity: sha512-NpfseokXxXPW5[...]hTO8JfHhdNaTw==
@chainsafe/as-sha256: npm notice total files: 31
@chainsafe/as-sha256: npm notice
@chainsafe/as-sha256: npm warn This command requires you to be logged in to https://registry.yarnpkg.com (dry-run)
@chainsafe/as-sha256: npm notice Publishing to https://registry.yarnpkg.com with tag latest and public access (dry-run)
@chainsafe/as-sha256: + @chainsafe/as-sha256@0.5.0
@chainsafe/persistent-merkle-tree: npm notice
@chainsafe/persistent-merkle-tree: npm notice 📦  @chainsafe/persistent-merkle-tree@0.8.0
@chainsafe/persistent-merkle-tree: npm notice Tarball Contents
@chainsafe/persistent-merkle-tree: npm notice 11.4kB LICENSE
@chainsafe/persistent-merkle-tree: npm notice 6.1kB README.md
@chainsafe/persistent-merkle-tree: npm notice 1.5kB lib/gindex.d.ts
@chainsafe/persistent-merkle-tree: npm notice 5.2kB lib/gindex.js
@chainsafe/persistent-merkle-tree: npm notice 4.5kB lib/gindex.js.map
@chainsafe/persistent-merkle-tree: npm notice 3.7kB lib/hashComputation.d.ts
@chainsafe/persistent-merkle-tree: npm notice 6.0kB lib/hashComputation.js
@chainsafe/persistent-merkle-tree: npm notice 4.1kB lib/hashComputation.js.map
@chainsafe/persistent-merkle-tree: npm notice 76B lib/hasher/as-sha256.d.ts
@chainsafe/persistent-merkle-tree: npm notice 5.4kB lib/hasher/as-sha256.js
@chainsafe/persistent-merkle-tree: npm notice 3.7kB lib/hasher/as-sha256.js.map
@chainsafe/persistent-merkle-tree: npm notice 71B lib/hasher/hashtree.d.ts
@chainsafe/persistent-merkle-tree: npm notice 4.8kB lib/hasher/hashtree.js
@chainsafe/persistent-merkle-tree: npm notice 4.5kB lib/hasher/hashtree.js.map
@chainsafe/persistent-merkle-tree: npm notice 885B lib/hasher/index.d.ts
@chainsafe/persistent-merkle-tree: npm notice 1.9kB lib/hasher/index.js
@chainsafe/persistent-merkle-tree: npm notice 770B lib/hasher/index.js.map
@chainsafe/persistent-merkle-tree: npm notice 76B lib/hasher/noble.d.ts
@chainsafe/persistent-merkle-tree: npm notice 1.9kB lib/hasher/noble.js
@chainsafe/persistent-merkle-tree: npm notice 2.0kB lib/hasher/noble.js.map
@chainsafe/persistent-merkle-tree: npm notice 1.2kB lib/hasher/types.d.ts
@chainsafe/persistent-merkle-tree: npm notice 110B lib/hasher/types.js
@chainsafe/persistent-merkle-tree: npm notice 112B lib/hasher/types.js.map
@chainsafe/persistent-merkle-tree: npm notice 1.1kB lib/hasher/util.d.ts
@chainsafe/persistent-merkle-tree: npm notice 3.7kB lib/hasher/util.js
@chainsafe/persistent-merkle-tree: npm notice 2.8kB lib/hasher/util.js.map
@chainsafe/persistent-merkle-tree: npm notice 301B lib/index.d.ts
@chainsafe/persistent-merkle-tree: npm notice 1.1kB lib/index.js
@chainsafe/persistent-merkle-tree: npm notice 255B lib/index.js.map
@chainsafe/persistent-merkle-tree: npm notice 3.0kB lib/node.d.ts
@chainsafe/persistent-merkle-tree: npm notice 10.4kB lib/node.js
@chainsafe/persistent-merkle-tree: npm notice 9.8kB lib/node.js.map
@chainsafe/persistent-merkle-tree: npm notice 1.0kB lib/packedNode.d.ts
@chainsafe/persistent-merkle-tree: npm notice 5.9kB lib/packedNode.js
@chainsafe/persistent-merkle-tree: npm notice 5.0kB lib/packedNode.js.map
@chainsafe/persistent-merkle-tree: npm notice 832B lib/proof/compactMulti.d.ts
@chainsafe/persistent-merkle-tree: npm notice 5.4kB lib/proof/compactMulti.js
@chainsafe/persistent-merkle-tree: npm notice 4.7kB lib/proof/compactMulti.js.map
@chainsafe/persistent-merkle-tree: npm notice 2.2kB lib/proof/index.d.ts
@chainsafe/persistent-merkle-tree: npm notice 4.7kB lib/proof/index.js
@chainsafe/persistent-merkle-tree: npm notice 3.2kB lib/proof/index.js.map
@chainsafe/persistent-merkle-tree: npm notice 864B lib/proof/multi.d.ts
@chainsafe/persistent-merkle-tree: npm notice 4.2kB lib/proof/multi.js
@chainsafe/persistent-merkle-tree: npm notice 3.5kB lib/proof/multi.js.map
@chainsafe/persistent-merkle-tree: npm notice 352B lib/proof/single.d.ts
@chainsafe/persistent-merkle-tree: npm notice 1.5kB lib/proof/single.js
@chainsafe/persistent-merkle-tree: npm notice 1.4kB lib/proof/single.js.map
@chainsafe/persistent-merkle-tree: npm notice 1.8kB lib/proof/treeOffset.d.ts
@chainsafe/persistent-merkle-tree: npm notice 5.3kB lib/proof/treeOffset.js
@chainsafe/persistent-merkle-tree: npm notice 3.8kB lib/proof/treeOffset.js.map
@chainsafe/persistent-merkle-tree: npm notice 1.7kB lib/proof/util.d.ts
@chainsafe/persistent-merkle-tree: npm notice 5.4kB lib/proof/util.js
@chainsafe/persistent-merkle-tree: npm notice 4.4kB lib/proof/util.js.map
@chainsafe/persistent-merkle-tree: npm notice 940B lib/snapshot.d.ts
@chainsafe/persistent-merkle-tree: npm notice 3.2kB lib/snapshot.js
@chainsafe/persistent-merkle-tree: npm notice 2.4kB lib/snapshot.js.map
@chainsafe/persistent-merkle-tree: npm notice 596B lib/subtree.d.ts
@chainsafe/persistent-merkle-tree: npm notice 4.7kB lib/subtree.js
@chainsafe/persistent-merkle-tree: npm notice 3.9kB lib/subtree.js.map
@chainsafe/persistent-merkle-tree: npm notice 7.4kB lib/tree.d.ts
@chainsafe/persistent-merkle-tree: npm notice 27.6kB lib/tree.js
@chainsafe/persistent-merkle-tree: npm notice 16.3kB lib/tree.js.map
@chainsafe/persistent-merkle-tree: npm notice 61B lib/zeroHash.d.ts
@chainsafe/persistent-merkle-tree: npm notice 830B lib/zeroHash.js
@chainsafe/persistent-merkle-tree: npm notice 616B lib/zeroHash.js.map
@chainsafe/persistent-merkle-tree: npm notice 365B lib/zeroNode.d.ts
@chainsafe/persistent-merkle-tree: npm notice 915B lib/zeroNode.js
@chainsafe/persistent-merkle-tree: npm notice 604B lib/zeroNode.js.map
@chainsafe/persistent-merkle-tree: npm notice 1.4kB package.json
@chainsafe/persistent-merkle-tree: npm notice Tarball Details
@chainsafe/persistent-merkle-tree: npm notice name: @chainsafe/persistent-merkle-tree
@chainsafe/persistent-merkle-tree: npm notice version: 0.8.0
@chainsafe/persistent-merkle-tree: npm notice filename: chainsafe-persistent-merkle-tree-0.8.0.tgz
@chainsafe/persistent-merkle-tree: npm notice package size: 53.0 kB
@chainsafe/persistent-merkle-tree: npm notice unpacked size: 241.4 kB
@chainsafe/persistent-merkle-tree: npm notice shasum: 6cf13758d2abbdb8db1eed7fe11f0be735d00724
@chainsafe/persistent-merkle-tree: npm notice integrity: sha512-bL/zF2ODBcC9a[...]i26otFeiqudXA==
@chainsafe/persistent-merkle-tree: npm notice total files: 69
@chainsafe/persistent-merkle-tree: npm notice
@chainsafe/persistent-merkle-tree: npm warn This command requires you to be logged in to https://registry.yarnpkg.com (dry-run)
@chainsafe/persistent-merkle-tree: npm notice Publishing to https://registry.yarnpkg.com with tag latest and public access (dry-run)
@chainsafe/persistent-merkle-tree: + @chainsafe/persistent-merkle-tree@0.8.0
@chainsafe/ssz: > @chainsafe/ssz@0.18.0 prepublishOnly
@chainsafe/ssz: > yarn build
@chainsafe/ssz: $ tsc --project tsconfig.build.json
@chainsafe/ssz: npm notice
@chainsafe/ssz: npm notice 📦  @chainsafe/ssz@0.18.0
@chainsafe/ssz: npm notice Tarball Contents
@chainsafe/ssz: npm notice 580B LICENSE
@chainsafe/ssz: npm notice 7.5kB README.md
@chainsafe/ssz: npm notice 853B lib/branchNodeStruct.d.ts
@chainsafe/ssz: npm notice 1.5kB lib/branchNodeStruct.js
@chainsafe/ssz: npm notice 911B lib/branchNodeStruct.js.map
@chainsafe/ssz: npm notice 1.9kB lib/index.d.ts
@chainsafe/ssz: npm notice 7.7kB lib/index.js
@chainsafe/ssz: npm notice 1.4kB lib/index.js.map
@chainsafe/ssz: npm notice 1.2kB lib/interface.d.ts
@chainsafe/ssz: npm notice 264B lib/interface.js
@chainsafe/ssz: npm notice 122B lib/interface.js.map
@chainsafe/ssz: npm notice 4.4kB lib/type/abstract.d.ts
@chainsafe/ssz: npm notice 2.8kB lib/type/abstract.js
@chainsafe/ssz: npm notice 1.7kB lib/type/abstract.js.map
@chainsafe/ssz: npm notice 1.1kB lib/type/array.d.ts
@chainsafe/ssz: npm notice 4.3kB lib/type/array.js
@chainsafe/ssz: npm notice 3.0kB lib/type/array.js.map
@chainsafe/ssz: npm notice 3.4kB lib/type/arrayBasic.d.ts
@chainsafe/ssz: npm notice 7.6kB lib/type/arrayBasic.js
@chainsafe/ssz: npm notice 5.3kB lib/type/arrayBasic.js.map
@chainsafe/ssz: npm notice 2.6kB lib/type/arrayComposite.d.ts
@chainsafe/ssz: npm notice 10.1kB lib/type/arrayComposite.js
@chainsafe/ssz: npm notice 7.2kB lib/type/arrayComposite.js.map
@chainsafe/ssz: npm notice 1.4kB lib/type/basic.d.ts
@chainsafe/ssz: npm notice 1.7kB lib/type/basic.js
@chainsafe/ssz: npm notice 1.1kB lib/type/basic.js.map
@chainsafe/ssz: npm notice 1.5kB lib/type/bitArray.d.ts
@chainsafe/ssz: npm notice 3.4kB lib/type/bitArray.js
@chainsafe/ssz: npm notice 2.4kB lib/type/bitArray.js.map
@chainsafe/ssz: npm notice 1.9kB lib/type/bitList.d.ts
@chainsafe/ssz: npm notice 6.3kB lib/type/bitList.js
@chainsafe/ssz: npm notice 4.9kB lib/type/bitList.js.map
@chainsafe/ssz: npm notice 1.9kB lib/type/bitVector.d.ts
@chainsafe/ssz: npm notice 3.9kB lib/type/bitVector.js
@chainsafe/ssz: npm notice 2.8kB lib/type/bitVector.js.map
@chainsafe/ssz: npm notice 1.4kB lib/type/boolean.d.ts
@chainsafe/ssz: npm notice 2.7kB lib/type/boolean.js
@chainsafe/ssz: npm notice 2.4kB lib/type/boolean.js.map
@chainsafe/ssz: npm notice 1.9kB lib/type/byteArray.d.ts
@chainsafe/ssz: npm notice 4.1kB lib/type/byteArray.js
@chainsafe/ssz: npm notice 3.1kB lib/type/byteArray.js.map
@chainsafe/ssz: npm notice 1.6kB lib/type/byteList.d.ts
@chainsafe/ssz: npm notice 3.3kB lib/type/byteList.js
@chainsafe/ssz: npm notice 2.2kB lib/type/byteList.js.map
@chainsafe/ssz: npm notice 1.6kB lib/type/byteVector.d.ts
@chainsafe/ssz: npm notice 2.8kB lib/type/byteVector.js
@chainsafe/ssz: npm notice 1.8kB lib/type/byteVector.js.map
@chainsafe/ssz: npm notice 7.8kB lib/type/composite.d.ts
@chainsafe/ssz: npm notice 7.3kB lib/type/composite.js
@chainsafe/ssz: npm notice 4.5kB lib/type/composite.js.map
@chainsafe/ssz: npm notice 5.4kB lib/type/container.d.ts
@chainsafe/ssz: npm notice 17.8kB lib/type/container.js
@chainsafe/ssz: npm notice 14.3kB lib/type/container.js.map
@chainsafe/ssz: npm notice 1.9kB lib/type/containerNodeStruct.d.ts
@chainsafe/ssz: npm notice 5.2kB lib/type/containerNodeStruct.js
@chainsafe/ssz: npm notice 2.8kB lib/type/containerNodeStruct.js.map
@chainsafe/ssz: npm notice 3.1kB lib/type/listBasic.d.ts
@chainsafe/ssz: npm notice 5.1kB lib/type/listBasic.js
@chainsafe/ssz: npm notice 4.0kB lib/type/listBasic.js.map
@chainsafe/ssz: npm notice 3.2kB lib/type/listComposite.d.ts
@chainsafe/ssz: npm notice 5.1kB lib/type/listComposite.js
@chainsafe/ssz: npm notice 3.8kB lib/type/listComposite.js.map
@chainsafe/ssz: npm notice 797B lib/type/listUintNum64.d.ts
@chainsafe/ssz: npm notice 1.9kB lib/type/listUintNum64.js
@chainsafe/ssz: npm notice 1.2kB lib/type/listUintNum64.js.map
@chainsafe/ssz: npm notice 1.1kB lib/type/none.d.ts
@chainsafe/ssz: npm notice 1.6kB lib/type/none.js
@chainsafe/ssz: npm notice 1.2kB lib/type/none.js.map
@chainsafe/ssz: npm notice 3.4kB lib/type/optional.d.ts
@chainsafe/ssz: npm notice 7.9kB lib/type/optional.js
@chainsafe/ssz: npm notice 6.5kB lib/type/optional.js.map
@chainsafe/ssz: npm notice 1.4kB lib/type/partialListComposite.d.ts
@chainsafe/ssz: npm notice 2.9kB lib/type/partialListComposite.js
@chainsafe/ssz: npm notice 1.5kB lib/type/partialListComposite.js.map
@chainsafe/ssz: npm notice 5.6kB lib/type/profile.d.ts
@chainsafe/ssz: npm notice 22.3kB lib/type/profile.js
@chainsafe/ssz: npm notice 17.5kB lib/type/profile.js.map
@chainsafe/ssz: npm notice 6.0kB lib/type/stableContainer.d.ts
@chainsafe/ssz: npm notice 27.9kB lib/type/stableContainer.js
@chainsafe/ssz: npm notice 23.1kB lib/type/stableContainer.js.map
@chainsafe/ssz: npm notice 4.7kB lib/type/uint.d.ts
@chainsafe/ssz: npm notice 12.9kB lib/type/uint.js
@chainsafe/ssz: npm notice 10.2kB lib/type/uint.js.map
@chainsafe/ssz: npm notice 2.6kB lib/type/union.d.ts
@chainsafe/ssz: npm notice 7.0kB lib/type/union.js
@chainsafe/ssz: npm notice 6.4kB lib/type/union.js.map
@chainsafe/ssz: npm notice 2.8kB lib/type/vectorBasic.d.ts
@chainsafe/ssz: npm notice 4.1kB lib/type/vectorBasic.js
@chainsafe/ssz: npm notice 3.2kB lib/type/vectorBasic.js.map
@chainsafe/ssz: npm notice 3.0kB lib/type/vectorComposite.d.ts
@chainsafe/ssz: npm notice 4.1kB lib/type/vectorComposite.js
@chainsafe/ssz: npm notice 3.1kB lib/type/vectorComposite.js.map
@chainsafe/ssz: npm notice 303B lib/util/byteArray.d.ts
@chainsafe/ssz: npm notice 1.5kB lib/util/byteArray.js
@chainsafe/ssz: npm notice 1.6kB lib/util/byteArray.js.map
@chainsafe/ssz: npm notice 1.1kB lib/util/merkleize.d.ts
@chainsafe/ssz: npm notice 3.0kB lib/util/merkleize.js
@chainsafe/ssz: npm notice 2.5kB lib/util/merkleize.js.map
@chainsafe/ssz: npm notice 111B lib/util/named.d.ts
@chainsafe/ssz: npm notice 321B lib/util/named.js
@chainsafe/ssz: npm notice 252B lib/util/named.js.map
@chainsafe/ssz: npm notice 1.2kB lib/util/proof/treePartialToJsonPaths.d.ts
@chainsafe/ssz: npm notice 5.8kB lib/util/proof/treePartialToJsonPaths.js
@chainsafe/ssz: npm notice 4.1kB lib/util/proof/treePartialToJsonPaths.js.map
@chainsafe/ssz: npm notice 1.7kB lib/util/proof/treePostProcessFromProofNode.d.ts
@chainsafe/ssz: npm notice 3.9kB lib/util/proof/treePostProcessFromProofNode.js
@chainsafe/ssz: npm notice 2.2kB lib/util/proof/treePostProcessFromProofNode.js.map
@chainsafe/ssz: npm notice 204B lib/util/snapshot.d.ts
@chainsafe/ssz: npm notice 584B lib/util/snapshot.js
@chainsafe/ssz: npm notice 343B lib/util/snapshot.js.map
@chainsafe/ssz: npm notice 301B lib/util/strings.d.ts
@chainsafe/ssz: npm notice 1.2kB lib/util/strings.js
@chainsafe/ssz: npm notice 1.4kB lib/util/strings.js.map
@chainsafe/ssz: npm notice 517B lib/util/types.d.ts
@chainsafe/ssz: npm notice 110B lib/util/types.js
@chainsafe/ssz: npm notice 110B lib/util/types.js.map
@chainsafe/ssz: npm notice 334B lib/util/upgrade.d.ts
@chainsafe/ssz: npm notice 1.1kB lib/util/upgrade.js
@chainsafe/ssz: npm notice 754B lib/util/upgrade.js.map
@chainsafe/ssz: npm notice 2.7kB lib/value/bitArray.d.ts
@chainsafe/ssz: npm notice 9.0kB lib/value/bitArray.js
@chainsafe/ssz: npm notice 6.0kB lib/value/bitArray.js.map
@chainsafe/ssz: npm notice 2.0kB lib/view/abstract.d.ts
@chainsafe/ssz: npm notice 2.3kB lib/view/abstract.js
@chainsafe/ssz: npm notice 976B lib/view/abstract.js.map
@chainsafe/ssz: npm notice 2.5kB lib/view/arrayBasic.d.ts
@chainsafe/ssz: npm notice 3.5kB lib/view/arrayBasic.js
@chainsafe/ssz: npm notice 2.7kB lib/view/arrayBasic.js.map
@chainsafe/ssz: npm notice 2.5kB lib/view/arrayComposite.d.ts
@chainsafe/ssz: npm notice 3.6kB lib/view/arrayComposite.js
@chainsafe/ssz: npm notice 2.5kB lib/view/arrayComposite.js.map
@chainsafe/ssz: npm notice 1.3kB lib/view/bitArray.d.ts
@chainsafe/ssz: npm notice 1.7kB lib/view/bitArray.js
@chainsafe/ssz: npm notice 1.4kB lib/view/bitArray.js.map
@chainsafe/ssz: npm notice 2.0kB lib/view/container.d.ts
@chainsafe/ssz: npm notice 4.2kB lib/view/container.js
@chainsafe/ssz: npm notice 2.3kB lib/view/container.js.map
@chainsafe/ssz: npm notice 351B lib/view/containerNodeStruct.d.ts
@chainsafe/ssz: npm notice 4.3kB lib/view/containerNodeStruct.js
@chainsafe/ssz: npm notice 2.3kB lib/view/containerNodeStruct.js.map
@chainsafe/ssz: npm notice 922B lib/view/listBasic.d.ts
@chainsafe/ssz: npm notice 1.6kB lib/view/listBasic.js
@chainsafe/ssz: npm notice 1.1kB lib/view/listBasic.js.map
@chainsafe/ssz: npm notice 1.1kB lib/view/listComposite.d.ts
@chainsafe/ssz: npm notice 944B lib/view/listComposite.js
@chainsafe/ssz: npm notice 641B lib/view/listComposite.js.map
@chainsafe/ssz: npm notice 2.8kB lib/view/profile.d.ts
@chainsafe/ssz: npm notice 6.6kB lib/view/profile.js
@chainsafe/ssz: npm notice 3.7kB lib/view/profile.js.map
@chainsafe/ssz: npm notice 3.4kB lib/view/stableContainer.d.ts
@chainsafe/ssz: npm notice 7.8kB lib/view/stableContainer.js
@chainsafe/ssz: npm notice 4.8kB lib/view/stableContainer.js.map
@chainsafe/ssz: npm notice 3.3kB lib/viewDU/abstract.d.ts
@chainsafe/ssz: npm notice 3.7kB lib/viewDU/abstract.js
@chainsafe/ssz: npm notice 1.8kB lib/viewDU/abstract.js.map
@chainsafe/ssz: npm notice 1.9kB lib/viewDU/arrayBasic.d.ts
@chainsafe/ssz: npm notice 6.9kB lib/viewDU/arrayBasic.js
@chainsafe/ssz: npm notice 5.5kB lib/viewDU/arrayBasic.js.map
@chainsafe/ssz: npm notice 2.9kB lib/viewDU/arrayComposite.d.ts
@chainsafe/ssz: npm notice 8.9kB lib/viewDU/arrayComposite.js
@chainsafe/ssz: npm notice 6.1kB lib/viewDU/arrayComposite.js.map
@chainsafe/ssz: npm notice 1.6kB lib/viewDU/bitArray.d.ts
@chainsafe/ssz: npm notice 2.4kB lib/viewDU/bitArray.js
@chainsafe/ssz: npm notice 1.9kB lib/viewDU/bitArray.js.map
@chainsafe/ssz: npm notice 2.5kB lib/viewDU/container.d.ts
@chainsafe/ssz: npm notice 11.3kB lib/viewDU/container.js
@chainsafe/ssz: npm notice 7.4kB lib/viewDU/container.js.map
@chainsafe/ssz: npm notice 1.4kB lib/viewDU/containerNodeStruct.d.ts
@chainsafe/ssz: npm notice 4.5kB lib/viewDU/containerNodeStruct.js
@chainsafe/ssz: npm notice 2.8kB lib/viewDU/containerNodeStruct.js.map
@chainsafe/ssz: npm notice 1.2kB lib/viewDU/listBasic.d.ts
@chainsafe/ssz: npm notice 3.9kB lib/viewDU/listBasic.js
@chainsafe/ssz: npm notice 2.7kB lib/viewDU/listBasic.js.map
@chainsafe/ssz: npm notice 2.2kB lib/viewDU/listComposite.d.ts
@chainsafe/ssz: npm notice 5.3kB lib/viewDU/listComposite.js
@chainsafe/ssz: npm notice 3.2kB lib/viewDU/listComposite.js.map
@chainsafe/ssz: npm notice 3.0kB lib/viewDU/partialListComposite.d.ts
@chainsafe/ssz: npm notice 6.7kB lib/viewDU/partialListComposite.js
@chainsafe/ssz: npm notice 4.1kB lib/viewDU/partialListComposite.js.map
@chainsafe/ssz: npm notice 1.6kB lib/viewDU/profile.d.ts
@chainsafe/ssz: npm notice 9.6kB lib/viewDU/profile.js
@chainsafe/ssz: npm notice 6.1kB lib/viewDU/profile.js.map
@chainsafe/ssz: npm notice 1.6kB lib/viewDU/stableContainer.d.ts
@chainsafe/ssz: npm notice 9.6kB lib/viewDU/stableContainer.js
@chainsafe/ssz: npm notice 6.2kB lib/viewDU/stableContainer.js.map
@chainsafe/ssz: npm notice 44B lib/web.d.ts
@chainsafe/ssz: npm notice 1.2kB lib/web.js
@chainsafe/ssz: npm notice 262B lib/web.js.map
@chainsafe/ssz: npm notice 2.1kB package.json
@chainsafe/ssz: npm notice Tarball Details
@chainsafe/ssz: npm notice name: @chainsafe/ssz
@chainsafe/ssz: npm notice version: 0.18.0
@chainsafe/ssz: npm notice filename: chainsafe-ssz-0.18.0.tgz
@chainsafe/ssz: npm notice package size: 124.7 kB
@chainsafe/ssz: npm notice unpacked size: 708.3 kB
@chainsafe/ssz: npm notice shasum: 773d40df9dff3b6a2a4c6685d9797abceb9d36f7
@chainsafe/ssz: npm notice integrity: sha512-1ikTjk3JK6+fs[...]T4hvRzclu0IAA==
@chainsafe/ssz: npm notice total files: 189
@chainsafe/ssz: npm notice
@chainsafe/ssz: npm warn This command requires you to be logged in to https://registry.yarnpkg.com (dry-run)
@chainsafe/ssz: npm notice Publishing to https://registry.yarnpkg.com with tag latest and public access (dry-run)
@chainsafe/ssz: + @chainsafe/ssz@0.18.0
lerna success exec Executed command in 4 packages: "npm publish --access public --dry "
✨  Done in 3.43s.

Copy link

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: fc72aaf Previous: 790ef58 Ratio
digestTwoHashObjects 50023 times 48.203 ms/op 47.777 ms/op 1.01
digest64 50023 times 54.044 ms/op 53.130 ms/op 1.02
digest 50023 times 55.276 ms/op 54.859 ms/op 1.01
input length 32 1.2050 us/op 1.2450 us/op 0.97
input length 64 1.3810 us/op 1.3680 us/op 1.01
input length 128 2.2940 us/op 2.2960 us/op 1.00
input length 256 3.4040 us/op 3.4020 us/op 1.00
input length 512 5.6090 us/op 5.5900 us/op 1.00
input length 1024 10.819 us/op 10.748 us/op 1.01
digest 1000000 times 926.51 ms/op 883.62 ms/op 1.05
hashObjectToByteArray 50023 times 1.4297 ms/op 1.4307 ms/op 1.00
byteArrayToHashObject 50023 times 2.4950 ms/op 2.4867 ms/op 1.00
digest64 200092 times 221.28 ms/op 218.88 ms/op 1.01
hash 200092 times using batchHash4UintArray64s 247.92 ms/op 239.75 ms/op 1.03
digest64HashObjects 200092 times 196.46 ms/op 193.07 ms/op 1.02
hash 200092 times using batchHash4HashObjectInputs 206.01 ms/op 196.58 ms/op 1.05
getGindicesAtDepth 4.3100 us/op 4.2790 us/op 1.01
iterateAtDepth 7.6890 us/op 7.7160 us/op 1.00
getGindexBits 481.00 ns/op 464.00 ns/op 1.04
gindexIterator 1.0570 us/op 1.0730 us/op 0.99
HashComputationLevel.push then loop 25.606 ms/op 25.291 ms/op 1.01
HashComputation[] push then loop 50.000 ms/op 47.464 ms/op 1.05
hash 2 Uint8Array 500000 times - as-sha256 552.45 ms/op 541.99 ms/op 1.02
hashTwoObjects 500000 times - as-sha256 500.82 ms/op 504.35 ms/op 0.99
executeHashComputations - as-sha256 50.264 ms/op 46.179 ms/op 1.09
hash 2 Uint8Array 500000 times - noble 1.1141 s/op 1.0655 s/op 1.05
hashTwoObjects 500000 times - noble 1.6012 s/op 1.5056 s/op 1.06
executeHashComputations - noble 41.255 ms/op 42.677 ms/op 0.97
hash 2 Uint8Array 500000 times - hashtree 227.04 ms/op 219.62 ms/op 1.03
hashTwoObjects 500000 times - hashtree 214.95 ms/op 213.71 ms/op 1.01
executeHashComputations - hashtree 11.279 ms/op 11.181 ms/op 1.01
getHashComputations 2.7670 ms/op 3.0003 ms/op 0.92
executeHashComputations 11.809 ms/op 11.617 ms/op 1.02
get root 17.556 ms/op 17.737 ms/op 0.99
getNodeH() x7812.5 avg hindex 13.392 us/op 12.469 us/op 1.07
getNodeH() x7812.5 index 0 6.3060 us/op 6.2440 us/op 1.01
getNodeH() x7812.5 index 7 6.2500 us/op 6.2560 us/op 1.00
getNodeH() x7812.5 index 7 with key array 6.3100 us/op 6.2390 us/op 1.01
new LeafNode() x7812.5 14.667 us/op 14.738 us/op 1.00
getHashComputations 250000 nodes 19.721 ms/op 18.875 ms/op 1.04
batchHash 250000 nodes 90.280 ms/op 87.239 ms/op 1.03
get root 250000 nodes 120.89 ms/op 117.89 ms/op 1.03
getHashComputations 500000 nodes 27.203 ms/op 26.944 ms/op 1.01
batchHash 500000 nodes 163.21 ms/op 156.70 ms/op 1.04
get root 500000 nodes 238.91 ms/op 245.49 ms/op 0.97
getHashComputations 1000000 nodes 79.835 ms/op 75.864 ms/op 1.05
batchHash 1000000 nodes 334.73 ms/op 352.95 ms/op 0.95
get root 1000000 nodes 481.63 ms/op 469.62 ms/op 1.03
multiproof - depth 15, 1 requested leaves 9.3250 us/op 8.4080 us/op 1.11
tree offset multiproof - depth 15, 1 requested leaves 20.240 us/op 18.378 us/op 1.10
compact multiproof - depth 15, 1 requested leaves 3.7610 us/op 3.6890 us/op 1.02
multiproof - depth 15, 2 requested leaves 13.066 us/op 11.990 us/op 1.09
tree offset multiproof - depth 15, 2 requested leaves 23.313 us/op 21.655 us/op 1.08
compact multiproof - depth 15, 2 requested leaves 3.6800 us/op 3.6240 us/op 1.02
multiproof - depth 15, 3 requested leaves 18.762 us/op 16.748 us/op 1.12
tree offset multiproof - depth 15, 3 requested leaves 30.664 us/op 27.946 us/op 1.10
compact multiproof - depth 15, 3 requested leaves 4.4350 us/op 4.3050 us/op 1.03
multiproof - depth 15, 4 requested leaves 24.043 us/op 22.293 us/op 1.08
tree offset multiproof - depth 15, 4 requested leaves 38.452 us/op 34.492 us/op 1.11
compact multiproof - depth 15, 4 requested leaves 5.9550 us/op 5.1070 us/op 1.17
packedRootsBytesToLeafNodes bytes 4000 offset 0 2.0650 us/op 2.0540 us/op 1.01
packedRootsBytesToLeafNodes bytes 4000 offset 1 2.1050 us/op 2.0370 us/op 1.03
packedRootsBytesToLeafNodes bytes 4000 offset 2 1.9990 us/op 2.0220 us/op 0.99
packedRootsBytesToLeafNodes bytes 4000 offset 3 1.9990 us/op 2.0270 us/op 0.99
subtreeFillToContents depth 40 count 250000 44.993 ms/op 42.295 ms/op 1.06
setRoot - gindexBitstring 10.123 ms/op 9.7833 ms/op 1.03
setRoot - gindex 10.867 ms/op 9.5227 ms/op 1.14
getRoot - gindexBitstring 2.7875 ms/op 2.5018 ms/op 1.11
getRoot - gindex 3.3961 ms/op 3.1893 ms/op 1.06
getHashObject then setHashObject 11.723 ms/op 10.073 ms/op 1.16
setNodeWithFn 9.0552 ms/op 7.6710 ms/op 1.18
getNodeAtDepth depth 0 x100000 1.1142 ms/op 1.1144 ms/op 1.00
setNodeAtDepth depth 0 x100000 3.0391 ms/op 2.4368 ms/op 1.25
getNodesAtDepth depth 0 x100000 1.0528 ms/op 1.0523 ms/op 1.00
setNodesAtDepth depth 0 x100000 1.5209 ms/op 1.5205 ms/op 1.00
getNodeAtDepth depth 1 x100000 1.1778 ms/op 1.1875 ms/op 0.99
setNodeAtDepth depth 1 x100000 6.2295 ms/op 5.1848 ms/op 1.20
getNodesAtDepth depth 1 x100000 1.1763 ms/op 1.1769 ms/op 1.00
setNodesAtDepth depth 1 x100000 5.3495 ms/op 4.3761 ms/op 1.22
getNodeAtDepth depth 2 x100000 1.4551 ms/op 1.4576 ms/op 1.00
setNodeAtDepth depth 2 x100000 11.104 ms/op 8.9171 ms/op 1.25
getNodesAtDepth depth 2 x100000 21.397 ms/op 17.753 ms/op 1.21
setNodesAtDepth depth 2 x100000 17.910 ms/op 13.056 ms/op 1.37
tree.getNodesAtDepth - gindexes 11.155 ms/op 7.7281 ms/op 1.44
tree.getNodesAtDepth - push all nodes 2.5418 ms/op 1.8871 ms/op 1.35
tree.getNodesAtDepth - navigation 235.26 us/op 235.30 us/op 1.00
tree.setNodesAtDepth - indexes 491.82 us/op 425.72 us/op 1.16
set at depth 8 637.00 ns/op 469.00 ns/op 1.36
set at depth 16 951.00 ns/op 613.00 ns/op 1.55
set at depth 32 1.2430 us/op 947.00 ns/op 1.31
iterateNodesAtDepth 8 256 16.538 us/op 13.142 us/op 1.26
getNodesAtDepth 8 256 3.9390 us/op 3.3500 us/op 1.18
iterateNodesAtDepth 16 65536 4.8950 ms/op 4.1110 ms/op 1.19
getNodesAtDepth 16 65536 2.1701 ms/op 1.5360 ms/op 1.41
iterateNodesAtDepth 32 250000 17.476 ms/op 15.171 ms/op 1.15
getNodesAtDepth 32 250000 5.2099 ms/op 4.2763 ms/op 1.22
iterateNodesAtDepth 40 250000 18.673 ms/op 15.263 ms/op 1.22
getNodesAtDepth 40 250000 4.5038 ms/op 4.2912 ms/op 1.05
250000 validators root getter 122.54 ms/op 118.38 ms/op 1.04
250000 validators batchHash() 94.198 ms/op 77.248 ms/op 1.22
250000 validators hashComputations 16.761 ms/op 16.153 ms/op 1.04
bitlist bytes to struct (120,90) 1.0550 us/op 964.00 ns/op 1.09
bitlist bytes to tree (120,90) 4.0250 us/op 3.7340 us/op 1.08
bitlist bytes to struct (2048,2048) 1.5800 us/op 1.3900 us/op 1.14
bitlist bytes to tree (2048,2048) 4.9420 us/op 5.4780 us/op 0.90
ByteListType - deserialize 9.5970 ms/op 8.2170 ms/op 1.17
BasicListType - deserialize 19.042 ms/op 17.417 ms/op 1.09
ByteListType - serialize 10.065 ms/op 8.5669 ms/op 1.17
BasicListType - serialize 12.389 ms/op 11.851 ms/op 1.05
BasicListType - tree_convertToStruct 31.420 ms/op 28.172 ms/op 1.12
List[uint8, 68719476736] len 300000 ViewDU.getAll() + iterate 5.8186 ms/op 4.6509 ms/op 1.25
List[uint8, 68719476736] len 300000 ViewDU.get(i) 3.9938 ms/op 3.9986 ms/op 1.00
Array.push len 300000 empty Array - number 7.0163 ms/op 6.0449 ms/op 1.16
Array.set len 300000 from new Array - number 1.7499 ms/op 2.1904 ms/op 0.80
Array.set len 300000 - number 5.6946 ms/op 6.0443 ms/op 0.94
Uint8Array.set len 300000 381.25 us/op 370.88 us/op 1.03
Uint32Array.set len 300000 459.81 us/op 434.39 us/op 1.06
Container({a: uint8, b: uint8}) getViewDU x300000 45.992 ms/op 45.462 ms/op 1.01
ContainerNodeStruct({a: uint8, b: uint8}) getViewDU x300000 10.798 ms/op 10.782 ms/op 1.00
List(Container) len 300000 ViewDU.getAllReadonly() + iterate 201.66 ms/op 203.42 ms/op 0.99
List(Container) len 300000 ViewDU.getAllReadonlyValues() + iterate 241.00 ms/op 269.14 ms/op 0.90
List(Container) len 300000 ViewDU.get(i) 6.4367 ms/op 6.7468 ms/op 0.95
List(Container) len 300000 ViewDU.getReadonly(i) 6.5011 ms/op 6.3575 ms/op 1.02
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonly() + iterate 40.061 ms/op 38.757 ms/op 1.03
List(ContainerNodeStruct) len 300000 ViewDU.getAllReadonlyValues() + iterate 5.1530 ms/op 4.9379 ms/op 1.04
List(ContainerNodeStruct) len 300000 ViewDU.get(i) 6.1414 ms/op 6.0452 ms/op 1.02
List(ContainerNodeStruct) len 300000 ViewDU.getReadonly(i) 5.9462 ms/op 5.9320 ms/op 1.00
Array.push len 300000 empty Array - object 5.9155 ms/op 5.6511 ms/op 1.05
Array.set len 300000 from new Array - object 2.2288 ms/op 1.9820 ms/op 1.12
Array.set len 300000 - object 6.1571 ms/op 5.6960 ms/op 1.08
cachePermanentRootStruct no cache 5.3660 us/op 5.1770 us/op 1.04
cachePermanentRootStruct with cache 209.00 ns/op 210.00 ns/op 1.00
epochParticipation len 250000 rws 7813 2.2513 ms/op 2.1654 ms/op 1.04
BeaconState ViewDU hashTreeRoot() vc=200000 104.63 ms/op 104.12 ms/op 1.00
BeaconState ViewDU recursive hash - commit step vc=200000 4.5328 ms/op 4.1856 ms/op 1.08
BeaconState ViewDU validator tree creation vc=10000 36.426 ms/op 34.736 ms/op 1.05
BeaconState ViewDU batchHashTreeRoot vc=200000 94.620 ms/op 91.912 ms/op 1.03
BeaconState ViewDU hashTreeRoot - commit step vc=200000 83.045 ms/op 84.096 ms/op 0.99
BeaconState ViewDU hashTreeRoot - hash step vc=200000 15.050 ms/op 14.743 ms/op 1.02
deserialize Attestation - tree 4.4440 us/op 4.1220 us/op 1.08
deserialize Attestation - struct 2.1200 us/op 1.8010 us/op 1.18
deserialize SignedAggregateAndProof - tree 4.1100 us/op 3.7000 us/op 1.11
deserialize SignedAggregateAndProof - struct 3.3280 us/op 2.9040 us/op 1.15
deserialize SyncCommitteeMessage - tree 1.1740 us/op 1.0470 us/op 1.12
deserialize SyncCommitteeMessage - struct 1.2030 us/op 1.1130 us/op 1.08
deserialize SignedContributionAndProof - tree 2.2590 us/op 2.0210 us/op 1.12
deserialize SignedContributionAndProof - struct 2.6000 us/op 2.2380 us/op 1.16
deserialize SignedBeaconBlock - tree 217.26 us/op 213.38 us/op 1.02
deserialize SignedBeaconBlock - struct 129.34 us/op 115.93 us/op 1.12
BeaconState vc 300000 - deserialize tree 647.34 ms/op 617.20 ms/op 1.05
BeaconState vc 300000 - serialize tree 166.17 ms/op 161.53 ms/op 1.03
BeaconState.historicalRoots vc 300000 - deserialize tree 822.00 ns/op 723.00 ns/op 1.14
BeaconState.historicalRoots vc 300000 - serialize tree 675.00 ns/op 647.00 ns/op 1.04
BeaconState.validators vc 300000 - deserialize tree 617.32 ms/op 588.87 ms/op 1.05
BeaconState.validators vc 300000 - serialize tree 96.306 ms/op 105.06 ms/op 0.92
BeaconState.balances vc 300000 - deserialize tree 23.856 ms/op 23.957 ms/op 1.00
BeaconState.balances vc 300000 - serialize tree 3.5890 ms/op 3.8235 ms/op 0.94
BeaconState.previousEpochParticipation vc 300000 - deserialize tree 412.32 us/op 433.23 us/op 0.95
BeaconState.previousEpochParticipation vc 300000 - serialize tree 283.58 us/op 298.31 us/op 0.95
BeaconState.currentEpochParticipation vc 300000 - deserialize tree 403.21 us/op 444.34 us/op 0.91
BeaconState.currentEpochParticipation vc 300000 - serialize tree 282.65 us/op 297.25 us/op 0.95
BeaconState.inactivityScores vc 300000 - deserialize tree 17.032 ms/op 25.252 ms/op 0.67
BeaconState.inactivityScores vc 300000 - serialize tree 3.9954 ms/op 3.2101 ms/op 1.24
hashTreeRoot Attestation - struct 18.476 us/op 20.145 us/op 0.92
hashTreeRoot Attestation - tree 9.6000 us/op 9.2240 us/op 1.04
hashTreeRoot SignedAggregateAndProof - struct 27.345 us/op 24.981 us/op 1.09
hashTreeRoot SignedAggregateAndProof - tree 13.036 us/op 13.222 us/op 0.99
hashTreeRoot SyncCommitteeMessage - struct 5.8370 us/op 6.3470 us/op 0.92
hashTreeRoot SyncCommitteeMessage - tree 3.2400 us/op 3.2880 us/op 0.99
hashTreeRoot SignedContributionAndProof - struct 15.973 us/op 15.170 us/op 1.05
hashTreeRoot SignedContributionAndProof - tree 9.0370 us/op 9.0790 us/op 1.00
hashTreeRoot SignedBeaconBlock - struct 1.3729 ms/op 1.2715 ms/op 1.08
hashTreeRoot SignedBeaconBlock - tree 772.60 us/op 774.90 us/op 1.00
hashTreeRoot Validator - struct 8.3740 us/op 7.9820 us/op 1.05
hashTreeRoot Validator - tree 6.6030 us/op 6.4070 us/op 1.03
BeaconState vc 300000 - hashTreeRoot tree 2.1924 s/op 2.1224 s/op 1.03
BeaconState vc 300000 - batchHashTreeRoot tree 3.6348 s/op 3.3881 s/op 1.07
BeaconState.historicalRoots vc 300000 - hashTreeRoot tree 1.1180 us/op 1.0240 us/op 1.09
BeaconState.validators vc 300000 - hashTreeRoot tree 2.2667 s/op 2.1058 s/op 1.08
BeaconState.balances vc 300000 - hashTreeRoot tree 33.496 ms/op 33.338 ms/op 1.00
BeaconState.previousEpochParticipation vc 300000 - hashTreeRoot tree 4.3260 ms/op 4.3259 ms/op 1.00
BeaconState.currentEpochParticipation vc 300000 - hashTreeRoot tree 4.1676 ms/op 4.1209 ms/op 1.01
BeaconState.inactivityScores vc 300000 - hashTreeRoot tree 33.330 ms/op 33.298 ms/op 1.00
hash64 x18 9.7480 us/op 9.2800 us/op 1.05
hashTwoObjects x18 9.0870 us/op 8.6710 us/op 1.05
hash64 x1740 923.69 us/op 850.37 us/op 1.09
hashTwoObjects x1740 808.62 us/op 811.13 us/op 1.00
hash64 x2700000 1.4200 s/op 1.3141 s/op 1.08
hashTwoObjects x2700000 1.2711 s/op 1.2547 s/op 1.01
get_exitEpoch - ContainerType 443.00 ns/op 226.00 ns/op 1.96
get_exitEpoch - ContainerNodeStructType 494.00 ns/op 226.00 ns/op 2.19
set_exitEpoch - ContainerType 452.00 ns/op 261.00 ns/op 1.73
set_exitEpoch - ContainerNodeStructType 438.00 ns/op 238.00 ns/op 1.84
get_pubkey - ContainerType 2.1590 us/op 1.0080 us/op 2.14
get_pubkey - ContainerNodeStructType 464.00 ns/op 237.00 ns/op 1.96
hashTreeRoot - ContainerType 836.00 ns/op 396.00 ns/op 2.11
hashTreeRoot - ContainerNodeStructType 887.00 ns/op 427.00 ns/op 2.08
createProof - ContainerType 7.8860 us/op 3.9920 us/op 1.98
createProof - ContainerNodeStructType 42.041 us/op 20.157 us/op 2.09
serialize - ContainerType 2.8820 us/op 1.8370 us/op 1.57
serialize - ContainerNodeStructType 2.2650 us/op 1.3720 us/op 1.65
set_exitEpoch_and_hashTreeRoot - ContainerType 3.9740 us/op 2.4990 us/op 1.59
set_exitEpoch_and_hashTreeRoot - ContainerNodeStructType 10.115 us/op 6.9440 us/op 1.46
Array - for of 6.1430 us/op 5.5680 us/op 1.10
Array - for(;;) 5.8850 us/op 5.5550 us/op 1.06
basicListValue.readonlyValuesArray() 9.8262 ms/op 4.3108 ms/op 2.28
basicListValue.readonlyValuesArray() + loop all 10.297 ms/op 4.3602 ms/op 2.36
compositeListValue.readonlyValuesArray() 32.126 ms/op 30.326 ms/op 1.06
compositeListValue.readonlyValuesArray() + loop all 30.444 ms/op 29.644 ms/op 1.03
Number64UintType - get balances list 4.9763 ms/op 4.0264 ms/op 1.24
Number64UintType - set balances list 10.231 ms/op 9.9190 ms/op 1.03
Number64UintType - get and increase 10 then set 47.351 ms/op 38.773 ms/op 1.22
Number64UintType - increase 10 using applyDelta 18.817 ms/op 16.265 ms/op 1.16
Number64UintType - increase 10 using applyDeltaInBatch 17.863 ms/op 16.165 ms/op 1.11
tree_newTreeFromUint64Deltas 18.581 ms/op 17.794 ms/op 1.04
unsafeUint8ArrayToTree 35.548 ms/op 28.422 ms/op 1.25
bitLength(50) 278.00 ns/op 233.00 ns/op 1.19
bitLengthStr(50) 271.00 ns/op 215.00 ns/op 1.26
bitLength(8000) 279.00 ns/op 222.00 ns/op 1.26
bitLengthStr(8000) 298.00 ns/op 263.00 ns/op 1.13
bitLength(250000) 266.00 ns/op 223.00 ns/op 1.19
bitLengthStr(250000) 338.00 ns/op 299.00 ns/op 1.13
floor - Math.floor (53) 1.2392 ns/op 1.2369 ns/op 1.00
floor - << 0 (53) 1.2370 ns/op 1.2374 ns/op 1.00
floor - Math.floor (512) 1.2370 ns/op 1.2372 ns/op 1.00
floor - << 0 (512) 1.2535 ns/op 1.2377 ns/op 1.01
fnIf(0) 1.5455 ns/op 1.5462 ns/op 1.00
fnSwitch(0) 2.1703 ns/op 2.1645 ns/op 1.00
fnObj(0) 1.5492 ns/op 1.5478 ns/op 1.00
fnArr(0) 1.5484 ns/op 1.5457 ns/op 1.00
fnIf(4) 2.1643 ns/op 2.1731 ns/op 1.00
fnSwitch(4) 2.1685 ns/op 2.1648 ns/op 1.00
fnObj(4) 1.5481 ns/op 1.5677 ns/op 0.99
fnArr(4) 1.5465 ns/op 1.5471 ns/op 1.00
fnIf(9) 3.0963 ns/op 3.0960 ns/op 1.00
fnSwitch(9) 2.1652 ns/op 2.1669 ns/op 1.00
fnObj(9) 1.5534 ns/op 1.5517 ns/op 1.00
fnArr(9) 1.5554 ns/op 1.5530 ns/op 1.00
Container {a,b,vec} - as struct x100000 123.91 us/op 123.89 us/op 1.00
Container {a,b,vec} - as tree x100000 340.44 us/op 340.45 us/op 1.00
Container {a,vec,b} - as struct x100000 154.82 us/op 154.75 us/op 1.00
Container {a,vec,b} - as tree x100000 371.53 us/op 371.15 us/op 1.00
get 2 props x1000000 - rawObject 310.72 us/op 309.48 us/op 1.00
get 2 props x1000000 - proxy 72.781 ms/op 73.606 ms/op 0.99
get 2 props x1000000 - customObj 309.72 us/op 309.41 us/op 1.00
Simple object binary -> struct 703.00 ns/op 685.00 ns/op 1.03
Simple object binary -> tree_backed 1.3820 us/op 1.3090 us/op 1.06
Simple object struct -> tree_backed 1.9820 us/op 1.9490 us/op 1.02
Simple object tree_backed -> struct 1.9420 us/op 1.8450 us/op 1.05
Simple object struct -> binary 969.00 ns/op 980.00 ns/op 0.99
Simple object tree_backed -> binary 1.6440 us/op 1.5860 us/op 1.04
aggregationBits binary -> struct 623.00 ns/op 602.00 ns/op 1.03
aggregationBits binary -> tree_backed 2.5260 us/op 2.4630 us/op 1.03
aggregationBits struct -> tree_backed 2.9070 us/op 2.9060 us/op 1.00
aggregationBits tree_backed -> struct 1.2810 us/op 1.2310 us/op 1.04
aggregationBits struct -> binary 798.00 ns/op 811.00 ns/op 0.98
aggregationBits tree_backed -> binary 1.0960 us/op 1.0730 us/op 1.02
List(uint8) 100000 binary -> struct 1.5503 ms/op 1.4336 ms/op 1.08
List(uint8) 100000 binary -> tree_backed 96.537 us/op 85.855 us/op 1.12
List(uint8) 100000 struct -> tree_backed 1.1780 ms/op 1.0969 ms/op 1.07
List(uint8) 100000 tree_backed -> struct 1.1205 ms/op 1.0343 ms/op 1.08
List(uint8) 100000 struct -> binary 1.0009 ms/op 981.53 us/op 1.02
List(uint8) 100000 tree_backed -> binary 91.422 us/op 90.936 us/op 1.01
List(uint64Number) 100000 binary -> struct 1.2386 ms/op 1.1868 ms/op 1.04
List(uint64Number) 100000 binary -> tree_backed 2.6026 ms/op 3.2300 ms/op 0.81
List(uint64Number) 100000 struct -> tree_backed 4.4410 ms/op 4.5464 ms/op 0.98
List(uint64Number) 100000 tree_backed -> struct 2.2294 ms/op 2.2198 ms/op 1.00
List(uint64Number) 100000 struct -> binary 1.4005 ms/op 1.4427 ms/op 0.97
List(uint64Number) 100000 tree_backed -> binary 910.83 us/op 920.92 us/op 0.99
List(Uint64Bigint) 100000 binary -> struct 3.9392 ms/op 3.6225 ms/op 1.09
List(Uint64Bigint) 100000 binary -> tree_backed 3.8935 ms/op 3.2619 ms/op 1.19
List(Uint64Bigint) 100000 struct -> tree_backed 5.6333 ms/op 5.5044 ms/op 1.02
List(Uint64Bigint) 100000 tree_backed -> struct 4.7487 ms/op 4.4636 ms/op 1.06
List(Uint64Bigint) 100000 struct -> binary 2.0881 ms/op 2.0437 ms/op 1.02
List(Uint64Bigint) 100000 tree_backed -> binary 979.34 us/op 925.64 us/op 1.06
Vector(Root) 100000 binary -> struct 33.440 ms/op 29.758 ms/op 1.12
Vector(Root) 100000 binary -> tree_backed 35.682 ms/op 30.870 ms/op 1.16
Vector(Root) 100000 struct -> tree_backed 44.829 ms/op 38.943 ms/op 1.15
Vector(Root) 100000 tree_backed -> struct 51.315 ms/op 45.104 ms/op 1.14
Vector(Root) 100000 struct -> binary 2.7275 ms/op 2.5697 ms/op 1.06
Vector(Root) 100000 tree_backed -> binary 10.084 ms/op 9.1663 ms/op 1.10
List(Validator) 100000 binary -> struct 96.997 ms/op 103.20 ms/op 0.94
List(Validator) 100000 binary -> tree_backed 309.11 ms/op 263.55 ms/op 1.17
List(Validator) 100000 struct -> tree_backed 329.21 ms/op 299.20 ms/op 1.10
List(Validator) 100000 tree_backed -> struct 215.27 ms/op 199.12 ms/op 1.08
List(Validator) 100000 struct -> binary 27.128 ms/op 28.520 ms/op 0.95
List(Validator) 100000 tree_backed -> binary 110.11 ms/op 112.42 ms/op 0.98
List(Validator-NS) 100000 binary -> struct 107.70 ms/op 101.28 ms/op 1.06
List(Validator-NS) 100000 binary -> tree_backed 157.58 ms/op 145.04 ms/op 1.09
List(Validator-NS) 100000 struct -> tree_backed 197.18 ms/op 189.61 ms/op 1.04
List(Validator-NS) 100000 tree_backed -> struct 167.52 ms/op 165.36 ms/op 1.01
List(Validator-NS) 100000 struct -> binary 26.990 ms/op 28.117 ms/op 0.96
List(Validator-NS) 100000 tree_backed -> binary 31.590 ms/op 33.253 ms/op 0.95
get epochStatuses - MutableVector 142.72 us/op 118.21 us/op 1.21
get epochStatuses - ViewDU 203.00 us/op 202.15 us/op 1.00
set epochStatuses - ListTreeView 1.6979 ms/op 1.6342 ms/op 1.04
set epochStatuses - ListTreeView - set() 443.79 us/op 452.48 us/op 0.98
set epochStatuses - ListTreeView - commit() 607.99 us/op 569.45 us/op 1.07
bitstring 644.04 ns/op 645.92 ns/op 1.00
bit mask 13.898 ns/op 14.548 ns/op 0.96
struct - increase slot to 1000000 927.79 us/op 928.69 us/op 1.00
UintNumberType - increase slot to 1000000 21.359 ms/op 21.981 ms/op 0.97
UintBigintType - increase slot to 1000000 179.50 ms/op 159.07 ms/op 1.13
UintBigint8 x 100000 tree_deserialize 4.9893 ms/op 4.6496 ms/op 1.07
UintBigint8 x 100000 tree_serialize 1.2336 ms/op 1.0920 ms/op 1.13
UintBigint16 x 100000 tree_deserialize 4.6228 ms/op 4.6660 ms/op 0.99
UintBigint16 x 100000 tree_serialize 1.2693 ms/op 1.2051 ms/op 1.05
UintBigint32 x 100000 tree_deserialize 5.1507 ms/op 4.8979 ms/op 1.05
UintBigint32 x 100000 tree_serialize 1.2882 ms/op 1.2207 ms/op 1.06
UintBigint64 x 100000 tree_deserialize 5.7094 ms/op 5.1254 ms/op 1.11
UintBigint64 x 100000 tree_serialize 1.6852 ms/op 1.6014 ms/op 1.05
UintBigint8 x 100000 value_deserialize 433.14 us/op 433.08 us/op 1.00
UintBigint8 x 100000 value_serialize 712.56 us/op 656.90 us/op 1.08
UintBigint16 x 100000 value_deserialize 464.00 us/op 464.38 us/op 1.00
UintBigint16 x 100000 value_serialize 773.32 us/op 716.14 us/op 1.08
UintBigint32 x 100000 value_deserialize 433.80 us/op 435.37 us/op 1.00
UintBigint32 x 100000 value_serialize 755.18 us/op 700.52 us/op 1.08
UintBigint64 x 100000 value_deserialize 496.12 us/op 497.60 us/op 1.00
UintBigint64 x 100000 value_serialize 973.64 us/op 869.49 us/op 1.12
UintBigint8 x 100000 deserialize 3.3663 ms/op 2.9994 ms/op 1.12
UintBigint8 x 100000 serialize 1.6301 ms/op 1.4681 ms/op 1.11
UintBigint16 x 100000 deserialize 3.5230 ms/op 3.1076 ms/op 1.13
UintBigint16 x 100000 serialize 1.6452 ms/op 1.5609 ms/op 1.05
UintBigint32 x 100000 deserialize 3.4732 ms/op 3.1264 ms/op 1.11
UintBigint32 x 100000 serialize 2.9346 ms/op 2.8529 ms/op 1.03
UintBigint64 x 100000 deserialize 4.2495 ms/op 3.9150 ms/op 1.09
UintBigint64 x 100000 serialize 1.5716 ms/op 1.5579 ms/op 1.01
UintBigint128 x 100000 deserialize 6.0511 ms/op 5.5937 ms/op 1.08
UintBigint128 x 100000 serialize 15.442 ms/op 14.816 ms/op 1.04
UintBigint256 x 100000 deserialize 8.8644 ms/op 8.4520 ms/op 1.05
UintBigint256 x 100000 serialize 46.290 ms/op 43.747 ms/op 1.06
Slice from Uint8Array x25000 1.3803 ms/op 1.3309 ms/op 1.04
Slice from ArrayBuffer x25000 15.375 ms/op 15.713 ms/op 0.98
Slice from ArrayBuffer x25000 + new Uint8Array 16.736 ms/op 15.889 ms/op 1.05
Copy Uint8Array 100000 iterate 1.6470 ms/op 1.6518 ms/op 1.00
Copy Uint8Array 100000 slice 103.26 us/op 119.69 us/op 0.86
Copy Uint8Array 100000 Uint8Array.prototype.slice.call 102.97 us/op 119.50 us/op 0.86
Copy Buffer 100000 Uint8Array.prototype.slice.call 98.257 us/op 121.95 us/op 0.81
Copy Uint8Array 100000 slice + set 169.30 us/op 197.57 us/op 0.86
Copy Uint8Array 100000 subarray + set 95.395 us/op 119.33 us/op 0.80
Copy Uint8Array 100000 slice arrayBuffer 95.110 us/op 120.51 us/op 0.79
Uint64 deserialize 100000 - iterate Uint8Array 1.8185 ms/op 1.7730 ms/op 1.03
Uint64 deserialize 100000 - by Uint32A 1.8094 ms/op 1.8750 ms/op 0.97
Uint64 deserialize 100000 - by DataView.getUint32 x2 1.8471 ms/op 1.7683 ms/op 1.04
Uint64 deserialize 100000 - by DataView.getBigUint64 5.0135 ms/op 4.8041 ms/op 1.04
Uint64 deserialize 100000 - by byte 39.958 ms/op 39.875 ms/op 1.00

by benchmarkbot/action

@wemeetagain wemeetagain merged commit cf3e1f0 into master Oct 16, 2024
8 checks passed
@wemeetagain wemeetagain deleted the nh/ci-publish-fix branch October 16, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants