Hey,

this might not be too relevant to your project but since you said "web 
project" it might be.

I cannot speak for Go but Clojure is "fast enough". I went from Ruby to 
Clojure in one app and the difference was huge (150ms-ish -> 10ms-ish). I'm 
actually somewhat of a performance junkie and even got most Clojure numbers 
down to 2ms but NONE OF IT MATTERED! At the time of transition most of the 
frontend was still a large ball of jQuery-sphagetti and absolutely no 
proper HTTP caching config in the backend. While the initial request got 
faster we were still looking at average page load times of 3+ seconds. When 
I started rewriting all of the speed related stuff in the frontend the 
performance gains were huge, it more than halved the average page load time 
which had a far greater impact overall than the choice of programming 
language in the backend.

None of these techniques are specific to any programming language. What had 
the biggest impact for me was that in Clojure you are just writing 
Clojure(Script). You don't have to switch between 2 languages for the 
backend/frontend and get some of the most amazing tools (Closure Compiler) 
for "free". When it comes to raw speed Clojure and Go will probably produce 
rather similar numbers, but for me Clojure definitely has the better 
development story. (Disclaimer: I actually don't know anything about Go 
frontend story.) 

I don't care much for micro benchmarks in any language and you should not 
make decisions based on them. Look at the whole stack. The initial response 
time for a "hello world" request will never properly reflect your 
production app. In the end all that matters is your code, it won't be fast 
just because it is Go and not a JVM.

Just my 2 cents,
/thomas





On Sunday, September 13, 2015 at 9:44:48 PM UTC+2, Alan Thompson wrote:
>
> Hi,
>
> I'm about to start a new web project and they are thinking about using Go 
> (golang) instead of a JVM (preferably Clojure) based approach.  The idea is 
> "BARE METAL SPEED!!!", but I really think the network and DB will be the 
> bottlenecks, not Clojure vs Go.
>
> Is anybody out there aware of any speed comparisons using Clojure/Pedestal 
> and/or Go?  I'm thinking basic measurements like connections/sec, latency, 
> simultaneous users, etc.
>
> Thanks,
> Alan
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to