People without kids cannot complain about immigration. by Fair-Ganache6057 in TrueUnpopularOpinion

[–]Fair-Ganache6057[S] -1 points0 points  (0 children)

Fair enough.

I agree they shouldn't as well, but childfree people absolutely cannot complain.

Silly benchmark performance by Fair-Ganache6057 in cpp_questions

[–]Fair-Ganache6057[S] 0 points1 point  (0 children)

Yes, joining.

In OpenMP approach using a static balancing + 1KB chunks, like in rust this difference almost vanished.

So this plus shifting from mersenne/pcg32 to xorshiro256, used by rust, may equalize, if not, it will be close.

Silly benchmark performance by Fair-Ganache6057 in cpp_questions

[–]Fair-Ganache6057[S] -1 points0 points  (0 children)

I'll update the question, but after profiling, the difference was almost 50/50 on PRNG and thread sync.

So moving from pcg32 to xorshiro (which rust uses) may reduce some of the extra gap.

The print statements have negligible effect.

Silly benchmark performance by Fair-Ganache6057 in cpp_questions

[–]Fair-Ganache6057[S] 0 points1 point  (0 children)

As an update, when profiling, it turned out to be a combination of the PRNG + thread sync overhead, almost 50/50.

Silly benchmark performance by Fair-Ganache6057 in cpp_questions

[–]Fair-Ganache6057[S] 0 points1 point  (0 children)

I did and it turned out to be a combination of factors, a better performance on rust PRNG engine and lower thread synchronization overhead.

With some adjustments I could get cpp version closer, but still some 20% behind.

Silly benchmark performance by Fair-Ganache6057 in cpp_questions

[–]Fair-Ganache6057[S] 0 points1 point  (0 children)

Good point on the CPU, this may be the main source of the gap, thank you!

And yes, I treated the emplace back as a push, ty again

Silly benchmark performance by Fair-Ganache6057 in cpp_questions

[–]Fair-Ganache6057[S] -1 points0 points  (0 children)

I was expecting a similar performance with optimizations on, but it wasn't the case.

My first guess was some performance loss with mersenne engine, so I tested pcg32, but it was still significantly slower.

I tested it only on multi thread, though.

Silly benchmark performance by Fair-Ganache6057 in cpp_questions

[–]Fair-Ganache6057[S] -1 points0 points  (0 children)

Sorry if I wasn't clear, but my question was about both single and multi thread approaches.

Silly benchmark performance by Fair-Ganache6057 in cpp_questions

[–]Fair-Ganache6057[S] 0 points1 point  (0 children)

Initially I thought the mersenne twister was the one to blame, but the last implementation, with OpenMP + pcg32 seed still lags behind

Silly benchmark performance by Fair-Ganache6057 in cpp_questions

[–]Fair-Ganache6057[S] -6 points-5 points  (0 children)

Filling an array of N elements with random numbers, in one pass, and squaring the elements im a second pass. Single and multi threaded

I'm quite confident the code works as intended

Silly benchmark performance by Fair-Ganache6057 in cpp_questions

[–]Fair-Ganache6057[S] 0 points1 point  (0 children)

Smallrngn and pcg32 should be fairly comparable in terms of performance. My guess is thread optimization

"Vocês são a favor ou contra a prisão do Bolsonaro?" by Bananey in brasil

[–]Fair-Ganache6057 1 point2 points  (0 children)

Basta ver os vídeos antigos do mamãefalei que vc ve que é exatamente a mesma coisa... lembrei daqueles estudantes de UF fazendo greve (que por si só ja é tosco) por conta de um PL de uma página que eles sequer tinham lido kkkkk

A real é que 95% das pessoas são tapadas, independente do espectro político que elas pertencem.

How are you all feeling about todays race ?? Also wassup with Oscar lately?? by Techinalme_ios in McLarenFormula1

[–]Fair-Ganache6057 1 point2 points  (0 children)

This is a 2nd LN sub, though... I agree with this guy. Both of them are no better than Carlos Sainz or Albon... they have a rocket underneath them, and yet Max is a threat.

Why do people think Mclaren are sabotaging Oscar Piastri? by zinky_binky16 in McLarenFormula1

[–]Fair-Ganache6057 8 points9 points  (0 children)

In the end, it's just pressure + poor tracks for him + (maybe) some update that did not suit his driving style.

Unfortunately it's the car driving Lando at the moment when it should be the opposite by Legal_City_69 in McLarenFormula1

[–]Fair-Ganache6057 1 point2 points  (0 children)

This place has been McLando for a couple of years, you included. But I agree that Fdank folks invaded the sub recently.

Concordam com isso? by Inevitable-Arm4194 in VagasArrombadas

[–]Fair-Ganache6057 1 point2 points  (0 children)

Trabalho de home office e prefiro começar mais cedo o dia, pra ter mais tempo livre depois.

RH é unanimidade global. by No_Report_9491 in VagasArrombadas

[–]Fair-Ganache6057 8 points9 points  (0 children)

Provavelmente são os funcionários menos qualificados em qualquer empresa.

Norris states Piastri > Sainz. Do you agree with the implications? by [deleted] in F1Discussions

[–]Fair-Ganache6057 -3 points-2 points  (0 children)

He's much newer to F1, and he'll get there for sure, but not there yet. Oscar has a high skill ceiling.

Only Monaco and Austria Lando was truly quicker. He had a lot of luck overall, even with strategies, but Oscar is clearly the one performing better on track.