Understanding the performance gap between online and offline alignment algorithms