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 some performance tests #75

Merged
merged 2 commits into from
Feb 19, 2025
Merged

Add some performance tests #75

merged 2 commits into from
Feb 19, 2025

Conversation

chu11
Copy link
Member

@chu11 chu11 commented Feb 19, 2025

For future tweaks of libgenders where we may begin to think of trading off parsing time for querying time or vice versa.

For fun, before and after of recent bottle neck fixes.

Get all nodes                                                                                                                               
real 1.85                                                                                                                                   
Get all attrs                                                                                                                               
real 1.78                                                                                                                                   
Get all attrs for 1 node                                                                                                                    
real 1.82                                                                                                                                   
Get all nodes with attr                                                                                                                     
real 1.82                                                                                                                                   
Get all values of altname                                                                                                                   
real 1.81                                                                                                                                   
Get all nodes                                                                                                                               
real 0.53                                                                                                                                   
Get all attrs                                                                                                                               
real 0.49                                                                                                                                   
Get all attrs for 1 node                                                                                                                    
real 0.49                                                                                                                                   
Get all nodes with attr                                                                                                                     
real 0.52                                                                                                                                   
Get all values of altname                                                                                                                   
real 0.52                     

Problem: In the future some tweaks to libgenders may begin to trade
off parsing time for querying time.  But we have no simple benchmarks
to test if those tradeoffs are worth it.

Add some simple performance tests to the testsuite.
Add a 16k node, 300 attribute genders db which allows us to test issues
at much larger scales.

Fixes chaos#71
Problem: There have been changes to configure.ac.  The
build system needs to be regenerated.

Run ./autogen.sh to regenerate everything.  Add new Makefile.in
files.
@chu11 chu11 force-pushed the performance_tests branch from cd466ac to 4f4d931 Compare February 19, 2025 20:01
@chu11 chu11 merged commit 04c8561 into chaos:master Feb 19, 2025
1 check passed
@chu11 chu11 deleted the performance_tests branch February 19, 2025 20:26
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