This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
dump2file e63b7ee385 文件操作逻辑升级
#1 性能优化
1、句柄中存储文件句柄,无需每次打开
2、完善demo中的性能测试场景

单机测试硬件(OS:CentOS Linux release 7.4.1708, CPU:Intel E5 2640 v4 2.4GHz, Disk:ST600MM0208 600G)
30线程每线程循环写入10w条日志,耗时380448us,平均日志写入速度788544条/s,日志平均长度104Byte/条,折合写入磁盘速度为78.8MB/s
2019-02-18 17:50:44 +08:00
2019-02-18 17:50:44 +08:00
2018-11-15 17:10:05 +08:00
2019-02-18 17:50:44 +08:00
2018-11-15 17:10:05 +08:00

/*
 *NAME:MESA_handle_logger
 *INTRODUCTION:Based on logger and thread_safe, provide runtime_log function with independent handle for different users.
 *Author:yangwei@iie.ac.cn
 *History:
		2014-03-24 created by yw
		1)first version
		
		2014-04-16 modified by yw
		1)strict inspection parameters, compatible with g++ 4.4.4
		
		2014-05-29 update by yw
		1)create  directory is supported
------------------------------------------------------------------------------------- 		
 NOTICE:
		1)compatible with g++, extern with c;
 		2)thread_safe IS supported;
		3)DO destroy handle process before exit.
		4)demo requires lpthread support
*/


  



  






Description
No description provided
Readme 758 KiB
Languages
Shell 64.5%
C 20.5%
CMake 13.4%
Makefile 1.6%