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

The discrepancy in this benchmark is almost entirely copying the results of read(2) into a userspace buffer. OS caching is important, but it's not the whole story here.

As some other commenters pointed out, if you pre-load the file contents, the discrepancy goes away. Also, if you actually limit vert.x to 1 CPU, it gets erratic and loses any performance benefits.



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

Search: