当前位置:网站首页>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/
边栏推荐
- 数据库的decimal类型的数据,发现可以通过resultSet.getDouble去拿到这个数据,但是通过getObject却拿不到这个属性。
- Code generator
- Analysys analysis: focus on users, improve the user experience of mobile banking, and help the growth of user value
- Anaconda environment installation problem
- 560 和为 K 的子数组
- 560 and K
- 5G 商用第三年:无人驾驶的“上山”与“下海”
- els 到底停止
- Openpyxl library fill color
- 第二轮Okaleido Tiger热卖的背后,是背后生态机构战略支持
猜你喜欢

【HCIP】MGRE环境下OSPF实验,含多进程双向重发布及OSPF特殊区域

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

The brutal rule of blackmail software continues, and attacks increase by 105%

golang启动报错【已解决】

J9 number theory: what factors determine the value of NFT?

【Golang】- runtime.Goexit()

Autoware reports an error: can't generate global path for start solution
![[hcip] experiment of republishing and routing strategy](/img/26/d62d3083796757d33c0a513f842176.png)
[hcip] experiment of republishing and routing strategy

C language 300 lines of code to achieve mine sweeping (deployable + markable + changeable difficulty level)

For a safer experience, Microsoft announced the first PC with a secure Pluto chip
随机推荐
New upgrade: get Taobao product details "advanced version" API
【7.27】代码源 - 【删数】【括号序列】【数字替换】【游戏】【画画】
【golang】使用select {}
BOM系列之window对象
【GoLang】同步锁 Mutex
Nacos installation guide on win system
ELS square movement
JS 定时器setInterval clearInterval 延时器setTimeOut 异步 动画
Making high-precision map based on autoware (V)
Tomorrow infinite plan, 2022 conceptual planning scheme for a company's yuanuniverse product launch
第二轮Okaleido Tiger热卖的背后,是背后生态机构战略支持
Alphafold revealed the universe of protein structure - from nearly 1million structures to more than 200million structures
With the explosive growth of digital identity in 2022, global organizations are facing greater network security
SiC Power Semiconductor Industry Summit Forum successfully held
Timer of BOM series
mysql的执行顺序
TDA75610-I2C-模拟功放I2C地址的确定
BOM系列之定时器
Use of resttemplate and Eureka
golang启动报错【已解决】