How you win— by checkmate or by a resignation— doesn't matter.
What matters is 1) whether you win, lose or draw and the difference between your rating and your opponent and 2) a statistical measure that looks at whether your rating is likely to be correct.
i only ever gain and lose 8 elo for each game. Even when i checkmate in a few moves or play horribly. everyone who dont play as good at me get in the 20s. any reason why?