Skip to content

Releases: d4rkr00t/percentile

v1.6.0

18 Nov 22:54
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.5.0...v1.6.0

v1.5.0

21 Jul 08:04
Compare
Choose a tag to compare

Features

  • Support typed arrays in TypeScript type definitions.

v1.4.0

25 Jun 07:11
Compare
Choose a tag to compare

Features

v1.3.0

24 Apr 07:28
Compare
Choose a tag to compare

Features

Support an array of percentiles (179a027), closes #101

Add support for calcualting and array of percentiles in 1 pass, example:

const percentile = require("percentile");
const result = percentile(
  [70, 80, 90], // calculates 70p, 80p and 90p in one pass
  [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
);
console.log(result); // [7, 8, 9]

It adds a little bit of overhead because, now percentile needs to convert a percentile argument to an array and apply validation and calculation to this array of percentiles, but overall performance is still in a ball park of original implementation:

Small Array – 10 items [old] x 3,024,685 ops/sec ±0.65% (94 runs sampled)
Small Array – 10 items [new] x 2,941,058 ops/sec ±1.04% (95 runs sampled)
Fastest is Small Array – 10 items [old]

Big array 10k values [old] x 5,482 ops/sec ±0.58% (92 runs sampled)
Big array 10k values [new] x 5,381 ops/sec ±0.69% (91 runs sampled)
Fastest is Big array 10k values [old]

Big array 100k values [old] x 395 ops/sec ±1.00% (91 runs sampled)
Big array 100k values [new] x 406 ops/sec ±0.93% (88 runs sampled)
Fastest is Big array 100k values [new]

v1.2.3

15 Mar 03:20
Compare
Choose a tag to compare

Bug Fixes

v1.2.2

24 Jun 08:38
Compare
Choose a tag to compare

Bug Fixes

  • Passed array should not be sorted (499ab17), closes #98

v1.2.0

27 Dec 02:53
Compare
Choose a tag to compare

<a name"1.2.0">

1.2.0 (2016-12-27)

Features