Skip to content

Commit

Permalink
added benchmark time for roundtrip
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Feb 19, 2022
1 parent e4407aa commit a27e80f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/index.js
Expand Up @@ -43,7 +43,10 @@ else {
console.assert('epic' === message);
}
// 4 + 5 + 3
console.assert(await nmsp.sum(4, 5) === 12);
console.time('roundtrip');
const sum = await nmsp.sum(4, 5);
console.timeEnd('roundtrip');
console.assert(sum === 12);

const race = [
nmsp.wait(250),
Expand Down

0 comments on commit a27e80f

Please sign in to comment.