| OLD | NEW |
| 1 // Copyright 2014 The Native Client Authors. All rights reserved. | 1 // Copyright 2014 The Native Client Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <stdint.h> | 5 #include <stdint.h> |
| 6 #include <stdio.h> | 6 #include <stdio.h> |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 #include <unistd.h> | 9 #include <unistd.h> |
| 10 | 10 |
| 11 // @EXEMPTION[include] | 11 #include "native_client/tests/benchmark/framework.h" |
| 12 #include "./framework.h" | 12 #include "native_client/tests/benchmark/thread_pool.h" |
| 13 #include "./thread_pool.h" | |
| 14 | 13 |
| 15 | 14 |
| 16 using sdk_util::ThreadPool; // For sdk_util::ThreadPool | 15 using sdk_util::ThreadPool; // For sdk_util::ThreadPool |
| 17 | 16 |
| 18 namespace { | 17 namespace { |
| 19 | 18 |
| 20 const int kCellAlignment = 0x10; | 19 const int kCellAlignment = 0x10; |
| 21 const int kWidth = 2048; | 20 const int kWidth = 2048; |
| 22 const int kHeight = 2048; | 21 const int kHeight = 2048; |
| 23 | 22 |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 #endif | 229 #endif |
| 231 } | 230 } |
| 232 private: | 231 private: |
| 233 Life life_; | 232 Life life_; |
| 234 }; | 233 }; |
| 235 | 234 |
| 236 } // namespace | 235 } // namespace |
| 237 | 236 |
| 238 // Register an instance to the list of benchmarks to be run. | 237 // Register an instance to the list of benchmarks to be run. |
| 239 RegisterBenchmark<BenchmarkLife> benchmark_life; | 238 RegisterBenchmark<BenchmarkLife> benchmark_life; |
| OLD | NEW |