centralized performance resources
This commit is contained in:
commit
50b15a1522
63 changed files with 328466 additions and 0 deletions
19
ocw/profiling/perf-tester.cc
Normal file
19
ocw/profiling/perf-tester.cc
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include <iostream>
|
||||
|
||||
void complex_method() {
|
||||
int i = 0x12323333- 1230*123213;
|
||||
long x = -23;
|
||||
std::cout << "x: " << x << '\n';
|
||||
while (--i) {
|
||||
x ^= (x - 1);
|
||||
for (int j = 0; j < 50; ++j) {
|
||||
x = x * x * x;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int main() {
|
||||
complex_method();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue