Skip to content
 
 

Latest commit

 

History

85 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LangBench 测试报告

性能图表

性能对比

性能对比

性能趋势

性能趋势

bernoulli30

语言 平均时间(μs) 最小时间(μs) 最大时间(μs) 标准差(μs) 成功率
asm 228.9 216.0 257.0 12.2 100.0%
alum 345.1 323.3 382.2 18.7 100.0%
luajit 1014.6 990.9 1041.7 15.6 100.0%
lua 1121.3 1098.6 1148.5 14.0 100.0%
lamina 1950.8 1903.5 2037.5 41.4 100.0%
python 16028.2 15849.4 16274.7 130.2 100.0%
php 38621.9 37879.2 40036.0 587.3 100.0%
kotlin 42797.5 38462.6 57034.0 5434.7 100.0%
c 2231562.0 2224562.9 2244356.6 5695.8 100.0%
cpp 2281078.5 2276281.8 2286492.3 2880.0 100.0%
rust 3108976.7 3100767.1 3134309.8 10563.4 100.0%
clang-c 3291378.0 3276940.3 3352781.3 25216.1 100.0%
clang-cpp 3306022.5 3278921.6 3408130.9 43776.8 100.0%
java 3750379.5 3622965.3 3812230.6 79472.7 100.0%
zig 5594181.3 5370281.9 5944331.4 216901.3 100.0%
go 6567406.7 6561734.2 6572462.8 3497.8 100.0%
dart 7601054.3 7567137.5 7704382.9 49064.7 100.0%
js 12885343.2 12645649.2 13118066.8 130103.9 100.0%

fib42

语言 平均时间(μs) 最小时间(μs) 最大时间(μs) 标准差(μs) 成功率
asm 249.6 241.0 263.0 9.0 100.0%
alum 266.6 256.8 281.1 9.7 100.0%
php 32355.2 31684.9 33768.9 841.8 100.0%
cpp 463715.4 463123.8 464380.7 531.5 100.0%
c 477706.6 474919.6 481619.4 2819.4 100.0%
clang-c 681162.8 680912.7 681467.1 231.7 100.0%
clang-cpp 681995.9 681242.0 682430.5 474.0 100.0%
java 758289.9 753288.7 762907.3 4403.0 100.0%
rust 765404.5 762466.2 774440.5 5073.8 100.0%
kotlin 987370.6 967173.6 1011827.9 18447.5 100.0%
zig 1252946.4 1251852.0 1254372.6 1166.0 100.0%
go 1558404.4 1553233.6 1562573.4 3504.2 100.0%
dart 1875700.9 1875352.9 1876005.2 317.9 100.0%
typed_ant 1943313.6 1939801.9 1953655.0 5811.8 100.0%
js 3130611.4 3042471.9 3383802.9 143203.3 100.0%
luajit 3237490.0 2712594.7 3387954.7 293880.5 100.0%
lamina 27583785.8 27039132.1 27900383.0 335296.9 100.0%

fib30

语言 平均时间(μs) 最小时间(μs) 最大时间(μs) 标准差(μs) 成功率
alum 353.7 318.5 381.9 22.5 100.0%
c 2251.8 2210.6 2310.3 30.9 100.0%
cpp 2761.7 2717.0 2790.7 24.5 100.0%
clang-c 2802.1 2780.0 2847.2 20.8 100.0%
rust 3248.8 3193.9 3345.0 45.7 100.0%
clang-cpp 3675.6 3630.2 3763.7 40.2 100.0%
zig 4279.2 4252.9 4309.7 19.4 100.0%
asm 4720.5 4686.4 4745.2 20.3 100.0%
go 6008.3 5537.5 6509.5 418.7 100.0%
typed_ant 7197.1 7140.6 7326.1 63.0 100.0%
dart 7516.5 7429.4 7600.8 60.4 100.0%
luajit 11576.3 8322.5 14990.3 2088.5 100.0%
js 39182.5 36928.7 42449.7 1811.1 100.0%
java 40680.5 33016.7 44595.5 4185.7 100.0%
php 43644.4 43228.4 45095.7 542.8 100.0%
kotlin 47609.8 43717.6 52481.2 2890.5 100.0%
lamina 86076.9 83746.2 90460.5 2026.7 100.0%
lua 102899.8 97814.8 106888.1 2251.0 100.0%
python 133491.8 131923.7 134943.2 1094.6 100.0%

总结

  • bernoulli30: 最快语言是 asm (平均 228.8580μs)
  • fib42: 最快语言是 asm (平均 249.5766μs)
  • fib30: 最快语言是 alum (平均 353.7416μs)

失败测试详情

fib42 - 失败

csharp

错误信息: Compilation failed:

vb

错误信息: Compilation failed:

objc

错误信息: Compilation failed: In file included from benchmarks/fib42/fib42.m:1: /usr/include/GNUstep/Foundation/Foundation.h:31:9: fatal error: 'objc/objc.h' file not found 31 | #import <objc/objc.h> | ^~~~~~~~~~~~~ 1 error generated.


fib30 - 失败

vb

错误信息: Compilation failed:

csharp

错误信息: Compilation failed:

objc

错误信息: Compilation failed: In file included from benchmarks/fib30/fib30.m:1: /usr/include/GNUstep/Foundation/Foundation.h:31:9: fatal error: 'objc/objc.h' file not found 31 | #import <objc/objc.h> | ^~~~~~~~~~~~~ 1 error generated.


bernoulli30 - 失败

vb

错误信息: Compilation failed:

csharp

错误信息: Compilation failed:


About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages