Welcome to the Speed Up the Code Competition! 🚀 You’ve found our most exciting PowerShell challenge yet! 

Your mission: Take the slow, messy code provided and make it run as FAST as you can. The 3 fastest optimized solutions win a prize!


Contest Information 

  • Start: Monday 23/06/2025, at conference kickoff 
  • End: Wednesday 25/06/2024, 18:00 CEST 


How to compete: 

  1. Visit our GitHub challenge repo: 👉  https://github.com/BEPUG/Speed-up-the-code)
  2. Create a new branch.
  3. Have Github create you a codespace (We provided a lovley Devcontainer file just for it !)
  4. Optimize, refactor, and tune the provided code—make it finish *as quickly as possible!*
  5. When you’re ready, email your solution branch/repo URL or a copy of your PowerShell code to Bepug@bepug.be .
  6. Include Your full name - Your phone number (so we can contact you if you can’t attend the prize ceremony, as per GDPR these will be deleted after PSCONF!)

Rules:

  • To measure the runtime of the script the script will be ran in a freshly deployed devcontainer with the command Measure-Command . All codes will be tested with the same identical image that is provided in the github repo. In order to eliminate any flukes the code will be ran 3 times and only the fastest time will be taken in consideration.
  • PowerShell version 7.4.2 will be used
  • Time will be round of to a tenth of a millisecond. (ex run time 7,09 Seconds -> rounded off to 7,1 seconds)
  • You may:
    • Refactor, rewrite, or heavily rework the code /
    • Use built-in modules, .NET methods, or parallelism.
    • Use `Start-Sleep` or artificial delays if you think your to good!
  • You may NOT
    • Adjust the field layout or line amount of 50000 Lines
    • Use third-party binaries or non-PowerShell means. (.NET libraries are part of PowerShell and can be used)
    • Adjust the required business output and reports.
    • Change the devcontainer configuration
    • Remove the randomisation , the file is meant to be used as a test for other scripts/software and needs to have randomised inputs.
  • Top 3 fastest solutions win!
  • In the case of a tie, we’ll use `Get-Random` to determine the winner.

Good luck and have fun!