Skip to main content
18 events
when toggle format what by license comment
Apr 2, 2023 at 17:22 comment added PM 2Ring However, I certainly agree that benchmarking JavaScript is a fairly pointless exercise because of the extreme variability of the environments where the code runs.
Apr 2, 2023 at 17:20 comment added PM 2Ring Yes, bad benchmarking code is bad, and it can be misleading if you aren't actually timing the parts of the algorithm that you think you're timing. OTOH, a good benchmarking answer shows how to do it properly, explains what is actually being timed, the reasons for the performance of the different algos, with various data sets. Etc. And it provides benchmarking code that can be easily extended if new solutions arise. Disclosure: I've written quite a few benchmarking answers, but I almost always add a new solution (or several), and I encourage readers to run the code on their own machine.
Apr 2, 2023 at 16:44 history edited VLAZ CC BY-SA 4.0
typos
Apr 2, 2023 at 2:05 comment added Karl Knechtel "If you have a "meta-ansswer" you cannot use it" While I'm not a fan of duplicate answers generally, I feel the need to push back on this. My experience has been that benchmarking answers consistently show the code that they're benchmarking (copied from the other answers and credited appropriately). That said, I think this answer makes many other good points.
Apr 2, 2023 at 0:35 comment added skomisa I'm puzzled that your arguments are getting a cool reception, and doubly so since the benchmark answer is ignoring the question that was asked ("How would one interweave them efficiently...?"). A code solution is obviously required, rather than a benchmark. From the SO documentation for "How do I write a good answer?", with my emphasis added: "Read the question carefully What is the question asking for? Make sure your answer provides that – or at least a viable alternative". The benchmark answer should deleted as it's clearly NAA.
Apr 1, 2023 at 19:25 comment added VLAZ @CertainPerformance it's a failure of the Q&A model, as I said. And in the past, I've also remarked that such an answer "is ultimately leveraging the Q&A mechanism (the A part of it) to artificially supply a feature the Q&A mechanism needs.". Because, let's really think about Q&A for a moment. You have a question and any of the answers should be sufficient to answer it. Some might be better or worse but it should be possible to pick one and use it. If you have a "meta-ansswer" you cannot use it. That's not a proper Q&A format.
Apr 1, 2023 at 19:20 comment added CertainPerformance Sure, answers composed of benchmarking may well be wrong or useless, and that doesn't qualify them for deletion. But answers composed of benchmarking already existing answers when the question wasn't asking for benchmarking sounds like NAA to me - it's (bulk) commentary on other answers, rather than an answer in itself.
Apr 1, 2023 at 18:59 history edited VLAZ CC BY-SA 4.0
added 1476 characters in body
Apr 1, 2023 at 17:31 comment added VLAZ @MisterMiyagi how do we handle answers that are ill equipped to provide useful knowledge? I guess we just leave them be and accrue upvotes. Let the visitors sort it out. And maybe remove them when our failure to maintain a useful repository of knowledge has real life consequences. We can't do anything about them. I mean, we could delete them but...anything with score over 3 is basically undeletable, so no. Judging by the votes, I guess my arguments for the uselessness failed to land. We usually remove useless content. Alas.
Apr 1, 2023 at 17:00 comment added user5349916 So... how should we handle answers that don't answer the question, but evaluate the time complexity of other answers? This meta-answer seems to say these answers are bad, but how should we actually handle them?
Apr 1, 2023 at 16:16 comment added VLAZ "No u" now, is it? If you have something to argue, I'd advise you to write an answer. If you do believe in votes, then it feels a lot like you're shying away from the voting system while trying to make your point about the voting system being preferable.
Apr 1, 2023 at 16:14 comment added President James K. Polk In my experience it does.
Apr 1, 2023 at 16:13 comment added VLAZ "Let the upvote/downvote mechanism do its job." it doesn't
Apr 1, 2023 at 16:13 comment added President James K. Polk Right, therefore a categorical administrative determination on how to deal with them would be wrong. Let the upvote/downvote mechanism do its job.
Apr 1, 2023 at 16:10 comment added VLAZ I do also want to point out that your example isn't representative of the whole of SO. Thus "not everything is Javascript" goes both ways. Let's assume that the benchmark you showed me is correct. I haven't checked, I can't be bothered. But even if it is, the counter to your statement is simple: not every benchmark is that benchmark. Anecdotal examples aplenty. You've not actually shown they count for much. Or what should we do in general across SO. I've put forward arguments that are wide reaching, you've put forward a single example that I've even argued against.
Apr 1, 2023 at 16:07 comment added VLAZ Last update to that answer is in 2017. By the Community bot. The last answer to that question is from 2022. There are 13 answers posted after the last update to the answer benchmarking all solutions. Note, I didn't check when the last actual update to the benchmarks is because I don't care. I can tell you that right now this answer is at least six years out of date and not showing a complete picture. How useful is it to have outdated and unrepresentative information? If it served such a good job, why didn't anybody update it for six years? I do believe you failed to show its importance.
Apr 1, 2023 at 15:17 comment added President James K. Polk Ok, but not everything is Javascript and I have seen very useful benchmarking answers for other languages. For example, although perhaps an esoteric one, python code to generate a list of the first N primes is useful in number theoretic analysis and experiments. The benchmarking "meta"-answers that are given I and many others have found very useful and the answerers typically put in a lot of work. Like any other answer good benchmarking answers get upvoted and bad ones get downvoted. And they're still relevant a decade later.
Apr 1, 2023 at 14:48 history answered VLAZ CC BY-SA 4.0