Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F64643165
test_speed.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, May 28, 09:35
Size
231 B
Mime Type
text/x-c
Expires
Thu, May 30, 09:35 (2 d)
Engine
blob
Format
Raw Data
Handle
17937732
Attached To
R7571 SP4E-TB-TL-FR
test_speed.cc
View Options
#include <iostream>
int
foo
(
const
int
&
i
)
{
return
i
+
18
;}
int
main
(){
unsigned
long
res
=
0
;
for
(
long
i
=
1
;
i
<
1000000000
;
++
i
){
res
+=
i
+
foo
(
i
);
}
std
::
cout
<<
"Hello, World!"
<<
res
<<
std
::
endl
;
return
0
;
}
Event Timeline
Log In to Comment