Giter Club home page Giter Club logo

lang-bench's People

Contributors

bbc2 avatar stratus51 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

lang-bench's Issues

Add some primes algorithm variants

A few variants of the primes algorithm might be worth exploring:

  • An algorithm where the prime testing function stops looking for a divider after reaching the square root of the tested number. This will introduce the square root calculus in the algorithm allowing to compare the performance of float calculus instead of just integers.
    We are assuming here that most square root implemented algorithms are more or less the same which might not be true. Also it is possible that in most languages the square calculus just call the C implementation, which means that any comparisons of performance between those languages might not be relevant.
  • An algorithm where we always test all the dividers even if we found one. This would remove a conditional branching from the algorithm which might influence the performances and could give an interesting insight on how branching can affect the performances of different languages.
  • An algorithm where the array of primes is pre allocated instead of dynamically allocated. This should remove the influence of the different languages strategies about dynamic allocations (if their implementation was using dynamic allocation).

These variants highly influence the algorithm complexity so comparing the performances of a language across those makes no sense. However, studying the relative speed of the language compared to the others across the different algorithms might be interesting.

Add a result storage system

We need to find a suitable way of storing the results.

Accessibility:

  • The results should all be stored at the same place. Git repository? Some file hosting service?
  • The results should be stored in a structured way that allows to easily fetch some pertinent sub groups of results: benchmark version (git tag/hash)? target type (server/laptops/desktop computers)? Algorithms? ...

Reliability / reproducibility:

  • The results should be dated.
  • The results should contain the git hash.
  • The results should contain target information: CPU, RAM, OS...
  • The results should contain context information: battery level (can influence CPU clock), external CPU usage monitoring (measure CPU usage 1 minute before running the benchmark for example), external Disk usage (which could also indicate external activity like a surprise antivirus scan).

Optimization:

  • There should be a way to run only the tests that have never been run for this target. We could also give a target commit that would be the minimum version of the benchmark under which the a ran test would not considered as done.

I think this would be a good start. Any suggestions?

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.