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

Hello world is slow ... #4452

Closed
jacksilver045 opened this issue Oct 8, 2013 · 3 comments
Closed

Hello world is slow ... #4452

jacksilver045 opened this issue Oct 8, 2013 · 3 comments

Comments

@jacksilver045
Copy link

Why does the following simple script :

#  cat test.jl 
println("Hello World")

take so much time to execute ?

# time julia test.jl
Hello World

real    0m2.582s
user    0m2.537s
sys     0m0.040s

I am using a fresh install from git (cloned today) on ArchLinux.

[pao: formatting]

@quinnj
Copy link
Member

quinnj commented Oct 8, 2013

Dup of #260

@ivarne
Copy link
Member

ivarne commented Oct 8, 2013

Because Julia currently have to compile the standard library on startup. That takes 2-4 seconds, but it is is constant so a more complex program would not have the same proportionate overhead. It is annoying while developing, but as I understand it the core developers has design considerations and runtime speedups higher on the task list for now.

@Keno
Copy link
Member

Keno commented Oct 8, 2013

This was referenced Jul 13, 2018
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

No branches or pull requests

5 participants