by a hair vs hardly

by a hair

hardly

adv
  • Barely, only just, almost not. 

intj
  • Not really. 

How often have the words by a hair and hardly occurred in a corpus of books? (source: Google Ngram Viewer )