You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
351 B
18 lines
351 B
var test = require('tape') |
|
, fastFuture = require('./fast-future')() |
|
|
|
require('./benchmark')(10000) |
|
|
|
test('extra process.nextTick and then fastFuture', function (t) { |
|
var count = 0 |
|
, work = function () { |
|
count++ |
|
if (count < 10000) |
|
fastFuture(work) |
|
else |
|
t.end() |
|
|
|
} |
|
|
|
process.nextTick(work) |
|
})
|
|
|