Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark test #181

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Benchmark test #181

wants to merge 3 commits into from

Conversation

workinKeith
Copy link
Contributor

Benchmark rates the performance of the device based on how long it
takes the app to add 5000 empty entities to the stage. The higher the
number the better the performance.

Call Benchmark.start(functionName). functionName will be called when
the test is complete. You can also call Benchmark.results() to get the
value

From my own tests

  • low performance: under 2000
  • high performance: above 2000

Benchmark rates the performance of the device based on how long it
takes the app to add 5000 empty entities to the stage.  The higher the
number the better the performance.

Call Benchmark.start(functionName). functionName will be called when
the test is complete.  You can also call Benchmark.results() to get the
value

From my own tests
- low performance: under 2000
- high performance: above 2000
cleaning code
Adding 5000 entites to the stage caused a maximum call stack error in
html release build.  Benchmark now adds 5000 empty pointer disabled
sprites to one entity added to the stage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant