Benchmarking Go and Python Web servers
ziutek.github.com
ziutek.github.com
That is pretty much what I would expect from a compiled vs non-compiled language.
Couldn't Google fast track development? Or is it that it was built for internal purposes and it's not a priority to mainstream it?
287.36% runtime.mach_semaphore_wait
80.46% syscall.Syscall6
2.30% runtime.cas
2.30% runtime.memmove
1.15% MCentral_Free
1.15% MHeap_FreeLocked
1.15% bytes.*Buffer·WriteString
1.15% crypto/sha256.Init·
1.15% hash_remove
1.15% runtime.MCache_Alloc
1.15% runtime.MHeap_LookupMaybe
1.15% runtime.breakpoint
1.15% runtime.mach_semaphore_signal
1.15% runtime.mallocgc
1.15% runtime.xadd
1.15% syscall.Syscall
It probably shows that the test is measuring goroutines scheduler and how long it takes for Go to do a syscall.Next in line, is an Nginx in-module application faster than Rails on WEBRick? We're not sure yet, but we're going to tell you. Stay tuned.
https://github.com/traviscline/web_bench
(notice: I realize this is a highly synthetic benchmark and reading siege results like this is not good benchmarking)
edit: here are numbers from a few runs: gvent,http.go 361.43,386.68 354.69,397.15 388.96,377.69 424.81,430.34
http.go averaged 26% utilization gvent.py averaged 15% utilization
I'm embarrassed posting this because of how grossly unscientific this is..
Not quite as fast as I thought initially but likely faster than the other python competitors.
And yet, I submitted it anyway. I saw a link, found it interesting, and as such posted it. I'm a little surprised it made it to the front page, but if there were more interesting content available, I assume it wouldn't have.
A year back HN front page was all I needed for my daily dose of interesting tech stories(I hate Twitter). Now really good content is buried away in later pages most of the time.
If possible, try it with PyPy. If it works at all (ie, no C dependencies), it should be significantly faster than CPython and may use less memory.