All is good now, it was problem with windows and bios limiting power and clock speed.
Whitemuddy
I think the mystery is solved I get now 38k in r23. For some reason HWInfo was showing wrong max power limits. I had to change IccMax to 500A (I will decrease it later) and also I had to change Windows power plan to balanced instead of performance. I'm very grateful for your help everyone.
I have added Core Clocks and Core Effective Clocks to the pictures. If you need anything else let me know. https://imgur.com/a/R1pxQKX
I haven't set up any temperature limits and none are turned on.
From what I saw the power limits are set to maximum (about 4kW)
I do have XMP II enabled.
Yes they are set to 4kW. I don't think it is limited or throttling in any way. At least from what I can see in Intel XTU or HWInfo.
I just have made a couple of screenshots while running cinebench r23. Here is the link to the pictures: https://imgur.com/a/R1pxQKX
My specs are: CPU: I9 13900k GPU: Asus Rtx4070ti MB: Asus z790 hero CPU cooler: Kraken 360mm AiO RAM: G.Skill Trident Z5 RGB, DDR5, 32 GB, 6400MHz, CL32 PSU: BeQuiet! Straight power 11 750w SSD: 2x Samsung 500gb 970 EVO plus
No, I have a fresh install of windows 10 on my PC, so that wasn't the problem.