loopsCount

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.perf

This function calculate how mane loops are executed in a certain timeframe (ms). This is usefull to estimate the computer speed on which this code is running…

Params

  1. timeframe100Number

    The timeframe to use for calculation

Return

  1. -Number

    The count of loops executed in the passed timeframe

Example

import { loopsCount } from '@blackbyte/sugar/perf';
loopsCount(); // 122003

Todo

  • testsnormal