xee
v0.0.1
Published
Event Emitter
Downloads
4
Readme
npm -g install xee
git clone https://github.com/Daeren/xee.git
Goals:
- Low memory usage;
- Maximum performance;
- Flexibility;
- Games.
> npm run benchmark
on() x 1: 103.341ms
on() x 1 + [data] x 1: 88.518ms
on() x 2: 117.172ms
on() x 2 + [data] x 1: 130.805ms
^|events|------------------
on() x 1: 103.220ms
on() x 1 + [data] x 1: 80.880ms
on() x 2: 103.022ms
on() x 2 + [data] x 1: 74.249ms
^|eventemitter3|------------------
on() x 1: 57.047ms
on() x 1 + [data] x 1: 53.256ms
on() x 2: 74.014ms
on() x 2 + [data] x 1: 66.940ms
^|xee|------------------
Packet type
| Name | Note | |-----------------------|------------------------------------------------------------------| | | - | | on(type, listener) | | | once(type, listener) | | | off([type, listener]) | | | | - | | emit(type[, ...args]) | | | | - | | listenerCount(type) | |
License
MIT