If you want to know if the Framework could reach the same battery life as the X1 comes standard with, the steps mentioned by @Animesh_Sahu and the thread Linux battery life tuning might give you answers on the Framework side (Linux though, I don’t believe there is a thread about Windows power tuning yet).
I have to agree with @feesh however: if you applied the same optimisation to the X1, it would for sure come out on top.