I've become convinced that upgrading my Mac to the latest OS (Sierra) has
slowed down Julia in some areas. (One test showed a fourfold speed
reduction compared with the same test running on the last release.) But to
get some real-world numbers and eliminate some obvious explanations I'm
Ya, it does seem to reproduce. Maybe the first step to investigating is to
write a super-minimal Julia server that does nothing but listens for TCP
connections, spawn a task which sends a fixed response on accepted connection,
and then closes the socket.If that still has this problem, then it
Can you include the code you’re using for the HTTP server and for testing
(maybe link to a gist if the code is larger than email-appropriate)?
Also make sure you’ve checked out the performance tips FAQ:
http://docs.julialang.org/en/release-0.3/manual/performance-tips/
My code is really simple:
using HttpServer
gc_disable()
const Z = HELLO WORLD
http = HttpHandler() do req::Request, res::Response
Response(Z)
end
server = Server( http )
run( server, 8000 )
And the testing is
ab -n2 http://127.0.0.1:8000/asdfasd
I also had to patch the
I've got similar results some time ago [1], but stopped investigating
because of lack of time. If you could find out the reason why different
tools result in different outcomes, it would really push Julia web stack to
production level.
[1]: https://github.com/JuliaWeb/HttpServer.jl/issues/48
Hi there!
I was trying to do some basic benchmark of Julia's HttpServer, however I
have some strange behaviour.
When I ask ab to do 20k requests in a single thread, at around request #16k
Julia starts accepting connections quite slowly (around 20s). If I request
two threads, then ab fails with
Hi
I am looking to benchmark some standard parallel algorithms using Julia. I
am thinking of comparing its performance with MPI and other parallel
programming paradigms. Although I couldn't find much on any existing
benchmarks, I was looking forward to any benchmarks that may have been done