Monday, August 9, 2010
Thursday, November 5, 2009
Nginx vs Yaws vs MochiWeb : Web Server Performance Deathmatch, Part 2 [Update x 2]
Update 2: More details and testing on the weird MochiWeb kernel polling results, bottom of post.
Almost a year ago I did some Apache and Nginx performance testing. Apparently I have the bug again and have done some performance testing on Nginx, Yaws and MochiWeb. The latter two being Erlang based. Again deathmatch may be an overstatement but this is my attempt at gleaning some interesting performance data from some high performance web servers. Also, I attempted to improve the graphs this time around since they were a bit hard to read the last time.
The Setup:
I was not able to use the same server and setup as the last time, so comparing between this and my last deathmatch probably isn’t very accurate. For this test I used a Intel Dual Core 2.2GHz, 4GB RAM machine running Ubuntu 8.10 (64bit) and for the test server. Erlang (R12B-3), Yaws (1.77) and Nginx (0.6.32) are installed from the standard repository and mochiweb from subversion (rev 88). All are using the default configurations outside of adjusting listening port numbers. The test is again against a basic robots.txt file. The tests were done using a consumer grade 100mb switch and all tests originated from an old laptop I had laying around. I think that about covers the test bed, if you have any questions let me know.
For the tests I used autobench (httperf under the hood) with the following command, each test ran ten minutes apart. The order of the tests were done in was MochiWeb then Yaws and lastly Nginx.
autobench –single_host –host1 HOST –port1 PORT –uri1 /robots.txt –low_rate 10 –high_rate 200 –rate_step 10 –num_call 10 –num_conn 5000 –timeout 5 –file SERVER-results-`date +%F-%H:%M:%S`.ts
Read the rest of this entry »
http://www.joeandmotorboat.com/2009/01/03/nginx-vs-yaws-vs-mochiweb-web-server-performance-deathmatch-part-2/
Monday, October 12, 2009
Tuesday, September 29, 2009
80+ AJAX-Solutions For Professional Coding
Web-developers can create amazing web-applications with AJAX. Stikkit, Netvibes,GMail and dozens of further web-projects offer a new level of interactivity we’ve used to give up the idea of. Modern web-applications can be designed with enhanced user interfaces and functionalities, which used to be the privelege of professional desktop-applications. AJAX makes it possible to create more interactive, more responsive and more flexible web-solutions. And it’s the first step towards rich internet applications of the future.
- To understand the idea behind AJAX, you should read Jesse James Garrett’s article “Ajax: A New Approach to Web Applications” and Wikipedia: Ajax;
- to learn the basics of AJAX, you should go through some AJAX tutorials we’ve presented previously;
- to learn more about professional CSS coding, you should visit 70 Expert Ideas For Better CSS Coding;
- and to get a powerful and handy CSS-Toolbox for your future projects, you can use 53 CSS-Techniques You Couldn’t Live Without.
Friday, September 25, 2009
Web Compatibility and Performance Testing in a Multi-Browser World
Tuesday, August 18, 2009
Massive Regular Expressions Toolbox
Regular expressions (”regex’s” for short) are sets of symbols and syntactic elements used to match patterns of text and they are pretty powerful. Regular expressions have been around for a very long time (in computer industry scale) and was first introduced as part of the powerful UNIX search tool grep.
The regex syntax used commonly today is compliant with Extended Regular Expressions (EREs) defined in IEEE POSIX 1003.2 (Section 2.8). EREs are supported by Apache, PHP4+, Javascript 1.3+, MS Visual Studio, MS Frontpage, most visual editors, vi, emac, the GNU family of tools (including grep, awk and sed) as well as many others. Extended Regular Expressions (EREs) will support Basic Regular Expressions (BREs are essentially a subset of EREs). The BRE syntax is considered obsolete and is only still around to preserve backward compatibility.
I believe mastering at least the most basic elements of regex is essential for any programmer. Further I know that having direct access to references, examples, ready to use patterns etc. is essential to speed up your work.
This is a toolbox for getting started and/or becoming more serious about regex. It provides details on commonly needed regexs that you can just pick up and use right away. Lets get started!
Read the rest of this entry »
http://www.tripwiremagazine.com/tutorials/tutorials/massive-regular-expressions-toolbox.html
Wednesday, August 12, 2009
Excellent Free Editors and IDEs for Developers
Most developers have picked their favourite editor and/or IDE and use it many hours every day (and night). Still it can be quite useful to know what the free alternatives are. Some of the free editors and IDEs available are really high quality and may be worth investigating. If your manly using a large IDE it is likely that having a simple editor as well may improve your efficiency when just editing single files. The free alternative IDEs are also very powerful oprions and may beat some commercials competitors easily when it comes to feaures and easy of use. In this article tripwire magazine provides a list of more than 20 free Editors and IDEs useful for most developers. Let us all know if I missed a great product by posting a comment.
Editors
- Notepad++
- CodeLobster PHP Edition
- netpadd
- HAPedit
- Arachnophilia
- Visual Web Developer 2008
- Amaya
- Programmer’s Notepad
- RText
- Nvu
- PSPad
- NoteTab Light
- Crimson Editor
- Komodo Edit
- TotalEdit
- Scriptly
- HTML-Kit
IDEs
Read the rest of this entry »
http://www.tripwiremagazine.com/tools/tools/excellent-free-editors-and-ides-for-developers.html