Skip to content

Commit

Permalink
更新readme
Browse files Browse the repository at this point in the history
  • Loading branch information
youngyangyang04 committed Jan 15, 2025
1 parent dc80164 commit 53df2e7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 项目概述

> ⭐️ 本项目为[【代码随想录知识星球】](https://programmercarl.com/other/kstar.html) 教学项目
> ⭐️ 在 [手写协程库项目文档](https://programmercarl.com/other/project_coroutine.html) 里详细讲解:**项目前置知识 + 项目细节 + 代码解读 + 项目难点 + 面试题与回答 + 简历写法 + 项目拓展**。 全面帮助你用这个项目求职面试!
> ⭐️ 在 [手写协程库项目专栏](https://programmercarl.com/other/project_coroutine.html) 里详细讲解:**项目前置知识 + 项目细节 + 代码解读 + 项目难点 + 面试题与回答 + 简历写法 + 项目拓展**。 全面帮助你用这个项目求职面试!

本项目是对sylar服务器框架的改编和简化,专注于协程库的部分。通过引入协程、调度器和定时器等核心模块,利用HOOK技术将Linux系统中的传统同步函数(如 `sleep``read``write` 等)转化为异步版本。此改造允许保持同步I/O的编程方式,同时享受异步执行的效率和响应速度提升。
Expand Down Expand Up @@ -103,3 +103,14 @@ ab -n 100 -c 10 http://127.0.0.1:8080/

### HOOK技术
对系统底层函数进行封装,增强功能且保持原有调用接口的兼容性,使函数在保持原有调用方式的同时,增加新的功能实现。

## 性能测试

写完了协程库,我们势必要对其进行一些测试来验证我们写的协程库是否有用,相比于其他库有什么优势,分析出使用场景和性能瓶颈:

* 你是否对你写的协程库进行过测试?
* 你这个协程库相比于其他库有什么优势?

这些问题也是面试官经常会问到的,性能测试也是比较容易体现出我们思考和能力的环节,进行详细的性能也会成为项目的一大亮点。

该部分在 [协程库项目专栏](https://programmercarl.com/other/project_coroutine.html) 有详细讲解,以本项目、libco协程库、libevent网络库以及原生epoll分别编写单线程回声服务器,使用ApacheBench测试工具分别进行压力测试。

0 comments on commit 53df2e7

Please sign in to comment.