Benchmarking on macbooks is often an exercise in testing the mediocre default configuration of the network stack, not your language. My macbook pro gets 4k rps with apache, node, go, and nginx. YMMV and all that, but I'm always wary.
I did this test a while ago on my laptop running Linux Mint. With higher concurrency levels (IIRC, about 1k simultaneous connections), I saw just the opposite, with cracks starting to show and Go performing worse than Node, although the V8 engine did consume more memory.
check the memory usage. When I did the comparison, the node server's memory climbed steadily up to about 50MB, while the Go server's memory stabilized at about 17MB.
fyi, in the replies of the original post someone got totally different results. with v0.6 it was significantly faster than Go and with 0.8 was on the same level
Unless he went out of his way to use x86, I can't imagine he's not using x86-64. x86-64 has traditionally been the arch that Go has gotten the most attention on anyway, it is what everyone uses these days.
I read this back in college, ages ago. Still relevant - not quite up there with K&R as far as technical writing goes, but it does indeed do the job of making a theoretical problem into an understandable & exploitable one, and for that reason "Smashing the Stack For Fun And Profit" is a phrase that has a special place in my heart.
> 1) Every artist who's made an online release of their content in a desirable format (without DRM, etc) has seen sales in proportion to their general popularity. Every single one, without even one exception.
That's not true. Radiohead pulled the plug on their In Rainbows experiment after only 3 months in 2007. They decided to go the more traditional route instead. Why would they (an incredibly popular band) do something like that if sales were truly in proportion to their popularity?
In October 2008, a report from Warner Chappell revealed that although most people paid nothing for the download, pre-release sales were more profitable than the total money from sales of Hail to the Thief. The report also stated that the discbox sold 100,000 copies.
And yet they haven't repeated this with subsequent releases. Why not? I really don't know. My guess is that they think this was a one-time gimmick and not a repeatable model.
Do you have a link for this "pulled the plug" assertion? It's my understanding that Radiohead always intended to release the CD in stores all along because "some fans would not have the technological means to obtain the new material." according to Wikipedia.
Yes, they do still believe in traditional distribution to a point (after giving it away for three months), but I think it's unfair to characterise it as a failure.
He's suggesting that because Radiohead eventually took down the page, the experiment was a failure. He's conveniently ignoring the fact that their online opt-in pay system generated more revenue than their last published album before they dismantled it, demonstrating that demand/revenue in the new model exceeded the old.
Radiohead tried a similar experiment to Louis C.K.'s back in 2007 with their album In Rainbows. But after 3 months they decided that the online sales weren't working out and that they should pursue the more traditional avenue of selling CD's out of retail stores. Two similar stories with vastly different outcomes.
I say that it's similar because both are well established acts in the entertainment industry, releasing their work unencumbered by DRM (or other encryption) via a website. As I see it, the main differences are (in very general terms):
- Radiohead said that fans could pay whatever they wanted for the album, Louis C.K. charged $5
- Radiohead are a band, Louis C.K. is a comedian
- Radiohead tried it in 2007, Louis C.K. in 2011
Of these 3, the most significant difference that I see is that Radiohead didn't set any price tag on their work while Louis C.K did. By some estimates more than half of the people who downloaded In Rainbows did so without paying a penny for it. Louis C.K., on the other hand, charged $5 right up front. The price tag was so low that it was a pretty easy decision for most who bought it, but it was there nonetheless.
I think that speaks volumes about setting customer's expectations appropriately, an area in which the software industry traditionally shoots itself in the foot. Ask your customers to pay something. If you have something of value, they will.
That's a nice story about Radiohead but it isn't true. In fact, Radiohead's online release of In Rainbows was a smashing success and generated more money in opt-in online sales than their entire previous album. Cite:
Yes -- that needs to be fixed pronto, and a 1.1.4 release cut -- which should include both that patch and a fix for Node 0.6's inconsistent "fs.watch" behavior.
First, go:
Secondly, node.js: Not only does go serve the traffic more quickly, but it also has a much lower standard deviation between slow and long requests. Impressive.