this post was submitted on 17 Aug 2023
8 points (100.0% liked)
Programming Challenges
234 readers
1 users here now
Welcome to the programming.dev challenge community!
Three challenges will be posted every week to complete
- Tuesday (Easy)
- Thursday (Medium)
- Saturday (Hard)
Easy challenges will give 1 point, medium will give 2, and hard will give 3. If you have the fastest time or use the least amount of characters you will get a bonus point (in ties everyone gets the bonus point)
Exact duplicate solutions are not allowed and will not give you any points. Submissions on a challenge will be open for a week.
A leaderboard will be posted every month showing the top people for that month
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
So is the idea to run our own solutions through it locally and post the results alongside our submissions?
Does it permit providing all the test cases as a long argument list to do it all in a single invocation, or is that cheating?
I find hyperfine very nice for casual benchmarks, FWIW.
People can use it to test their solution locally but for final results it will be ran by the people running the challenge (since test cases are hidden + so people can't fake a time)
You can enter as many test cases as you want into the txt file and it'll run through them all. You need to make your own though
Thanks!
Regarding my second question, I'm thinking for some languages there's a performance hit each time the program/function/runtime is launched, and that it's more performant to handle all tests with a single invocation that loops through them all.
But I think, and am looking to confirm, that that form is not allowed for these challenges, so we should only have each solution take a single test case.
I have it coded where it will check how long it takes for a basic program to launch and subtract that from the time
But yeah solutions should only take 1 test case at a time