This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test start! | |
chunkWhile x 2,882,663 ops/sec ±0.71% (86 runs sampled) | |
chunkRec x 2,601,506 ops/sec ±0.91% (86 runs sampled) | |
chunkReduce x 2,993,484 ops/sec ±0.89% (85 runs sampled) | |
Fastest is chunkReduce |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { MerkleTree } = require("merkletreejs"); | |
const keccak256 = require("keccak256"); | |
// List of 7 public Ethereum addresses | |
let addresses = [ | |
"0x...", | |
"0x1..", | |
"0x2..", | |
"0x3..", | |
"0x4..", |
OlderNewer