blob: ec07c5822e49d5620078fb7a96411598c792a89d [file] [log] [blame]
Will Drewryb5518472009-12-10 12:31:47 -08001// 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//
5// Microbenchmark of getpid()
6#include "microbenchmark/microbenchmark.h"
7
8#include <syscall.h>
9namespace chromeos {
10namespace benchmarks {
11
12static void GetPid(bool scaffold_only) {
13 if (!scaffold_only) syscall(__NR_getpid);
14}
15CHROMEOS_MICROBENCHMARK(GetPid, 1000000);
16
17} // namespace benchmarks
18} // namespace chromeos