fast-speed-test
Version:
Uses Netflix's Fast.com infrastructure to measure network speed
12 lines (11 loc) • 455 B
TypeScript
/**
* Uses 3 connections to netflix cdns, counting bytes transferred.
* Uses 0.2s time slices, averaged w/ sma5.
* Resolves when the first video finished downloading.
* Returns Speed in bytes per second.
*
* @export
* @param {number} [timeLimitInSeconds=60] time limit for the speed test (60 sec by default)
* @returns {Promise<number>} Speed in bytes per second
*/
export default function getSpeed(timeLimitInSeconds?: number): Promise<number>;