This resource is no longer available
Javascript vs Javascript: Performance Penalty of Api Hooking

Although a critical practice, defending your code can be painful and resource intensive. Often, the cost of defense is too high, beckoning the question – is it worth it?
This white paper goes in-depth into the performance penalties associated with hooking browser JavaScript APIs to defend against JavaScript based threats.