Giter Site home page Giter Site logo

akzhan / crystal-benchmarks-game Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kostya/crystal-benchmarks-game

0.0 1.0 0.0 62 KB

Crystal implementations for The Computer Language Benchmarks Game

License: MIT License

C 47.92% Crystal 19.98% Java 2.55% Ruby 16.43% Shell 5.06% Go 4.23% Erlang 0.79% Scala 0.84% C++ 2.20%

crystal-benchmarks-game's Introduction

Crystal implementations for The Computer Language Benchmarks Game

Compared to C, and Ruby implementations from http://benchmarksgame.alioth.debian.org/ .

Running on Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz (Ubuntu 14.04.1 LTS x86_64)

To run and build:

cd DIR
sh build.sh 
sh run.sh

Binarytrees

Language Time,s Memory, Mb
Java 0.59 282.2
C 5.08 32.4
Crystal 8.11 107.6
Ruby 27.92 115.5

Fannkuchredux

Language Time,s Memory, Mb
C 2.83 0.4
Crystal 4.22 1.3
Ruby 130.40 18.2

Fasta

Language Time,s Memory, Mb
C 2.21 0.4
Crystal 4.84 1.5
Ruby 81.69 162.4

Knucleotide

Language Time,s Memory, Mb
Go 1.70 31.8
Crystal 3.82 37.9
Ruby 21.82 89.2

Mandelbrot

Language Time,s Memory, Mb
C 10.13 0.4
Crystal 10.98 1.3
Ruby 140.04 17.9

Meteor

Language Time,s Memory, Mb
C 0.06 0.6
Crystal 0.16 1.5

NBody

Language Time,s Memory, Mb
C 1.59 0.4
Crystal 1.93 1.3
Ruby 91.01 7.3

Pidigits

Language Time,s Memory, Mb
C 0.85 0.9
Crystal 3.72 4.5
Ruby 6.35 125.8

Regexdna

Language Time,s Memory, Mb
Ruby 1.96 17.9
C 2.07 12.2
Crystal 2.15 24.2

Revcomp

Language Time,s Memory, Mb
C 0.23 3.6
Ruby 2.19 91.1
Crystal 3.30 463.3

Spectralnorm

Language Time,s Memory, Mb
C 6.72 0.4
Crystal 6.91 1.8
Ruby 220.34 11.4

Threadring

Language Time,s Memory, Mb
Crystal 0.24 3.3
Go 1.43 2.3
Erlang 1.89 17.1
Scala 6.42 1.5
Ruby 41.73 30.0
JRuby9K 51.48 280.6
JRuby 54.86 192.7
Rbx 109.96 111.5

TODO

  • chameneosredux

Versions

  • Crystal 0.19.2 [d81c32c] (2016-09-16)
  • gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
  • ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
  • go version go1.5.3 linux/amd64
  • Erlang/OTP 18 [erts-7.2] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]
  • Scala code runner version 2.11.6 -- Copyright 2002-2013, LAMP/EPFL
  • java version "1.8.0_45 Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
  • jruby 1.7.20 (1.9.3p551) 2015-05-04 3086e6a on Java HotSpot(TM) 64-Bit Server VM 1.8.0_45-b14 +jit [linux-amd64]
  • jruby 9.0.0.0 (2.2.2) 2015-07-21 e10ec96 Java HotSpot(TM) 64-Bit Server VM 25.45-b02 on 1.8.0_45-b14 +jit [linux-amd64]
  • rubinius 2.2.10 (2.1.0 bf61ae2e 2014-06-27 JI) [x86_64-linux-gnu]

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.