码迷,mamicode.com
首页 > 其他好文 > 详细

cgo

时间:2020-07-17 16:05:11      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:team   iso   sha   other   linux   reverse   red   its   version   

Go versus C++ g++ fastest programs

Always look at the source code.

These are only the fastest programs. Look at the other programs. They may seem more-like a fair comparison to you.

fannkuch-redux 
sourcesecsmemgzbusycpu load
Go 8.51 2,732 969 34.00 100% 100% 100% 100%
C++ g++ 7.92 1,700 980 30.88 100% 99% 98% 93%
pidigits 
sourcesecsmemgzbusycpu load
Go 1.23 8,580 603 1.26 1% 50% 2% 50%
C++ g++ 0.89 4,236 513 0.89 0% 0% 100% 0%
fasta 
sourcesecsmemgzbusycpu load
Go 1.20 11,452 1404 3.62 73% 70% 84% 74%
C++ g++ 0.85 2,020 2711 3.13 92% 92% 92% 93%
n-body 
sourcesecsmemgzbusycpu load
Go 6.34 1,792 1200 6.44 1% 100% 0% 0%
C++ g++ 3.94 1,604 1808 4.02 0% 1% 100% 1%
spectral-norm 
sourcesecsmemgzbusycpu load
Go 1.43 2,668 548 5.70 99% 99% 99% 100%
C++ g++ 0.72 2,348 1044 2.84 100% 99% 99% 99%
reverse-complement 
sourcesecsmemgzbusycpu load
Go 1.38 1,465,376 1338 2.54 51% 47% 38% 50%
C++ g++ 0.63 499,668 2093 0.64 2% 0% 0% 100%
regex-redux 
sourcesecsmemgzbusycpu load
Go 3.57 382,828 810 5.71 21% 42% 47% 51%
C++ g++ 1.03 275,752 2850 2.19 36% 37% 100% 40%
k-nucleotide 
sourcesecsmemgzbusycpu load
Go 8.03 150,544 1722 30.53 97% 96% 95% 92%
C++ g++ 1.98 156,108 1631 5.92 96% 67% 68% 68%
mandelbrot 
sourcesecsmemgzbusycpu load
Go 3.73 28,764 905 14.88 100% 99% 99% 100%
C++ g++ 0.88 34,608 3542 3.47 98% 100% 98% 97%
binary-trees 
sourcesecsmemgzbusycpu load
Go 12.36 396,032 1007 43.05 88% 86% 89% 85%
C++ g++ 1.53 112,820 1270 4.03 99% 59% 52% 53%
Go

go version go1.14.4 linux/amd64

C++ g++

g++ (Ubuntu 9.3.0-10ubuntu2) 9.3.0

cgo

标签:team   iso   sha   other   linux   reverse   red   its   version   

原文地址:https://www.cnblogs.com/Janly/p/13330157.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!