8456 shaares
201 private links
201 private links
8 results
tagged
performance
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.