Giter VIP home page Giter VIP logo

Comments (4)

virtuoushub avatar virtuoushub commented on June 12, 2024

[updated to include more test runs]
I posit the difference in test runs has to do with the different IDEs used(Eclipse for the one minute, IntelliJ for the five minute), that and/or the way I am using Guice for DI. After further investigation, I was not creating a singleton via DI, and thus com.jed.core.MotherBrain.start() was getting called multiple times...

com.jed.* packages most used from a one minute on 2014-11-07 test using Mission Control

Stack Trace Sample Count Percentage(%)
com.jed.state.GameMap.update() 13 27.66
com.jed.core.QuadTree.clear() 3 6.383
com.jed.core.MotherBrain.start() 3 6.383
com.jed.core.QuadTree.getObjects() 2 4.255
com.jed.core.Collision$MinMax.(Collision, Boundary, Vector) 1 2.128
com.jed.actor.Boundary.getWorldPosition() 1 2.128
com.jed.actor.Player$Walking.update() 1 2.128
com.jed.core.Collision.compareTo(Object) 1 2.128
com.jed.core.QuadTree.insert(Entity) 1 2.128
com.jed.core.Collision.detectCollision() 1 2.128

com.jed.* packages most used from a five minute on 2014-11-08 test using Mission Control.

Stack Trace Sample Count Percentage(%)
com.jed.core.Collision.detectCollision() 8 5.298
com.jed.core.MotherBrain.start() 7 4.636
com.jed.core.QuadTree.insert(Entity) 6 3.974
com.jed.core.QuadTree.clear() 6 3.974
com.jed.core.QuadTree.(Vector, int, Rectangle, Displayable) 4 2.649
com.jed.state.GameMap.detectCollisions() 3 1.987
com.jed.core.QuadTree.getObjects() 2 1.325
com.jed.state.GameMap.update() 1 0.662
com.jed.actor.Boundary.getWorldPosition() 1 0.662
com.jed.state.GameMap.scrollMap() 1 0.662
com.jed.state.MapTile.draw() 1 0.662
com.jed.core.QuadTree.retrieve(List, Entity) 1 0.662
com.jed.actor.Player.draw() 1 0.662
com.jed.state.GameStateManager.draw() 1 0.662

com.jed.* packages most used from a one minute test on 2014-11-09 test using Mission Control.

Stack Trace Sample Count Percentage(%)
com.jed.state.GameMap.update() 20 42.553
com.jed.core.QuadTree.clear() 4 8.511
com.jed.core.QuadTree.insert(Entity) 4 8.511
com.jed.state.GameMap.drawMap() 3 6.383
com.jed.core.Collision.detectCollision() 2 4.255
com.jed.state.PlayState.getInput() 1 2.128

from fuzzy-octo-shame.

virtuoushub avatar virtuoushub commented on June 12, 2024

I totally have not written any unit tests, I updated the due date of this issues milestone to reflect this fact.

from fuzzy-octo-shame.

virtuoushub avatar virtuoushub commented on June 12, 2024

Five Minute Test Run using 0.1.8-SNAPSHOT

Stack Trace Sample Count Percentage(%)
com.jed.state.GameMap.update() 46 13.939
com.jed.core.QuadTree.insert(AbstractEntity) 26 7.879
com.jed.core.Collision.detectCollision() 9 2.727
com.jed.state.GameMap.detectCollisions() 5 1.515
com.jed.core.QuadTree.(Vector, int, Rectangle, Displayable) 4 1.212
com.jed.core.MotherBrain.start() 4 1.212
com.jed.state.GameMap.drawMap() 3 0.909
com.jed.core.QuadTree.getObjects() 2 0.606
com.jed.state.GameStateManager.update() 2 0.606
com.jed.core.Collision.resolveCollision() 1 0.303
com.jed.actor.Player.update() 1 0.303
com.jed.core.QuadTree.retrieve(List, AbstractEntity) 1 0.303

from fuzzy-octo-shame.

virtuoushub avatar virtuoushub commented on June 12, 2024

I still have not written any unit tests, I updated the due date of this issues milestone to reflect this fact.

from fuzzy-octo-shame.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.