Go

  1. gin 4762
  2. echo 4903
  3. Iris 27854 swollen
  4. buffalo 9391

Node

  1. koa 1667
  2. express 4051
  3. 17100 sails swelled

Python

  1. tornado 21666
  2. werkzeug 20801
  3. flask 7489
  4. bottle 3756
  5. web.py 10830
  6. Django 119701 Thai is swollen

Ruby

  1. sinatra 2580
  2. grape 7229
  3. Rails 130379 Thai is swollen

Java

  1. Spring-core 75207 is not seen
  2. spring-aop 25984
  3. spring-web 49017
  4. spring-webmvc 60246
  5. spring-beans 51070
  6. spring-context 76356
  7. spring-boot 50847

Statistical methods

Statistics when I found some of the framework code is bigger than I thought too much, so I’m on a large quantity of these code code over and over again, remove the path contains the test/example/benchmark/vendor code, such as wc – l together to get the final result.

note

Such direct comparisons are unfair to some frameworks. Some frameworks are heavily commented, while others have almost no comments. I didn’t remove comments from my statistical methods. However, comments are not the most important difference. The biggest difference is that some frameworks are microkernels and others are full-stack. Fullstack’s framework is ready-to-use, while microkernels typically need to introduce additional plug-ins and extensions to achieve similar results.

From the point of view of source code learning, natural or should choose the micro kernel, the amount of code reading will be confused. Microkernels are short and lean, and the essence is concentrated.

Learn related links to the source code

  1. https://github.com/pyloque/httpkids 1200 lines of code in the Java Web framework
  2. https://github.com/pyloque/ormkids Java ORM framework of 2000 lines of code
  3. https://github.com/pyloque/rpckids Java RPC framework of 700 lines of code
  4. https://github.com/pyloque/iockids 200 lines of code in the Java dependency injection framework

Pay attention to the public number “code hole”, learn the source code together. Finally, allow me to sympathize with the Java programmers and say that they are really suffering.