Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A customer of mine has the implementation of several API endpoints starting with a simulate_slow_connection method that basically sleeps for a random amount of ms. I think it sleeps 0 ms when running tests and definitely sleeps 0 ms in production. So it's never super fast even on $3,000 Macs.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: