# simpleWeb **Repository Path**: xiezhx9/simple-web ## Basic Information - **Project Name**: simpleWeb - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-16 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 说明 因为`Golang`的奇怪相对路径设置,请在`$GOPATH/src/gitee.com/xiezhx9/simple-web`目录下(和`web.go`同目录)运行程序 进入首页`localhost:8080`,注册。*下面的文本框点击按钮执行`eval`函数* 跳转以后,名字和密码由模板渲染,点击`Get Data`按钮,发送`ajax`请求填充表格数据 # Test **Input:** ```shell curl http://localhost:8080/api/data //form curl http://localhost:8080/api/test //js curl http://localhost:8080/static/a.css //static ``` **Output:** ```shell {"Apple":20,"Huawei":20,"Oppo":20,"Ov":20,"Xiaomi":20} {"ID":"Hello","Content":"Hello world"} //a.css table td, table th, table caption{ border:1px solid black; } table { width: 100%; text-align: center; } ``` ## ab Test **Input:** ```shell ab -n 100 -c 10 http://127.0.0.1:8080/ ``` **Output:** ```shell Server Software: Server Hostname: 127.0.0.1 Server Port: 8080 Document Path: / Document Length: 826 bytes Concurrency Level: 10 Time taken for tests: 0.038 seconds Complete requests: 100 Failed requests: 0 Total transferred: 94300 bytes HTML transferred: 82600 bytes Requests per second: 2629.09 [#/sec] (mean) Time per request: 3.804 [ms] (mean) Time per request: 0.380 [ms] (mean, across all concurrent requests) Transfer rate: 2421.12 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.5 0 2 Processing: 0 3 3.0 2 9 Waiting: 0 2 2.6 1 9 Total: 0 4 2.9 2 9 Percentage of the requests served within a certain time (ms) 50% 2 66% 3 75% 6 80% 8 90% 9 95% 9 98% 9 99% 9 100% 9 (longest request) ```