Speed ​​comparison of three legendary languages ​​(1)

xiaoxiao2021-03-06  22

LINKED LIST everyone knows

Recently, I have written the same function with the same function in three legendary languages ​​and make speed testing. The specific language is hidden, avoiding the mouthwater.

I tested four functions, focusing on Memory Allocation, Memory Search, and Memory Free and Iterator's use.

On the property of the characteristics of the program, try to use the most common way. For example, allocate memory use everyone's most common New, without choosing more efficient but some unusual and unusual ways. For a certain language, I use references (or pointers) in other languages, without having to copy because it is unfair.

I think the characteristics of the three languages ​​are still very obvious, everyone said.

I hope that when you comment, pay attention to the "superstitious language", you don't know how to make it, you can do it within our internal us, avoid your mouth, cut

Finally, cheering for Andrew!

转载请注明原文地址:https://www.9cbs.com/read-43965.html

New Post(0)