Giter Site home page Giter Site logo

werdl / bench Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 1.1 MB

Benchmarks for various languages

License: MIT License

Python 32.32% C 2.28% C++ 3.67% Rust 2.51% Shell 2.43% C# 6.47% Haskell 3.53% Java 5.72% JavaScript 2.84% PHP 4.54% Ruby 3.63% TypeScript 1.93% Fortran 4.92% COBOL 11.61% Go 3.11% V 2.21% Kotlin 2.61% Common Lisp 3.68%

bench's Introduction

bench

benchmarks for various languages

get result

  • install deps
  • then run python3 runner.py <passes> where passes is how many times to run each test (we reccommend 10)

dependencies

  • see tools used

tools used

"oh, but there is a faster <language> compiler"

  • we deliberately chose the most common tool for each language
  • as this is the one most devs would use
  • any language can be pushed to its limits like this, that is not the point of this project

"where are the optimisation flags?"

  • we chose to exclude them, for the reasons outlined above

"where is ?"

  • if you want to add a language (or script), see CONTRIBUTING.md

c

  • gcc

c#

  • mcs

cobol

  • GnuCOBOL

c++

  • g++

fortran

  • GNU Fortran

go

  • default go from go.dev

haskell

  • ghc

java

  • Any SDK (I use Oracle)

javascript

  • node

kotlin

  • default kotlin SDK

lisp

  • SBCL, for ANSI Common Lisp

php

  • php interpreter

python

  • python3 default

ruby

  • default ruby interpreter

typescript

  • tsc (from npm)

v

  • default v compiler

the benchmarks

language Hello, World! default sorting algorithm fibonacci (15th term)
c
c#
cobol
c++
fortan
go
haskell
java
javascript
kotlin
common lisp
php
python
ruby
rust
typescript
v

key

  • ✅ -- done
  • ❌ -- not available in language (example default sorter in C)

bench's People

Contributors

werdl avatar thisiscoding1234 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

uimaxbai

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.