developit / mitt

🥊 Tiny 200 byte functional event emitter / pubsub.
https://npm.im/mitt
MIT License
10.83k stars 439 forks source link

[Question] Is there a performance benchmark compare with other eventemitter library? #154

Open EscapeB opened 2 years ago

EscapeB commented 2 years ago

I'm looking for an eventemitter library for our cross platform framework, which will be run in pure V8 JS engine (Not NodeJS or browser environment).

I prefer to use mitt because of its small, but I am a little concern about its performance because event may be emit million times in out framework.

Is there a benchmark for mitt? Or performance comparison with other eventemitter library such as eventemitter3、event、……

developit commented 2 years ago

Not that I know of. It would be relatively easy to set up though.

Fucntion commented 2 years ago

性能有问题。