This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <China> | |
| <province id="01" name="北京"> | |
| <city id="0101" name="北京"> | |
| <county id="010101" name="北京" weatherCode="101010100"/> | |
| <county id="010102" name="海淀" weatherCode="101010200"/> | |
| <county id="010103" name="朝阳" weatherCode="101010300"/> | |
| <county id="010104" name="顺义" weatherCode="101010400"/> | |
| <county id="010105" name="怀柔" weatherCode="101010500"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 4 thread and 400 connections in 30 seconds | |
| aiohttp - no uvloop | |
| Running 30s test @ http://127.0.0.1:8000 | |
| 4 threads and 400 connections | |
| Thread Stats Avg Stdev Max +/- Stdev | |
| Latency 73.50ms 9.94ms 370.71ms 81.79% | |
| Req/Sec 1.36k 339.69 2.71k 56.10% | |
| 161299 requests in 30.03s, 23.84MB read | |
| Requests/sec: 5371.45 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # 需要用root用户来安装crontab任务 | |
| # $ sudo su - | |
| # # crontab -e | |
| # 复制这个: */1 * * * * /Users/keysona/OneDrive/bin/free_mem.sh | |
| # */1 代表每分钟执行一次脚本 | |
| limit=500 # 小于500MB,自动清理内存 | |
| mem=$(top -l 1 | head -n 10 | grep PhysMem | cut -f6 -d ' ' | cut -f1 -d 'M') |
OlderNewer