import test from 'ava' import { isEqual } from 'lodash-es' import { HyperLogLog } from '../src/index' import { errPct, saneError } from './util' // General test params - 5 million inserts of 1.5 million unique values const insertCount = 5000000 const distinctCount = 1500000 test('basic test', t => { const counter = new HyperLogLog() for (var i=0; i { const counter1 = new HyperLogLog() const counter2 = new HyperLogLog() const offset = Math.floor(distinctCount / 2) for (var i=0; i { const counter1 = new HyperLogLog() for (var i=0; i