Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protype to compile julia scripts to exe #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

SimonDanisch
Copy link
Collaborator

Shaves off a few ms from the benchmarks:

# current way to benchmark
/BenchmarksGame.jl$ time julia nbody/nbody-fast.jl 50000000
-0.169075164
-0.169059907
real	0m2.639s
user	0m2.763s
sys	0m0.365s

#when compiled 
/BenchmarksGame.jl$ time ./build/nbody-fast 50000000
-0.169075164
-0.169059907
real	0m2.484s
user	0m2.563s
sys	0m0.398s

# Reference when calling 2 times  (first gets called on include)
julia> push!(ARGS, "100")
julia> include("nbody/nbody-fast.jl")
julia> @time NBody.perf_nbody(50000000)
-0.169075164
-0.169059907
  2.334110 seconds (28 allocations: 976 bytes)

Need to discuss how to properly integrate this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant