Timeline for var functionName = function() {} vs function functionName() {}
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 21, 2020 at 14:54 | comment | added | Ronny Sherer | The virtual environment is on a server which might do some other stuff. I did some tests. The results are never exactly the same. | |
Oct 18, 2020 at 13:09 | comment | added | Panos Kalatzantonakis | @RonnySherer js perf creates a virtual environment especially to account for processes with those small differences. It is not running on my computer. It runs only that. When something is so small maybe someone should not give a damn. BUT never the less I count it correctly and I report it. If someone wants to use it inside a loop with billions of iterations then he should pick the function with the best performance. | |
Oct 17, 2020 at 21:30 | comment | added | Ronny Sherer | Every measurement has disturbances. The computer it not in the same state and this is not the only process running on the computer. When the difference is so small, it means that you cannot rely on it and it is virtually the same. Try to run the sane test 10 times one after the other and you'll see that the numbers are different. Pretty close, but not the same. | |
Oct 14, 2020 at 14:44 | comment | added | Panos Kalatzantonakis | @RonnySherer, are you familiar with jsperf? Tests were made after running more than 10 million times! | |
Oct 14, 2020 at 12:59 | comment | added | Ronny Sherer | The results differences are too small to be considered as a difference. If you'll run the test 100 times, you will get 100 results. | |
Sep 28, 2017 at 5:13 | history | edited | Panos Kalatzantonakis | CC BY-SA 3.0 |
edited body
|
Sep 28, 2017 at 5:04 | history | edited | Panos Kalatzantonakis | CC BY-SA 3.0 |
added 412 characters in body
|
Sep 28, 2017 at 4:43 | history | edited | Panos Kalatzantonakis | CC BY-SA 3.0 |
added 13 characters in body
|
Sep 28, 2017 at 4:34 | history | answered | Panos Kalatzantonakis | CC BY-SA 3.0 |