The CPU challenge measures how much time it takes to calculate all the prime numbers under XXXX wihtout blocking the UI and reporting how many have been found so far.
The tests for this are under the folder cpu
.
After clonning the repo make sure to install:
- Latest version of node
- Visual Studio 2019
To run the Electron tests:
- Open a terminal into
cpu\electron\
. - Run
npm install
to install all dependencies - Run
npm run makemake
to create the packaged version of the application - Run
out\electron-win32-x64\electron.exe
- Press the "start" button
- Once the challenge is finished, the average should appear on the screen
To run the WPF tests:
- Open the solution
cput\wpf\wpf.sln
- Build the solution in Release mode
- Close Visual Studio
- Run
cpu\wpf\bin\Release\netcoreapp3.1\wpf.exe
- Press the "start" button
- Once the challenge is finished, the average should appear on the screen