Linux top-tools: performance measurements

This article presents a short list of very useful tools which are used for getting some information about what’s going on in our Linux system. These tools show some of the system’s resources utilization and saturation. Top-tools share one common property, that is, give a snapshot of certain properties in real time. Also they work in command line mode so there is no need to have a graphics user interface, perfect for servers. Let’s see what we can get and measure.

Czytaj dalej Linux top-tools: performance measurements

Pierwszy wpis

To mój pierwszy wpis po polsku. Poprzednio umieściłem kilka artykułów w języku angielskim, w kolejce na publikacje czekają kolejne.
Jednak zdecydowałem się rozszerzyć działalność pisarską na język polski, poniekąd na prośbę kolegi a częściowo z chęci komentowania i opisywania spraw, które są związane z naszym podwórkiem.

Czytaj dalej Pierwszy wpis

std::vector vs sorted std::vector vs std::set

In this short article I’m going to make a comparison between std::vector, sorted std::vector and std::set. However, I’m going to focus only on one aspect – which collection is faster during lookup.

Looks like the answer is rather trivial – std::map and sorted std::vector offer access to any element in O(log n) time while unsorted std::vector offers linear finding. To be precise – std::vector + std::find as std::vector doesn’t have built-in find function. Indeed, sorted collections are winners… Or maybe the answer is not so trivial? Czytaj dalej std::vector vs sorted std::vector vs std::set