How fast you can play Stockfish?

Discussion of chess software programming and technical issues.

Moderator: Ras

Jouni
Posts: 3621
Joined: Wed Mar 08, 2006 8:15 pm
Full name: Jouni Uski

How fast you can play Stockfish?

Post by Jouni »

In CuteChess or similar interface. 10ms for move? 1ms? 100μs? I am just curious :) .
Jouni
Witek
Posts: 87
Joined: Thu Oct 07, 2021 12:48 am
Location: Warsaw, Poland
Full name: Michal Witanowski

Re: How fast you can play Stockfish?

Post by Witek »

Not sure what you're asking about exactly, but in general can't go below 1ms per move (that's the UCI time resolution)
Author of Caissa Chess Engine: https://github.com/Witek902/Caissa
dangi12012
Posts: 1062
Joined: Tue Apr 28, 2020 10:03 pm
Full name: Daniel Infuehr

Re: How fast you can play Stockfish?

Post by dangi12012 »

If you want high performance engine vs engine you have to directly link the respective DLLs into a management executable.
The path over stdio inclusive parsing the strings is way too slow.

Forget GUI- way to slow (because most GUIs are synchronous)

Only then you can even think about time controls below 1ms.
Does it make sense to play that fast?
Not really you can cap the number of nodes in UCI to achieve a minimum level of play. And have as many instances as you like if nodes per second are comparable.
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
Jouni
Posts: 3621
Joined: Wed Mar 08, 2006 8:15 pm
Full name: Jouni Uski

Re: How fast you can play Stockfish?

Post by Jouni »

With fixed nodes You can play very fast in CuteChess GUI. From test game 500 nodes per move:

Code: Select all

48. Qg5+ {+12.44/3 0.001s} Kf3 {-6.81/7 0.001s} 49. Qf6+ {+11.84/4 0s}
Ke3 {-6.81/7 0s} 50. Qg5+ {+11.84/3 0s} Kf3 {-5.20/8 0s} 51. Kc2 {+8.77/3 0s}
Rh2+ {-4.00/6 0.001s} 52. Kb3 {+10.93/4 0s} d3 {-4.33/6 0s}
53. Kb4 {+10.37/3 0s} d2 {-3.07/7 0s} 54. Rc3+ {+9.49/4 0.001s}
Ke2 {-4.42/7 0.001s} 55. Qg4+ {+9.77/4 0s} Kf2 {-5.64/7 0s}
56. Qf4+ {+11.31/4 0.001s} Ke1 {-7.85/6 0.001s} 57. Qxe4+ {+10.60/4 0s}
Kd1 {-6.64/7 0s}
Some moves below 1ms :) .
Jouni
OliverBr
Posts: 796
Joined: Tue Dec 18, 2007 9:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch

Re: How fast you can play Stockfish?

Post by OliverBr »

If you are interested:
OliThink plays 4000 games in less than 2 minutes with time control 400/1 (One second for 400 moves, being 2.5ms for move) and there is no issue with time flagging. Using cutechess-cli.
Playing faster like 800/1 yields in too many draws, still there is no issue with time control.

Funny Fact: The faster the time control, the better OliThink performs against any other engine, even Stockfish. It's built for speed, not so much for chess knowledge.
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink