| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include <stdio.h> | 5 #include <stdio.h> |
| 6 | 6 |
| 7 #include "bin/file.h" | 7 #include "bin/file.h" |
| 8 | 8 |
| 9 #include "vm/benchmark_test.h" | 9 #include "vm/benchmark_test.h" |
| 10 #include "vm/dart.h" | 10 #include "vm/dart.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 fprintf(stdout, "%s\n", this->name()); | 40 fprintf(stdout, "%s\n", this->name()); |
| 41 run_matches++; | 41 run_matches++; |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 | 44 |
| 45 | 45 |
| 46 void Benchmark::RunBenchmark() { | 46 void Benchmark::RunBenchmark() { |
| 47 if ((run_filter == kAllBenchmarks) || | 47 if ((run_filter == kAllBenchmarks) || |
| 48 (strcmp(run_filter, this->name()) == 0)) { | 48 (strcmp(run_filter, this->name()) == 0)) { |
| 49 this->Run(); | 49 this->Run(); |
| 50 OS::Print("%s(%s): %" Pd "\n", | 50 OS::Print("%s(%s): %" Pd64 "\n", |
| 51 this->name(), this->score_kind(), this->score()); | 51 this->name(), this->score_kind(), this->score()); |
| 52 run_matches++; | 52 run_matches++; |
| 53 } else if (run_filter == kList) { | 53 } else if (run_filter == kList) { |
| 54 fprintf(stdout, "%s\n", this->name()); | 54 fprintf(stdout, "%s\n", this->name()); |
| 55 run_matches++; | 55 run_matches++; |
| 56 } | 56 } |
| 57 } | 57 } |
| 58 | 58 |
| 59 | 59 |
| 60 static void PrintUsage() { | 60 static void PrintUsage() { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 116 } |
| 117 return 0; | 117 return 0; |
| 118 } | 118 } |
| 119 | 119 |
| 120 } // namespace dart | 120 } // namespace dart |
| 121 | 121 |
| 122 | 122 |
| 123 int main(int argc, const char** argv) { | 123 int main(int argc, const char** argv) { |
| 124 return dart::Main(argc, argv); | 124 return dart::Main(argc, argv); |
| 125 } | 125 } |
| OLD | NEW |