Skip to content

Instantly share code, notes, and snippets.

@niczky12
Last active December 8, 2022 22:31
Show Gist options
  • Save niczky12/678efdded86e11dd827be98c78fd9225 to your computer and use it in GitHub Desktop.
Save niczky12/678efdded86e11dd827be98c78fd9225 to your computer and use it in GitHub Desktop.
# first intstall the package inside the pacakge manager `]`
# add ThreadsX
using ThreadsX
# single core version
sum(ismultiple12, 1:N)
# ThreadsX version
ThreadsX.sum(ismultiple12, 1:N)
# they are the same
@test ThreadsX.sum(ismultiple12, 1:N) == sum(ismultiple12, 1:N)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment