Boost logo

Boost Users :

Subject: Re: [Boost-users] boost asio synchronous vs asynchronous operations performance
From: Bjorn Reese (breese_at_[hidden])
Date: 2014-03-30 08:00:50

On 03/28/2014 11:21 AM, Niall Douglas wrote:

> Out of curiosity, how many CPU cycles per op in your ASIO test case?
> AFIO seems to need ~9,000 CPU cycles per op processed, half of which
> is spent spinning on CAS locks - I would assume that ASIO can knock
> that down by two thirds?

1000 cycles/op -- measured via io_service::do_run_once().

It locks/unlocks four times per operation, which accounts for a total
of 20% of the CPU time.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at