Skip to content

inviivy/TinyServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

98efc50 · Nov 14, 2022

History

2 Commits
Oct 24, 2022
Oct 24, 2022
Oct 24, 2022
Oct 24, 2022
Oct 24, 2022
Oct 24, 2022
Oct 24, 2022
Nov 14, 2022

Repository files navigation

项目介绍

项目借鉴于muduo网络库, 模型为one loop per thread.

如何运行

git clone https://github.com/iiEr1c/TinyServer.git
mkdir build
cd build
cmake ..
make

实现的功能

  • 简易json
  • http router, 路由不存在导向404

依赖

wrk压测

wrk -t8 -c200 -d60s --latency http://127.0.0.1:8888/

perf

# 在root环境下运行
perf record -F 99 -p pid -g sleep 60
#
perf record -F 99 -p PID --call-graph dwarf sleep 10

# 
perf script > out.perf

#
git clone https://github.com/brendangregg/FlameGraph.git

./stackcollapse-perf.pl out.perf > out.folded
./flamegraph.pl out.folded > test.svg
# chrome 打开svg即可

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published