L
-Lost
I have been watching code execution in various situations and I have
noticed something.
On the first test my example gave me obvious results. One method was
far faster than the other. However, upon executing the code again
(without refreshing the browser) the two tests were almost identical in
speed.
I am not sure if this has something to do specifically with JavaScript
(and/or its engine) or if this is just something browsers try to implement.
What type of "code execution caching" am I seeing?
noticed something.
On the first test my example gave me obvious results. One method was
far faster than the other. However, upon executing the code again
(without refreshing the browser) the two tests were almost identical in
speed.
I am not sure if this has something to do specifically with JavaScript
(and/or its engine) or if this is just something browsers try to implement.
What type of "code execution caching" am I seeing?