基于.NET检测算法执行时间的基准测试方法  

Benchmarking Methodology for Execution Time of Detecting Algorithm Based on .NET

在线阅读下载全文

作  者:张义爽[1,2] 宋文广[3] 刘迪仁[1,2] 

机构地区:[1]油气资源与勘探技术教育部重点实验室(长江大学),武汉430100 [2]长江大学地球物理与石油资源学院,武汉430100 [3]长江大学计算机科学学院,湖北荆州434023

出  处:《电脑编程技巧与维护》2013年第20期6-7,14,共3页Computer Programming Skills & Maintenance

基  金:国家自然科学基金项目(40774073)资助

摘  要:常规的时间检测方法,在Windows的CPU时间片轮转多任务分配机制下,无法准确检测程序中算法的执行时间。为精确检测程序中算法的执行时间,通过分析程序运行环境的特点,说明不同时间测试方法的优缺点,并给出代码示例,对应提出了适用于.NET环境的时间测试方法。应用此方法,通过对数值积分算法的时间检测得出多组数据。对比结果表明,此方法较常规方法检测所得的时间更为准确,能为精确分析和评价算法的执行效率提供有效可靠的参考。Regular time detection methods can not accurately detect the program algorithm execution time when under Windows environment that CPU time slice rotates multi-tasking allocation mechanism. In order to detect the algorithm exe- cution time of the program accurately, by analyzing the characteristics of the program operating environment, to illustrate ad- vantages and disadvantages of different time test methods, and gives code examples. The article corresponds to propose a time test method for. NET environment, as an application of this method, by numerical integration algorithm's time detection to draw multiple sets of data. Comparing the results, it showed that: compared with the conventional method, this method is more accurate, and it can be able to provide efficient and reliable reference for analyzing and evaluating the efficiency of the algorithm accurately.

关 键 词:时间测试 算法效率评价 运行时间 CPU时间 NET环境 

分 类 号:TP301.6[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象