Code Monkey home page Code Monkey logo

Comments (4)

jordanbray avatar jordanbray commented on August 27, 2024 1

I've performed a quick benchmark of pleco with chess_perft binary I wrote. Pleco does seem quite a bit slower than either shakmaty or this library (about a factor of 2.5 - depends on the position).

I'll do a more thorough analysis and update the chess_perft crate, with some graphs and whatnot.

Additionally, take a look at the chess_uci crate I wrote if you get a chance: https://github.com/jordanbray/chess_uci. It's not published on crates.io yet, but I hope to get it into a stable state soonish. My goal there is to deal with the uci protocol details and allow you to focus on the engine itself. Most of the pieces are there and it may make your life easier, if for nothing else than all the string parsing.

from chess.

jordanbray avatar jordanbray commented on August 27, 2024 1

One other thing, make sure to enable opt-level = 3 in your Cargo.toml when using this crate because rust does a really bad job of generating code without optimizations. A small performance boost can also be achieved with RUSTFLAGS="-C target-cpu=native" which allows the use of some bitwise instructions.

from chess.

jordanbray avatar jordanbray commented on August 27, 2024

Closing this in favor of jordanbray/chess_perft#1. This is where I keep the benchmarking code.

from chess.

yukw777 avatar yukw777 commented on August 27, 2024

Thanks for the quick and detailed response! I really appreciate it. I'll be using chess for my engine. :) Also thanks for pointing me to your uci library! I'll definitely take a look at it, too.

from chess.

Related Issues (20)

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.