clang-repl> %lib testb/vec.dylib
clang-repl> %lib testb/prime.dylib
clang-repl> #include<vector>
clang-repl> extern "C++" void print_n(std::vector<int> &v);
clang-repl> extern "C++" std::vector<int> findPrimes(int limit);
clang-repl> std::vector<int> v = findPrimes(10000);
clang-repl> print_n(v);
Test | User Time (s) | System Time (s) | User+System Time (s) | Wall Time (s) | Instructions |
---|---|---|---|---|---|
1 | 0.4579 | 0.0837 | 0.5416 | 0.7250 | 2,420,460,139 |
2 | 0.4648 | 0.0791 | 0.5438 | 0.7380 | 2,408,320,935 |
3 | 0.4543 | 0.0492 | 0.5035 | 0.5425 | 2,335,266,494 |
4 | 0.4597 | 0.0584 | 0.5181 | 0.6376 | 2,359,162,251 |
5 | 0.4629 | 0.0639 | 0.5268 | 0.6679 | 2,362,641,344 |
6 | 0.4617 | 0.0540 | 0.5157 | 0.5504 | 2,318,481,760 |
7 | 0.4633 | 0.0806 | 0.5440 | 0.7040 | 2,407,657,985 |
8 | 0.4590 | 0.0809 | 0.5399 | 0.7163 | 2,414,014,899 |
9 | 0.4591 | 0.0815 | 0.5407 | 0.7217 | 2,416,271,501 |
10 | 0.4633 | 0.0598 | 0.5231 | 0.6464 | 2,362,348,936 |
Test | User Time (s) | System Time (s) | User+System Time (s) | Wall Time (s) | Instructions |
---|---|---|---|---|---|
1 | 0.4751 | 0.1000 | 0.5751 | 0.7359 | 2,523,151,071 |
2 | 0.4737 | 0.0876 | 0.5613 | 0.7113 | 2,503,296,557 |
3 | 0.4822 | 0.0696 | 0.5518 | 0.6410 | 2,448,951,204 |
4 | 0.4709 | 0.0873 | 0.5581 | 0.6801 | 2,498,098,654 |
5 | 0.4683 | 0.0602 | 0.5286 | 0.5390 | 2,436,545,343 |
6 | 0.4696 | 0.0608 | 0.5303 | 0.5419 | 2,427,188,294 |
7 | 0.4833 | 0.0698 | 0.5531 | 0.6414 | 2,451,549,900 |
8 | 0.4706 | 0.0810 | 0.5516 | 0.6739 | 2,483,712,294 |
9 | 0.4833 | 0.0698 | 0.5531 | 0.6414 | 2,451,549,900 |
10 | 0.4706 | 0.0810 | 0.5516 | 0.6739 | 2,483,712,294 |
Metric | In-Process Execution | Out-Of-Process Execution |
---|---|---|
Min User+System Time (s) | 0.5286 | 0.5035 |
Max User+System Time (s) | 0.5751 | 0.5440 |
Average User+System Time (s) | 0.5474 | 0.5263 |
Min Wall Time (s) | 0.5390 | 0.5425 |
Max Wall Time (s) | 0.7359 | 0.7380 |
Average Wall Time (s) | 0.64798 | 0.66498 |
Min Instructions | 2,427,188,294 | 2,318,481,760 |
Max Instructions | 2,523,151,071 | 2,420,460,139 |
Average Instructions | 2470775551 | 2380462624 |