Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

迁移总结 #78

Open
JacksonTian opened this issue Mar 15, 2018 · 6 comments
Open

迁移总结 #78

JacksonTian opened this issue Mar 15, 2018 · 6 comments

Comments

@JacksonTian
Copy link
Member

JacksonTian commented Mar 15, 2018

gist $ ./cloc-git https://github.com/cnodejs/nodeclub.git

     194 text files.
     194 unique files.                                          
      12 files ignored.

github.com/AlDanial/cloc v 1.76  T=1.09 s (170.3 files/s, 66779.9 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JavaScript                     125           6577          10539          34314
CSS                             11           2528            101          14147
HTML                            43            300              9           2266
LESS                             1            220             12           1085
Markdown                         2             30              0            238
JSON                             1              0              0             69
make                             1             13              1             47
YAML                             1              8              0             21
-------------------------------------------------------------------------------
SUM:                           185           9676          10662          52187
-------------------------------------------------------------------------------
gist $ ./cloc-git https://github.com/cnodejs/egg-cnode.git


     154 text files.
     154 unique files.                                          
      12 files ignored.

github.com/AlDanial/cloc v 1.76  T=1.08 s (133.7 files/s, 64530.8 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JavaScript                      87           6306          10269          32023
CSS                             11           2528            101          14147
HTML                            38            259              9           2185
LESS                             1            221             12           1088
Markdown                         2             45              0            115
YAML                             3              7              6             94
JSON                             1              0              0             67
Dockerfile                       1              8              1              8
-------------------------------------------------------------------------------
SUM:                           144           9374          10398          49727
-------------------------------------------------------------------------------

Summary:

  • 文件数减少 41,减少 22%
  • 代码行数减少 2460 行,减少 4.7%
  • 测试代码减少 980 行,减少 39%,覆盖率高于原项目。
@JacksonTian
Copy link
Member Author

JacksonTian commented Mar 15, 2018

egg-cnode

$ cloc test/
      16 text files.
      16 unique files.                              
       0 files ignored.

github.com/AlDanial/cloc v 1.76  T=1.05 s (15.2 files/s, 1698.5 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JavaScript                      16            249             27           1511
-------------------------------------------------------------------------------
SUM:                            16            249             27           1511
-------------------------------------------------------------------------------

nodeclub:

$ cloc ../nodeclub/test/
      34 text files.
      34 unique files.                              
       0 files ignored.

github.com/AlDanial/cloc v 1.76  T=1.07 s (31.8 files/s, 2783.9 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JavaScript                      34            351            130           2495
-------------------------------------------------------------------------------
SUM:                            34            351            130           2495
-------------------------------------------------------------------------------

@JacksonTian
Copy link
Member Author

JacksonTian commented Mar 15, 2018

  • ejs-mate => egg-view-ejs
  • express => egg
  • PM2 => egg-scripts
  • mongoose => egg-mongoose

@lqs469
Copy link
Contributor

lqs469 commented Mar 15, 2018

会做性能方面的对比吗?

@JacksonTian
Copy link
Member Author

JacksonTian commented Mar 15, 2018

没啥必要做性能方面的对比。有性能问题,alinode 分分钟就能修复

@yuu2lee4
Copy link

建议根据js应用的不同领域 增加更多细分板块

@JacksonTian
Copy link
Member Author

@yuu2lee4 那是运营问题。不是代码问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants