
Benchmark
文章平均质量分 79
玄冬Wong
别把自己当回事儿,我还是一只菜鸟……
展开
-
map hash_map unordered_map 性能测试
原文:http://blog.chinaunix.net/uid-20384806-id-3055333.html测试条件:gcc version 4.2.1 20070719 [FreeBSD]FreeBSD 7.2-RELEASE #0: Fri May 1 07:18:07 UTC 2009 root@driscoll.cse.buffalo.edu:/us...原创 2013-06-05 11:58:02 · 115 阅读 · 0 评论 -
std::shared_mutex和std::mutex的性能对比(banchmark)
原文作者:@玄冬Wong转载请注明原文出处:http://aigo.iteye.com/blog/2296462key world: std::shared_mutex、std::mutex、performance、benchmark、性能测试 shared_mutex的适用场景比较特殊:一个或多个读线程同时读取共享资源,且只有一个写线程来修改这个资源,这种情况下才能从shar...原创 2016-05-06 23:39:18 · 1571 阅读 · 1 评论 -
Golang lock-free values with atomic.Value(benchmark)
Golang lock-free values with atomic.Valuehttps://texlution.com/post/golang-lock-free-values-with-atomic-value/原创 2016-04-21 13:25:32 · 376 阅读 · 0 评论 -
[C++11]std::mutex和std::atomic的性能测试对比(benchmark)
key word:std::mutex、std::atomic、benchmark、performance 原文作者:@玄冬Wong 测试案例:8个线程分别执行1250万次累加和累减,累加的最终结果为10亿,累减的最终结果为0。 /**********************************************************************...原创 2016-04-21 12:28:43 · 1438 阅读 · 0 评论 -
多个生产者多个消费者:boost::lockfree::queue和std::mutex的性能对比(benchmark)
原文作者:@玄冬Wongkey word:Non-blocking、Blocking、multi-productor、multi-customer、benchmark、performance /************************************************************************//* 测试多个生产者多个消费者线程环境下...原创 2016-04-20 21:45:30 · 1960 阅读 · 0 评论 -
[C++]阻塞和非阻塞的队列的性能对比(Non-BlockingQueue&BlockingQueue benchmark)
关键字:阻塞队列、非阻塞队列、性能对比、Non-BlockingQueue、BlockingQueue、benchmark、Performance 原文作者:@玄冬Wong转载请注明出处:http://aigo.iteye.com/blog/2292169对阻塞和非阻塞队列进行测试:1,用boost::lockfree::spsc_queue非阻塞队列;(注:spsc_qu...原创 2016-04-19 11:32:34 · 1890 阅读 · 0 评论 -
[C++11]std::atomic、boost::atomic、Interlocked三者的性能比较(benchmark)
原文作者:@玄冬Wong好久没做过benchmark了,这次之所以想测试下,是怕std::atomic的效率没有windows的Interlocked性能好,测一下发现,性能差不多,Interlocked微弱的领先优势可以忽略不计。先公布结果:三者的性能几乎相同,windows的Interlocked略好一点点。 测试代码:#ifdef _WIN64#ifndef _D...原创 2016-04-14 22:11:11 · 1597 阅读 · 0 评论 -
详解C调用lua脚本效率测试
原文:http://mobile.51cto.com/iphone-285909.htm C调用lua脚本效率测试是本文要介绍的内容,以下代码以C语言为基准,测试了C调用Lua循环和循环调用Lua的效率。结论是不要频繁地穿越C/Lua边界. #include <time.h> extern "C" { #include "lua.h" #...原创 2015-04-29 16:39:16 · 164 阅读 · 0 评论 -
JNI和JNA性能比较
环境:C++回调Java方法,单线程,10,000,000次循环调用JNI:924msJNA:129984ms原创 2014-07-22 14:45:01 · 1602 阅读 · 0 评论 -
Condition variables performance of boost, Win32, and the C++11 standard library
原文:http://codesequoia.wordpress.com/2013/03/27/condition-variables-performance-of-boost-win32-and-the-c11-standard-library/ About four years ago, I wrote the condition variables in Win32 API was...原创 2013-07-23 11:40:09 · 150 阅读 · 0 评论 -
C++0X(C++11)的std:mutex、std::thread与Windows API性能对比
转载请注明原创出处:http://aigo.iteye.com/blog/1908084C++0X标准提供的std::mutex和std::thread两个接口开发多线程同步的应用非常方便,而且可以跨平台,自己做了一下测试,发现这个跨平台的代价还是很大的,我分别用std::mutex与Windows的CRITICAL_SECTION、std::thead和WIndows的CreateThr...2013-07-16 21:17:11 · 470 阅读 · 0 评论 -
Benchmarking level generation: Go, Rust, Haskell and D (and now Scala).
原文:https://togototo.wordpress.com/2013/07/23/benchmarking-level-generation-go-rust-haskell-and-d/该文章的测试时间是2013,下面的测试数据不代表当前各语言的最新版本 其他文章参考:系统级编程语言性能大PK的笑话-Go语言http://my.oschina.net/chai201...原创 2015-12-21 19:53:30 · 273 阅读 · 0 评论