Giter Club home page Giter Club logo

einstein-csp's Introduction

einstein-csp

Einstein's Puzzle https://web.stanford.edu/~laurik/fsmbook/examples/Einstein'sPuzzle.html

❯ ./target/release/einstein-csp
+--------+-----------+--------+---------+-------+
| House  | Nation    | Drink  | Cigar   | Pet   |
+--------+-----------+--------+---------+-------+
| Yellow | Norwegian | Water  | Dunhill | Cat   |
+--------+-----------+--------+---------+-------+
| Blue   | Danish    | Tea    | Blend   | Horse |
+--------+-----------+--------+---------+-------+
| Red    | British   | Milk   | Pall    | Bird  |
+--------+-----------+--------+---------+-------+
| Green  | German    | Coffee | Prince  | Fish  |
+--------+-----------+--------+---------+-------+
| White  | Swedish   | Beer   | Master  | Dog   |
+--------+-----------+--------+---------+-------+

## Single thread
Benchmark 1: ./target/release/einstein-csp
  Time (mean ± σ):      44.8 ms ±   0.9 ms    [User: 35.7 ms, System: 1.0 ms]
  Range (min … max):    43.6 ms …  49.2 ms    60 runs

## multi thread
❯ hyperfine ./target/release/einstein-csp
Benchmark 1: ./target/release/einstein-csp
  Time (mean ± σ):      20.4 ms ±   2.0 ms    [User: 82.0 ms, System: 32.2 ms]
  Range (min … max):    16.7 ms …  28.3 ms    114 runs

## windows
PS D:\projects\rust\einstein-csp> hyperfine .\target\release\einstein-csp.exe     
Benchmark 1: .\target\release\einstein-csp.exe
  Time (mean ± σ):      14.7 ms ±   1.4 ms    [User: 0.0 ms, System: 0.0 ms]      
  Range (min … max):    11.2 ms …  20.5 ms    157 runs

einstein-csp's People

Contributors

kotokz avatar

Watchers

 avatar

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.