Re: [tor-relays] FreeBSD 13.1: clock_gettime(CLOCK_MONOTONIC_FAST) ~ 50 % performance gain

2022-06-22 Thread Fabian Keil
Andreas Kempe wrote on 2022-06-21 at 19:56:45: > For completeness sake, I upgraded my VM to 13.1 and ran my benchmark > again. The slowdown of CLOCK_MONOTONIC compared to > CLOCK_MONOTONIC_FAST is now only about 3 times. Thanks for looking into Tor performance on FreeBSD. I'm seeing similar

Re: [tor-relays] FreeBSD 13.1: clock_gettime(CLOCK_MONOTONIC_FAST) ~ 50 % performance gain

2022-06-21 Thread Andreas Kempe
On Tue, Jun 21, 2022 at 07:05:35PM +0200, Andreas Kempe wrote: > With this being the case, this solves itself for FreeBSD 13.1. The > system I was patching Tor on was a 13.0 system, I was convinced I had > upgraded my VMs and never actually checked the version. 13.0 does not > have the

Re: [tor-relays] FreeBSD 13.1: clock_gettime(CLOCK_MONOTONIC_FAST) ~ 50 % performance gain

2022-06-21 Thread Andreas Kempe
On Tue, Jun 21, 2022 at 12:31:08PM -0400, Alex Xu (Hello71) via tor-relays wrote: > Excerpts from Andreas Kempe's message of June 21, 2022 11:50 am: > > Hello everyone, > > > > I was doing some profiling on my two relays running on FreeBSD 13.1 > > and noticed that they were spending a lot of

Re: [tor-relays] FreeBSD 13.1: clock_gettime(CLOCK_MONOTONIC_FAST) ~ 50 % performance gain

2022-06-21 Thread Alex Xu (Hello71) via tor-relays
Excerpts from Andreas Kempe's message of June 21, 2022 11:50 am: > Hello everyone, > > I was doing some profiling on my two relays running on FreeBSD 13.1 > and noticed that they were spending a lot of time in clock_gettime() > which prompted me to have a look at the implementation. > > Time

[tor-relays] FreeBSD 13.1: clock_gettime(CLOCK_MONOTONIC_FAST) ~ 50 % performance gain

2022-06-21 Thread Andreas Kempe
Hello everyone, I was doing some profiling on my two relays running on FreeBSD 13.1 and noticed that they were spending a lot of time in clock_gettime() which prompted me to have a look at the implementation. Time implementation === The time implementation is abstracted in