Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: tests/benchmark/benchmark_nbody.cc

Issue 993003004: Delete flaky benchmark test (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Fix dependencies. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/benchmark/benchmark_life.cc ('k') | tests/benchmark/benchmark_nbody_c.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include <stdint.h>
6 #include <stdio.h>
7 #include <stdlib.h>
8 #include <string.h>
9 #include <unistd.h>
10
11 #include <string>
12
13 // @EXEMPTION[include]
14 #include "./framework.h"
15
16
17 extern "C" {
18 int main_nbody(int argc, const char* argv[]);
19 }
20
21 namespace {
22
23 // Wrap NBody in benchmark harness
24 class BenchmarkNBody : public Benchmark {
25 public:
26 virtual int Run() {
27 const char *args[] = {"nbody", "500000"};
28 return main_nbody(2, args);
29 }
30 virtual const std::string Name() { return "NBody"; }
31 virtual const std::string Notes() { return "c #1 version"; }
32 };
33
34 } // namespace
35
36 // Register an instance to the list of benchmarks to be run.
37 RegisterBenchmark<BenchmarkNBody> benchmark_nbody;
OLDNEW
« no previous file with comments | « tests/benchmark/benchmark_life.cc ('k') | tests/benchmark/benchmark_nbody_c.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698