Skip to content

Commit

Permalink
wip: blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
oneofthezombies committed Feb 11, 2024
1 parent 2a55264 commit 5c45e18
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function main() {
target.on("spawn", () => {
console.log(`Spawned server ${target.pid}`);
const start = Date.now();
const kill_tree = spawn("target/release/blocking", [target.pid], {
const kill_tree = spawn("target/release/tokio", [target.pid], {
stdio: "inherit",
});
kill_tree.on("exit", () => {
Expand Down Expand Up @@ -51,3 +51,11 @@ main();
// tokio
// Total elapsed time: 6285ms
// Mean elapsed time: 6.285ms

// macos
// blocking
// Total elapsed time: 4100ms
// Mean elapsed time: 4.1ms
// tokio
// Total elapsed time: 20227ms
// Mean elapsed time: 20.227ms

0 comments on commit 5c45e18

Please sign in to comment.