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 performance tests to measure baselines #9

Open
softpsyche opened this issue May 12, 2013 · 2 comments
Open

Add performance tests to measure baselines #9

softpsyche opened this issue May 12, 2013 · 2 comments

Comments

@softpsyche
Copy link
Collaborator

Compare vs raw EF. Calculate overhead

@softpsyche
Copy link
Collaborator Author

INSERTS: cost of datamapper adds: 4.31% extra on top of EF insert cost.

500 inserts
Performance add datamapper time to complete:54.426113
Performance add raw time to complete:52.2669895
Press any key to exit

0.108852226 secs per datamapper insert
0.104533979 secs per raw ef insert

0.004318247 secs extra cost per insert on my machine (not a good metric, relative sizing more important)
4.131% extra cost per insert. Not bad at all IMO.

@softpsyche
Copy link
Collaborator Author

500 updates (insert then delete child repeated)
Performance update datamapper time to complete:13.0977492
Performance update raw time to complete:11.7436717
Press any key to exit

0.0261954984 secs per datamapper update
0.0234873434 secs per ef update

0.002708155 secs extra cost per update
11.53% extra cost per update.

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

No branches or pull requests

1 participant