9422 shaares
228 private links
228 private links
9 results
tagged
performance
Why io_uring is so much pertinent for softwares? Because io_uring it is meant asynchronous I/O storage operations addressing performance issues with similar interfaces provided by functions like read()/write() or aio_read()/aio_write() etc. for operations on data accessed by file descriptors.
The io_uring kernel interface was adopted in Linux kernel version 5.1 to resolve the deficiencies of Linux AIO.
Add snippets to get statistics from Core Web Vitals
Kafka has a good throughput with sequential Writes and Reads.
Kafka can move a lot of data because of the zero copy read principle:
Before:
- Disc to OS buffer
- Write the content of the OS buffer to the RAM
- Copy the data to the application Buffer
- Copy the data back to the socket buffer
- Copy the data from the socket to the Network Interface Chip buffer and send it
With zero-copy read principle:
- Read from the disc and load it into the OS Buffer
- Directly copy to the NIC Buffer (the CPU is not involved)
Benchmarking javascript snippets :)
TL;DR
You should probably avoid benchmarking branchy code over small problems.