Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66512133
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, Jun 11, 00:53
Size
231 B
Mime Type
text/x-c
Expires
Thu, Jun 13, 00:53 (2 d)
Engine
blob
Format
Raw Data
Handle
18233808
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