G-campos / count-to-1-billion

examples in multiple languages ​​counting up to 1 billion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instruction for running

C++

$ g++ c_count.cpp && time ./a.out

Golang

$ go build go_count.go && time ./go_count

Python

$ time python py_count.py

NodeJS

$ time node javascript_count.js

DenoJS

$ time deno run javascript_count.js

PHP

$ time php php_count.php

Kotlin

$ kotlinc kotlin_count.kt -include-runtime -d builds/kotlin_count.jar && time java -jar builds/kotlin_count.jar

Java

$ time java java_count.java

About

examples in multiple languages ​​counting up to 1 billion


Languages

Language:C++ 28.6%Language:JavaScript 24.9%Language:Go 21.2%Language:PHP 14.1%Language:Python 11.2%