当前位置:网站首页>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/
边栏推荐
- 【Unity项目实践】合成大西瓜
- [SQL's 18 dragon subduing palms] 01 - Kang long regrets: introductory 10 questions
- 科研环境对人的影响是很大的
- Lombook User Guide
- How to deal with the DDoS attack on the game server and how to defend it?
- 易观分析:以用户为中心,提升手机银行用户体验,助力用户价值增长
- Understand all the basic grammar of ES6 in one article
- 如何选择专业、安全、高性能的远程控制软件
- 我们总结了 3 大Nacos使用建议,并首次公开 Nacos 3.0 规划图 Nacos 开源 4 周年
- 【7.21-26】代码源 - 【平方计数】【字典序最小】【“Z”型矩阵】
猜你喜欢

Test / development programmers rely on technology to survive the midlife crisis? Improve your own value

【HCIP】两个MGRE网络通过OSPF实现互联(eNSP)

What is the ISO assessment? How to do the waiting insurance scheme

MySQL execution order

云原生应用综合练习下

matplotlib中文问题
![[hcip] experiment of republishing and routing strategy](/img/26/d62d3083796757d33c0a513f842176.png)
[hcip] experiment of republishing and routing strategy

Super technology network security risk assessment service, comprehensively understand the security risks faced by the network system

规划数学期末考试模拟二

The information security and Standardization Commission issued the draft for comments on the management guide for app personal information processing activities
随机推荐
Making high-precision map based on autoware (V)
【HCIP】重发布及路由策略的实验
Network security litigation risk: four issues that chief information security officers are most concerned about
剑指offer专项突击版第13天
5g commercial third year: driverless "going up the mountain" and "going to the sea"
OpenGL development with QT (II) drawing cube
internship:用于类型判断的工具类编写
How many of the top ten test tools in 2022 do you master
Code generator
Platofarm community ecological gospel, users can get premium income with elephant swap
Read the recent trends of okaleido tiger and tap the value and potential behind it
Plato launched the LAAS protocol elephant swap, which allows users to earn premium income
Understand various paths
【Golang】- runtime.Goexit()
els 到底停止
什么是原码、反码和补码
Analysis of Multi Chain use cases on moonbeam -- review of Derek's speech in Polkadot decoded 2022
【搜索】—— 迭代加深/双向DFS/IDA*
全面升级,淘宝/天猫api接口大全
[hcip] MPLS Foundation