227 reputation
417
bio website facebook.com/thenonsequitur
location New York, NY
age 31
visits member for 3 years, 6 months
seen 19 hours ago
puts 10.downto(1).each{ |i| puts i }
puts 'Blast off!'

puts (10.downto(1).map{ |i| i.to_s } + ['Blast Off!']).join("\n")

(1..10).to_a.reverse.each{ |i| puts i }
puts 'Blast off!'

Feb
12
awarded  Critic
Feb
10
awarded  Commentator
Feb
10
comment Is nginx suited for serving PDFs?
And @pauska, did you downvote this? I just noticed a downvote on it. The benchmark I used as an example was perfectly clear about what configuration it did for all servers, and was not sneaky about anything, so you can draw legitimate conclusions from it. The only real optimization for nginx it made was aligning the number of workers to the number of cores. I find the configuration choices the author made pretty acceptable for good comparison metrics.
Feb
10
comment Is nginx suited for serving PDFs?
There is plenty of information on this. Here's another one I just found on google: ruby-forum.com/topic/150120, and it further has links to others. My point isn't about the specific benchmark. My point is, when you don't know something about performance, use benchmarks, even if they are not your own. The one I put in my answer was just an example, but the other results I'm finding online all tend to be in line with this one that nginx is near the top for request/second and memory usage.
Feb
10
comment Is nginx suited for serving PDFs?
If you find the source unsatisfying, and don't have the time/inclination to do your own benchmark, you can always look for another.
Feb
10
comment Is nginx suited for serving PDFs?
I agree that personal benchmarks are better than trusting other sources (though I haven't done any benchmarks myself -- I use nginx to serve apps and static files and it works fine for my servers so I have no reason to switch or benchmark). But I don't see how looking at another benchmark is worse than just making a blanket assertion or assumption?
Feb
10
awarded  Teacher
Feb
10
comment Is nginx suited for serving PDFs?
Proof by forceful assertion?
Feb
10
revised Is nginx suited for serving PDFs?
deleted 1 characters in body
Feb
10
answered Is nginx suited for serving PDFs?
Jan
3
awarded  Scholar
Jan
3
accepted Compiling nginx with nginx-gridfs, getting mongo-c-driver errors during make
Jan
3
comment Compiling nginx with nginx-gridfs, getting mongo-c-driver errors during make
So far, no problems using the solution in my comment.
Jan
2
awarded  Student
Dec
27
comment Compiling nginx with nginx-gridfs, getting mongo-c-driver errors during make
Adding --with-cc-opt=-Wno-error did allow the make to complete successfully. I will report back if this results in any problems.
Dec
27
asked Compiling nginx with nginx-gridfs, getting mongo-c-driver errors during make
Dec
21
awarded  Editor
Sep
15
awarded  Autobiographer
Apr
4
awarded  Supporter