Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

unique_ptr vs new/delete, gcc

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.52 sec, absolute running time: 1.84 sec, cpu time: 1.7 sec, memory peak: 3 Mb, absolute service time: 2,37 sec 
fork mode |  history
r = 399999998
Simple test with unique_ptr done in 0
r = 399999998
Simple test with new/delete done in 0
r = 400001194
Complex test with unique_ptr done in 851
r = 400001194
Complex test with new/delete done in 850

    
                
λ
.NET NoSQL database for rapid development