OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 // Some portions Copyright (c) 2009 The Chromium Authors. |
| 5 // |
| 6 // Microbenchmark of getpid() |
| 7 #include "microbenchmark/microbenchmark.h" |
| 8 |
| 9 #include <syscall.h> |
| 10 namespace chromeos { |
| 11 namespace benchmarks { |
| 12 |
| 13 static void GetPid(bool scaffold_only) { |
| 14 if (!scaffold_only) syscall(__NR_getpid); |
| 15 } |
| 16 CHROMEOS_MICROBENCHMARK(GetPid, 1000000); |
| 17 |
| 18 } // namespace benchmarks |
| 19 } // namespace chromeos |
OLD | NEW |