It is pointless to compile C code with optimizations disabled and then compare speed.
Confused by perft results: VICE in C vs VICE in JS
Moderators: hgm, Rebel, chrisw
-
- Posts: 5566
- Joined: Tue Feb 28, 2012 11:56 pm
Re: Confused by perft results: VICE in C vs VICE in JS
-
- Posts: 792
- Joined: Wed Jul 19, 2006 9:58 am
Re: Confused by perft results: VICE in C vs VICE in JS
Well, there is the fact that the C code is not optimised at all, so you may not be comparing the best case of each.maksimKorzh wrote: ↑Fri Dec 11, 2020 8:54 pm
The problem is - HOW ON EARTH your JS version is only 1 second slower with "tricky position" (as you called it in your videos)
compared to the C version???
I'll take a look at the videos!
Regarding other engines, I'll need to dig out the code, it was a while ago.
-
- Posts: 771
- Joined: Sat Sep 08, 2018 5:37 pm
- Location: Ukraine
- Full name: Maksim Korzh
Re: Confused by perft results: VICE in C vs VICE in JS
I would greatly appreciate if you share it!Richard Allbert wrote: ↑Sat Dec 12, 2020 11:43 amWell, there is the fact that the C code is not optimised at all, so you may not be comparing the best case of each.maksimKorzh wrote: ↑Fri Dec 11, 2020 8:54 pm
The problem is - HOW ON EARTH your JS version is only 1 second slower with "tricky position" (as you called it in your videos)
compared to the C version???
I'll take a look at the videos!
Regarding other engines, I'll need to dig out the code, it was a while ago.
I'm your biggest fan.
Thanks to your videos I've learned to code and became a freelancer.
If you don't want me to expose it to public - no problem.
My email: freesoft.for.people@gmail.com
THANKS IN ADVANCE!
Didactic chess engines:
https://www.chessprogramming.org/Maksim_Korzh
Chess programming YouTube channel:
https://www.youtube.com/channel/UCB9-pr ... KKqDgXhsMQ
https://www.chessprogramming.org/Maksim_Korzh
Chess programming YouTube channel:
https://www.youtube.com/channel/UCB9-pr ... KKqDgXhsMQ