Fork me on GitHub

diet 0.9

Tests & Benchmarks

# David vs Goliath! Comparing Lines of Code

Diet is small. Really small. Having small source code leads to easy maintenance. As you can see below, diet is significantly smaller than any other framework.

Diet is probably the smallest node.js web framework in the history! :P If web frameworks would be countries, diet would be definetely a libertarian utopia with the fewest and most effective policies.

Lower numbers mean smaller source code. The tests were taken with the sloc command line tool.

# Vanilla Node VS Diet

Node.js by default is not optimised for web development. Without a framework it's harder to organize projects and it's more difficult to collaborate with others. There are many ways to use Javascript just like any other language. Frameworks just like metric systems provide a common ground.

Because frameworks have clear use-cases and specifications, reading, debuging and contributing to projects that have a framework can be developed faster than projects that don't.

A framework also provides better performance because it's optimised and better configured. The chart below demonstrates response time differences (in milliseconds) between "Hello World" apps written in Vanilla Node.js and Diet.

Response Time Comparison

As you can see below, Diet is significantly faster than Vanilla Node.js, simply because it's optimised. Lower numbers mean better performance.

# More coming soon

More tests & benchmarks are coming soon.