3 ms·
But this is a contrived test, and looking for the fastest solution, so your arguments point to taking the fastest: the one with the least interference.
by pbh101 3y ago
But this is a contrived test, and looking for the fastest solution, so your arguments point to taking the fastest: the one with the least interference.
- bayindirh 3y agoYes, the one works the fastest in average case will be the fastest in the real world, and will be the one least affected by general noise present in the system. The test is very well designed, we may say.
- anonymoushn 3y agoThe one that happens to not be benchmarked at the same time as cron jobs will be the fastest in the real world...?
- bayindirh 3y agoNot necessarily. A good code with nice parallelization and efficient code path will always win. If the code is inefficient to begin with, having no cron jobs at the same time won't help.
- pbh101 3y agoI agree that this method will produce a better estimate of expected mean real world performance under certain load conditions, but still contend it just muddies the waters about which solution is in fact the fastest. And here is Andrei Alexandrscu arguing the same in 2012: https://forum.dlang.org/thread/mailman.73.1347916419.5162.digitalmars-d@puremagic.com?page=3 https://forum.dlang.org/thread/mailman.73.1347916419.5162.di...