Giter Site home page Giter Site logo

zig_benchmarksgame's Introduction

zig_benchmarksgame

benchmarksgame implementations in zig

https://benchmarksgame-team.pages.debian.net/benchmarksgame/description/summary.html

Until I figure out how to publish these solutions on the benchmarksgame website, I will keep them here.

measurements

Some very naive performance measurements. These are simply first run timings.

OS: Debian GNU/Linux 10 (buster) x86_64
CPU: Intel i7-4790 (8) @ 4.000GHz

nbody

$ time ./nbody.gcc-8.gcc_run 50000000 #c
-0.169075164
-0.169059907

real	0m2.501s
user	0m2.479s
sys	0m0.012s
$ time ./nbody.zig-1.run 50000000 #zig
-0.169075164
-0.169059907

real	0m2.483s
user	0m2.483s
sys	0m0.000s

spectralnorm

$ time ./spectralnorm.gcc-5.gcc_run 5500 #c
1.274224153

real	0m0.636s
user	0m4.562s
sys	0m0.028s
$ time ./spectralnorm 5500 #zig
1.274224153

real	0m0.586s
user	0m4.291s
sys	0m0.052s
$ time ./spectralnorm.go.run 5500 #go
1.274224153

real	0m1.141s
user	0m4.514s
sys	0m0.004s
# TODO: make this concurrent
$ time ./spectralnorm.go.zig.run 5500 #zig
1.274224153

real	0m4.399s
user	0m4.377s
sys	0m0.016s

pidigits

$ time ./pidigits.gcc-1_run 10000 #c
...
real	0m0.646s
user	0m0.645s
sys	0m0.000s
$ time ./pidigits-gmp 10000 #zig
...
real	0m0.642s
user	0m0.638s
sys	0m0.004s

zig_benchmarksgame's People

Contributors

travisstaloch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zig_benchmarksgame's Issues

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.