I did some profiling and found a way to speed up JavaScript that helps us on iBench.
Created attachment 3369 [details] patch inlines and simplifies some things, removes some unused functions
Sped up iBench JavaScript by 0.5% in one test I did. Probably does more in conjunction with other speedups; I tested them separately.