Tom5521 / PiLangTest

Test the speed of pi computation in different languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pi languaje test

This is a set of source codes in different languages to compare the computational speed of PI, using the Leibniz algorithm applied in:

Compiled:

  • Go
  • Rust
  • C++
  • C Interpreted:
  • Python
  • Lua
  • Ruby

There are specific scripts to compile and test everything in the corresponding languages (test.* and build.*).

I strongly recommend using python scripts regardless of your system, unless you do not want to use/install python on your system.

About

Test the speed of pi computation in different languages


Languages

Language:Python 27.0%Language:Shell 13.1%Language:C++ 12.9%Language:C 12.1%Language:Rust 11.5%Language:Go 9.2%Language:Lua 7.3%Language:Ruby 6.9%