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

Add pretty-printing to the performance test suite. #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ActivexDiamond
Copy link

Changed the printing of performance/* to display a pretty ASCII-style table. Should work anywhere with a monospace font selected. See results below.

Before:

class creation  0.040225
instance creation       0.004141
instance method invocation      0.000528
inherited method invocation     0.000512
class method invocation 0.000554
inherited class method invocation       0.001227

After:

|---------------------------------------------------|
|              process              |       ms      |
|---------------------------------------------------|
| class creation                    |  40.701000000 |
| instance creation                 |   4.580000000 |
| instance method invocation        |   0.509000000 |
| inherited method invocation       |   0.509000000 |
| class method invocation           |   0.577000000 |
| inherited class method invocation |   1.305000000 |
|---------------------------------------------------|

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