语言 | 版本 |
---|---|
dotnet | .NET Core SDK 3.1.101 |
Java | openjdk 14 2020-03-17 |
go | go1.14 |
Match DNA 8-mers and substitute magic patterns
dotnet 胜(与C++相差无几)
注意:dotnet使用了DllImport,所以速度非常快,这个应该不能算到dotnet头上,其它写法是比java慢的。
java 胜
Eigenvalue using the power method
dotnet 胜(与C++相差无几)
go 胜(相差无几)
Hashtable update and k-nucleotide strings
dotnet 胜
java 胜
Indexed-access to tiny integer-sequence
dotnet 胜
go胜
Streaming arbitrary-precision arithmetic
dotnet 胜
go胜
Allocate and deallocate many many binary trees
dotnet 胜
java胜
Generate and write random DNA sequences
dotnet 胜
go 胜
Generate Mandelbrot set portable bitmap file
dotnet 胜
go胜
Double-precision N-body simulation
dotnet胜
go胜
Read DNA sequences - write their reverse-complement
dotnet胜
java胜
排在前面分别是java,go,dotnet
排在前面分别是java,go,dotnet
排在前面分别是java,go,dotnet
排在前面分别是go,java,dotnet
排在前面分别是java,dotnet,go
排在前面分别是go,java,dotnet 几乎无相差
dotnet 官方出品aspnetcore 几乎能秒杀其它语言web框架,虽然java在前面,但不是固定的框架
各个语言都有自己的优势,自己喜欢就好!
原文:https://www.cnblogs.com/kingreatwill/p/12542202.html