keySize=16 valueSize=0
@ronomon/hash-table: Inserting 4000000 elements...
@ronomon/hash-table: 783ms
new Set(): Inserting 4000000 elements...
new Set(): 3695ms
...that the key and value sizes are in bytes (seen only once one reads the api). So, almost 5 times faster set insert, congratulations. The major advantage is, of course, the chance to less stress the GC when the data sets are big.> the 100ns to 200ns cost of calling into C from Javascript using N-API (or V8)
Do you (or some reader here?) maybe know what's the current cost of calling into WebAssembly, compared to that "calling C" cost?