Ви дійсно хочете використовувати Object.create, що є успадкуванням прототипу.
Різниця в продуктивності насправді значна.
Я зробив еталон для спроби зрозуміти це в різних типах ситуації.
Я не пам’ятаю цифр на маківці, але це було насправді великими.
------------------------------------------------------------------------------------
You really want to use Object.create, which is prototype inheritance.
The performance difference is really significant.
I did the benchmark for trying to understand this under various types of situation.
I do not remember the numbers on the top my head, but it was really large.