Index: benchmarks/startup/startup.cc |
diff --git a/benchmarks/startup/startup.cc b/benchmarks/startup/startup.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4c38ba9bb59287d0c2d9bf50de40ec95e8490f7f |
--- /dev/null |
+++ b/benchmarks/startup/startup.cc |
@@ -0,0 +1,15 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include <stdlib.h> |
+ |
+#include "mojo/public/c/system/main.h" |
+ |
+MojoResult MojoMain(MojoHandle shell_handle) { |
+ // Terminate the process as soon as we reach the application entrypoint. The |
+ // testing script will instruct the shell to load this application and |
+ // measure the execution time, which reflects the startup performance. |
+ exit(0); |
+ return MOJO_RESULT_OK; |
+} |