benchmarks/queue.js
// 100000 functions enqueued in 798 ms
100000 functions enqueued in 798 ms
100000 functions enqueued in 798 ms
function enqueueAll() {
  for (let i = 0; i < count - 1; i++) {
    enqueue();
  }
  return enqueue();
  function enqueue() {
    return queue.enqueue(() => new Date());
  }
}
function enqueueAll ( ) { for ( let i = 0 ; i < count - 1 ; i ++ ) { enqueue ( ) ; } return enqueue ( ) ; function enqueue ( ) { return queue . enqueue ( ( ) => new Date ( ) ) ; } }
100000 functions enqueued in 798 ms
100000 functions enqueued in 798 ms