0.0.1 • Published 6 years ago

xee v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Codacy

npm -g install xee
git clone https://github.com/Daeren/xee.git

Goals:

  1. Low memory usage;
  2. Maximum performance;
  3. Flexibility;
  4. 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
NameNote
-
on(type, listener)
once(type, listener)
off(type, listener)
-
emit(type, ...args)
-
listenerCount(type)

License

MIT


@ Daeren @ Telegram