Thursday, November 5, 2009

Nginx vs Yaws vs MochiWeb : Web Server Performance Deathmatch, Part 2 [Update x 2]

Update 1: Retest data (using different machine and Erlang kernel polling) added near bottom of post.
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 NginxYaws 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.




Asynchronous JavaScript and XML isn’t a new programming language, as it is often mistakingly called. Basically, AJAX is a set of XHTML, CSS, DOM, XMLHttpRequest and XML, put together and used together for the same purpose – to improve the user-server-interaction.
In this article we’d like to present a list of over 90 useful AJAX-based techniques you should always have ready to hand developing AJAX-based web-applications. Auto-completion, instant field editing, menus, calendars, interactive elements, visual effects, animation, basic javascripts, as well as an extensive developer’s suite should give you a useful and powerful toolbox you can use every day, without a need to go through hundreds of AJAX-related bookmarks.
You may also want to take a look at the article 60 More Ajax and Javascript Solutions For Professional Coding.

Read full entry here»


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

  1. Notepad++
  2. CodeLobster PHP Edition
  3. netpadd
  4. HAPedit
  5. Arachnophilia
  6. Visual Web Developer 2008
  7. Amaya
  8. Programmer’s Notepad
  9. RText
  10. Nvu
  11. PSPad
  12. NoteTab Light
  13. Crimson Editor
  14. Komodo Edit
  15. TotalEdit
  16. Scriptly
  17. HTML-Kit

IDEs

  1. aptana
  2. netbeans
  3. Eclipse

Read the rest of this entry »

http://www.tripwiremagazine.com/tools/tools/excellent-free-editors-and-ides-for-developers.html