TenMillionObjects:Go,Crystal,Ruby,Python2,Python3的速度和内存消耗

时间:2021-02-04 23:02:28
【文件属性】:
文件名称:TenMillionObjects:Go,Crystal,Ruby,Python2,Python3的速度和内存消耗
文件大小:18KB
文件格式:ZIP
更新时间:2021-02-04 23:02:28
ruby python go crystal python3 为什么? 为了测试不同的语言和环境,它们如何处理使用一个实例变量(字符串“ tere”)创建一千万个对象。 OOP非常漂亮,软件工程师应该能够创建对象而不必担心内存或CPU时间问题。 确认结果 cd benchmarks && ruby run-tests.py 结果 Go used 158MB and ran 1 seconds. Crystal used 429MB and ran 1 seconds. Ruby used 933MB and ran 6 seconds. Python3 used 1688MB and ran 14 seconds. Pytho
【文件预览】:
TenMillionObjects-master
----README.md(870B)
----benchmarks()
--------free-ram.rb(92B)
--------tests()
--------timestamp.rb(34B)
--------run-tests.rb(149B)
----charts()
--------mb.png(7KB)
--------seconds.png(9KB)

网友评论