diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-16 23:02:29 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-18 20:08:36 +0300 |
commit | f3c28a7b9aac81b67619378c67f72e8cbc0254b0 (patch) | |
tree | 6ef856dff7240ff120879f8b3f9f90d7cedf2ba8 /tests/embind | |
parent | ccb6ee201fbbc0add5b07808b9308ee9c9e28764 (diff) |
Do slightly fewer iterations of GameObject benchmark to make the test run a bit quicker.
Diffstat (limited to 'tests/embind')
-rw-r--r-- | tests/embind/embind.benchmark.js | 2 | ||||
-rw-r--r-- | tests/embind/embind_benchmark.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/embind/embind.benchmark.js b/tests/embind/embind.benchmark.js index 959358b6..f0f6e078 100644 --- a/tests/embind/embind.benchmark.js +++ b/tests/embind/embind.benchmark.js @@ -173,7 +173,7 @@ function _sum_float_benchmark_embind_js() { } function _move_gameobjects_benchmark_embind_js() { - var N = 100000; + var N = 10000; var objects = []; for(i = 0; i < N; ++i) { objects.push(Module['create_game_object']()); diff --git a/tests/embind/embind_benchmark.cpp b/tests/embind/embind_benchmark.cpp index 4a472686..8ce33bc8 100644 --- a/tests/embind/embind_benchmark.cpp +++ b/tests/embind/embind_benchmark.cpp @@ -284,7 +284,7 @@ void __attribute__((noinline)) sum_float_benchmark() void __attribute__((noinline)) move_gameobjects_benchmark() { - const int N = 100000; + const int N = 10000; GameObjectPtr objects[N]; for(int i = 0; i < N; ++i) objects[i] = create_game_object(); |