Effect CommunityEC
Effect Community3y ago
63 replies
Joshua

Comparing Effect.runSync to Non-Effect Promise Counter

I decided to do a simple test of effect, for a simple
Effect.runSync(Effect.sync(() => "some string"))
takes about 1.8 - 2.17 ms. While the non effect promise counter
await (() => Promise.resolve("some string"))()
part takes about 0.019 - 0.021 ms
Was this page helpful?