Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
palindorome.cpp
palindorome.java
palindorome.rs
palindorome.swift
palindrome.c
palindrome.cs
palindrome.go

README.md

benchmark_of_some_popular_languages

通过使用相同思路实现一个判断回文数的程序来比较几种语言之间的性能差异

实现只用到各自语言的数组实现,没有使用类似于vector的东西

回文函数会在leetcode上执行11000多次,执行结果为多次运行取最优值


  • rust 32 ms 2.1 MB
  • c 44 ms 7 MB
  • cpp 48 ms 8 MB
  • java 50 ms 37.3 MB
  • go 68 ms 5 MB
  • swift 88 ms 18.8 MB
You can’t perform that action at this time.