惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Help Net Security
Help Net Security
G
Google Developers Blog
雷峰网
雷峰网
WordPress大学
WordPress大学
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Engineering at Meta
Engineering at Meta
Security Latest
Security Latest
T
Threat Research - Cisco Blogs
AWS News Blog
AWS News Blog
F
Full Disclosure
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Exploit Database - CXSecurity.com
J
Java Code Geeks
U
Unit 42
C
Cyber Attacks, Cyber Crime and Cyber Security
V
V2EX
C
Cisco Blogs
博客园 - 司徒正美
Project Zero
Project Zero
L
LINUX DO - 热门话题
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
Scott Helme
Scott Helme
A
About on SuperTechFans
Hugging Face - Blog
Hugging Face - Blog
S
Securelist
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
S
Schneier on Security
G
GRAHAM CLULEY
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyberwarzone
Cyberwarzone
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
T
Threatpost
Recorded Future
Recorded Future
C
CXSECURITY Database RSS Feed - CXSecurity.com
宝玉的分享
宝玉的分享
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
The Register - Security
The Register - Security
S
Security Archives - TechRepublic
博客园 - Franky
N
News | PayPal Newsroom
Simon Willison's Weblog
Simon Willison's Weblog
S
SegmentFault 最新的问题
W
WeLiveSecurity
A
Arctic Wolf
B
Blog

G-WAN

暂无文章

G-WAN Web Server
Livid · 2012-05-14 · via G-WAN

一个小白的体验报告 ...

默认下载 ... 初次运行即报错 ...

loading.
> 'hello.m': to use Objective-C (*.m) scripts, install 'gobjc' (sudo apt-get install gobjc)..
> 'report.java': to use Java (*.java) scripts, install 'javac' (sudo apt-get install javac).

安装 Objective-C 支持并移除 csp 后启动正常 ...

有个疑问 ... 官方推荐的配置组合是 GWan + CScript ...

但为啥默认在 csp 下的内容需要 ObjectiveC 和 Java 支持呢 ...

正常启动之后写了 Hello World ...

发现运行中修改文件内容会即时看到更新后的结果 ...

但修改文件名会导致原文件名和新文件名同时失效 ...

动态脚本效能测试 ... 全部输出 Hello World ...

Server Software: G-WAN
Server Hostname: me
Server Port: 8080

Document Path: /?hello.c
Document Length: 11 bytes

Concurrency Level: 500
Time taken for tests: 0.024 seconds

--------------------------------------------------------

Server Software: Apache/2.2.17
Server Hostname: me
Server Port: 86

Document Path: /hello.php
Document Length: 12 bytes

Concurrency Level: 500
Time taken for tests: 0.676 seconds

--------------------------------------------------------

Server Software: nginx/1.2.0
Server Hostname: me
Server Port: 805

Document Path: /hello
Document Length: 12 bytes

Concurrency Level: 500
Time taken for tests: 0.024 seconds

--------------------------------------------------------

Server Software: toyServer
Server Hostname: me
Server Port: 2480

Document Path: /hello
Document Length: 12 bytes

Concurrency Level: 500
Time taken for tests: 1.801 seconds

操作系统 12.04 LTS ... nginx 的测试结果使用了 echo module ...

最后一个是我自己用 socket 实现的 WS ... 乱入而已 ...

感觉上就执行 c 的效能而言 ... 比起 nginx 来似乎也不是特别耀眼 ...

另外 ... 一台 Web Server 除了效率之外稳定性也是很重要的 ...

现在我跑 nginx + php 的一台机器可以一年都不重启 ...

如果我直接写 C 操作内存的话 ... 程序里面一点点控制不好就可能拖垮整个服务 ...

一个大系统里写模块的人水平良莠不齐的话 ... 总觉得是个危险的事情呀 ...

时间有限就先测到这里 ... 一家之言供参考 ...