Performance - Gozala/method GitHub Wiki
Method library is designed as a replacement for JS built-in method based dispatch. Goal is to be able to use in a very hot code paths too (think node's EventEmitter for example) so it's performance should be comparable to regular method dispatch.
Benchmarking data has being used to guide the implementation design. For example plain property lookup is at least 50% faster than any other possible option, there for polymorphic function implementations are stored as methods with unique names on the type's prototype objects.
It also turned out that supporting builtins without extending their prototypes is insignificantly slower, which in a future may be implemented as it would also ease interactions with HOST objects.