Confused by perft results: VICE in C vs VICE in JS

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

syzygy
Posts: 5566
Joined: Tue Feb 28, 2012 11:56 pm

Re: Confused by perft results: VICE in C vs VICE in JS

Post by syzygy »

maksimKorzh wrote: Fri Dec 11, 2020 7:04 pm while C is compiled without optimizations
It is pointless to compile C code with optimizations disabled and then compare speed.
Richard Allbert
Posts: 792
Joined: Wed Jul 19, 2006 9:58 am

Re: Confused by perft results: VICE in C vs VICE in JS

Post by Richard Allbert »

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???
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.

I'll take a look at the videos!

Regarding other engines, I'll need to dig out the code, it was a while ago.
User avatar
maksimKorzh
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

Post by maksimKorzh »

Richard Allbert wrote: Sat Dec 12, 2020 11:43 am
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???
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.

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 would greatly appreciate if you share it!
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!