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

slow execution when shared linking #60

Open
jordisayol opened this issue Nov 21, 2013 · 0 comments
Open

slow execution when shared linking #60

jordisayol opened this issue Nov 21, 2013 · 0 comments

Comments

@jordisayol
Copy link

Runtime speed varies a lot for examples/concurrency/ThreadFiberGCStress.d depending is statically or dynamically linked.

Static:

$ $ dmd -I/usr/include/dmd -defaultlib=libphobos2.a -L-l:libtango-dmd.a -L-l:libbz2.a -L-l:libdl.so ThreadFiberGCStress.d
$ time ./ThreadFiberGCStress
...
real    0m0.086s
user    0m0.056s
sys     0m0.020s

Dynamic:

$ dmd -I/usr/include/dmd -defaultlib=libphobos2.so -L-l:libtango-dmd.so -L-l:libbz2.so -L-l:libdl.so ThreadFiberGCStress.d
$ time ./ThreadFiberGCStress
...
real    0m1.823s
user    0m1.588s
sys     0m0.032s
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

1 participant