HackerTrans
TopNewTrendsCommentsPastAskShowJobs

dagome

no profile record

comments

dagome
·il y a 4 ans·discuss
Such stark difference in performance is really fishy and needs a deeper analysis. I just checked it with different compilers (all based on LLVM) and here are the results:

  rustc 1.58 (LLVM 13): By-Copy: 10804, By-Borrow: 7198
  rustc 1.64 (LLVM 14): By-Copy: 7385,  By-Borrow: 7328
  rustc 1.66 (LLVM 15): By-Copy: 2667,  By-Borrow: 2777
  clang++ (LLVM 14):    By-Copy: 2439,  By-Ref: 2589
  clang++ (LLVM 15):    By-Copy: 2473,  By-Ref: 2556
When compared with the same LLVM version clang much better utilised LLVM-14 than rustc - C++ is 3x faster. With LLVM-15 they are much closer.