当前位置:网站首页>Code reading - ten C open source projects
Code reading - ten C open source projects
2022-07-29 01:47:00 【wufeng_ asia】
Code reading —— ten C Open source project
1. Webbench
Webbench It's a linux Under the use of a very simple website pressure testing tool . It USES fork() Simulate multiple clients accessing our settings at the same time URL, Test the performance of a website under pressure , You can simulate at most 3 Ten thousand concurrent connections to test the load capacity of the website .Webbench Use C Language writing , The code is so simple , The source code adds up to less than 600 That's ok . Download link :http://home.tiscali.cz/~cz210552/webbench.html
2. CMockery
cmockery yes google Published for C A lightweight framework for unit testing . It's small , No dependence on other open source packages , It is less invasive to the tested code .cmockery Less than lines of source code for 3K, You read will_return and mock The source code is clear at a glance .
The main features :
Free and open source ,google Provide technical support ;
Lightweight framework , Make testing faster and easier ;
Avoid complex compiler features , For older compilers , Compatibility is good. ;
It is not mandatory that the code under test must rely on C99 standard , This feature is very useful for the development of many embedded systems
Download link :http://code.google.com/p/cmockery/downloads/list
3. Libev
libev Is an open source event driven Library , be based on epoll,kqueue etc. OS Infrastructure provided . It's known for its efficiency , It can be IO event , Timer , Unified with the signal , Unified under the framework of event processing . be based on Reactor Pattern , More efficient , And the code is streamlined (4.15 edition 8000 Multiple lines ), It's a good resource for learning event driven programming . Download link :http://software.schmorp.de/pkg/libev.html
4. Memcached
Memcached Is a high performance distributed memory object caching system , For dynamic Web Application to reduce database load . It reduces the number of database reads by caching data and objects in memory , So as to provide the speed of dynamic database driven website .Memcached Based on a storage key / Value pairs hashmap.Memcached-1.4.7 The amount of code is acceptable , Only 10K Row or so . Download address :http://memcached.org/
5. Lua
Lua great ,Lua It was invented by Brazilians , I'm not happy with all this , But not to blush , At most, I'm red eyed .
What makes me blush is Lua Source code , One hundred percent of ANSI C, It's not adulterated at all . In any support ANSI C Compiler platform can be easily compiled through . I tried , There's no bullshit at all .Lua The amount of code is small enough ,5.1.4 only 1.5W That's ok , Remove the blank lines and comments, it is estimated that 1W That's ok . Download address :http://www.lua.org/
6. SQLite
SQLite Is an open source embedded relational database , Realize self containment 、 Zero configuration 、 Supporting affairs SQL Database engine . It is characterized by a high degree of portability 、 Easy to use 、 Compact structure 、 Efficient 、 reliable . Small enough , roughly 3 Line ten thousand C Code ,250K. Download address :http://www.sqlite.org/ .
7. Redis
Redis It's a use. ANSI C Open source data structure server written .Redis The code of is very easy to read , The code is written neatly , And the amount of code is relatively small (4.5w That's ok , In fact, it is not very small ). Most of them are single threaded , Hardly rely on other libraries . Download address :redis.io/
8. Nginx
Nginx(“engine x”) Is a high-performance HTTP And reverse proxy , Also a IMAP/POP3/SMTP proxy server .Nginx By Igor Sysoev Second most visited in Russia Rambler.ru Site development , It has been running on this site for more than four years .Igor Source code as class BSD Release in the form of license . since Nginx Four years since its release ,Nginx Because of its stability 、 Rich feature set 、 Example configuration files and low system resource consumption are well known .
nginx In addition to the excellent reflected in the program structure and code style ,nginx The source code organization of is also simple and clear , The directory structure has a clear hierarchy , It's worth learning . Download address :http://nginx.org/en/download.html.
9. UNIXv6
UNIX V6 Kernel source code, including device drivers There are about 1 Line ten thousand , This amount of source code , Beginners can fully understand . There is a saying that the maximum amount of code a person can understand is 1 Line ten thousand ,UNIX V6 The number of kernel source code is just within this range . See here , Do you have it “ If only 1 If Wanxing, maybe I can learn ” What about the idea of ?
On the other hand , Recent operating systems , for example Linux The latest version of the kernel source code is said to exceed 1000 Line ten thousand . Even if you're not a beginner , It's basically impossible to fully understand all the code . Download address :http://minnie.tuhs.org/cgi-bin/utree.pl?file=V6
10. NETBSD
NetBSD It's a free , Highly portable UNIX-like operating system , It's the most portable operating system in the world , It can be executed on many platforms , from 64bit alpha Servers to handheld devices and embedded devices .NetBSD The slogan of the plan is :“Of course it runs NetBSD”. It has a simple design , Code specification , With many advanced features , It has been widely praised in the industry and academia . Because of its simple design and advanced features , Make it in production and Research , They all have excellent performance , And it also has complete source code supported by users . Many programs can easily pass through NetBSD Packages Collection get . Download address :http://www.netbsd.org/
边栏推荐
猜你喜欢

云原生应用综合练习下

云原生应用综合练习上
![A ten thousand word blog post takes you into the pit. Reptiles are a dead end [ten thousand word pictures]](/img/aa/a5e7b4516aa395f8d4d0e2eee7d3c7.png)
A ten thousand word blog post takes you into the pit. Reptiles are a dead end [ten thousand word pictures]
![[hcip] OSPF experiment under mGRE environment, including multi process bidirectional republication and OSPF special area](/img/07/565ca7145bcbef2d467b3c860b7487.png)
[hcip] OSPF experiment under mGRE environment, including multi process bidirectional republication and OSPF special area

活动速递| Apache Doris 性能优化实战系列直播课程初公开,诚邀您来参加!

【Unity项目实践】合成大西瓜

Event express | Apache Doris Performance Optimization Practice Series live broadcast course is open at the beginning. You are cordially invited to participate!
![[unity project practice] synthetic watermelon](/img/60/20d4ef6f4ad99a9bdb7dc2b4dba23b.png)
[unity project practice] synthetic watermelon

Three ways of creating indexes in MySQL

我们总结了 3 大Nacos使用建议,并首次公开 Nacos 3.0 规划图 Nacos 开源 4 周年
随机推荐
Lombook User Guide
全面升级,你能想象的都在这————京东API接口
Ruiji takeout project actual battle day01
Super technology network security risk assessment service, comprehensively understand the security risks faced by the network system
了解网址url的组成后 运用url模块、querystring模块和mime模块完善静态网站
【HCIP】两个MGRE网络通过OSPF实现互联(eNSP)
AlphaFold揭示了蛋白质结构宇宙-从近100万个结构扩展到超过2亿个结构
SiC Power Semiconductor Industry Summit Forum successfully held
Comprehensive upgrade, all you can imagine is here -- JD API interface
拼多多众多 API 接口皆可使用
SQL question brushing: find the last of all employees_ Name and first_ Name and corresponding department number Dept_ no
Code generator
J9 number theory: what factors determine the value of NFT?
什么是原码、反码和补码
body中基本标签
MySQL execution order
瑞吉外卖项目实战Day01
Tomorrow infinite plan, 2022 conceptual planning scheme for a company's yuanuniverse product launch
PCL 点云转强度图像
规划数学期末模拟考试一