cocoon/tests/fixtures/index.html
xfy911 b6beb8bb9c feat(tests): 添加集成测试套件 + 性能基准 + 更新文档
- 新增 tests/ 目录:
  - integration_test.sh: 27 项 curl/bash 集成测试(GET/HEAD/404/Range/304/gzip/MIME/目录浏览/路径防护)
  - benchmark.sh: wrk 压测脚本,支持单线程和多线程模式
  - fixtures/: 测试用静态资源(HTML/CSS/JS/JSON/PNG)
- Makefile 新增 test / bench 快捷目标
- README 全面更新:
  - 补充 Gzip/缓存/超时/日志等已实现特性
  - 更新命令行参数(-m/-o/-l/-v)
  - 添加性能基准表格(~16K RPS / ~60μs 延迟)
  - 路线图标记已完成项
- .cocoon-plan.md 更新 Phase 2 进度
2026-06-03 21:15:05 +08:00

15 lines
796 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="zh-CN">
<head><meta charset="UTF-8"><title>Test</title><link rel="stylesheet" href="style.css"></head>
<body>
<div class="hero"><h1>Hello Cocoon</h1><p>基于 coco 协程库的轻量级静态资源服务器</p></div>
<div class="features">
<div class="card"><h3>协程驱动</h3><p>每个连接一个协程上下文切换小于100纳秒轻松支撑数万并发连接</p></div>
<div class="card"><h3>静态托管</h3><p>支持目录浏览、MIME自动识别、Range请求、ETag缓存协商开箱即用</p></div>
<div class="card"><h3>多线程调度</h3><p>M:N调度器自动扩展至多核Work-stealing保证负载均衡</p></div>
</div>
<div class="footer"><p>Built with coco &middot; MIT License</p></div>
<script src="app.js"></script>
</body>
</html>