So it's like 2-3 clock cycles? Can you check the assembly output? What are error margins on this benchmark? I'd guess compiler removed that code altogether.
-
-
- Još 1 odgovor
Novi razgovor -
-
-
Benchmark source?
Novi razgovor -
-
-
May be - is it optimization of remove empty work 'defer' in go1.14?
-
Then the result will be the same as for no defer function but it's not
Kraj razgovora
Novi razgovor -
-
-
How come? Can you share some more details? :) Defer will be called on stack?
-
In best case scenarios defer func will be inlined be compiler
Kraj razgovora
Novi razgovor -
-
-
Woah!
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.