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

feat(benchmark): compare the latest version of pg against the current source code #3389

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

Conversation

nigrosimone
Copy link
Contributor

@nigrosimone nigrosimone commented Feb 19, 2025

This benchmark compare the latest version of pg against the current source code.

  • pg-latest: is the latest version of pg published on npm
  • pg-current: is the current source code
cd bench
npm install
npm run bench

output:

> pg-latest
< pg-latest; 28646ms
> pg-current
< pg-current; 32827ms
AccessCase { 'pg-latest': 49.71, 'pg-current': 45 }
CloneUsingAssignCase { 'pg-latest': 45.44, 'pg-current': 66.21 }
CloneUsingSpreadCase { 'pg-latest': 15.15, 'pg-current': 8.25 }
KeysCase { 'pg-latest': 7.69, 'pg-current': 10.06 }
ValuesCase { 'pg-latest': 19.32, 'pg-current': 21.48 }

It can be useful to understand if changes are introducing slowness or benefits

@nigrosimone nigrosimone reopened this Feb 19, 2025
@brianc
Copy link
Owner

brianc commented Mar 10, 2025

whoah this is really cool! Sorry for delay just got back from Chile (I live in Texas, btw) - its quite a big dose of code! I'll take a comb through it tomorrow morning. Thanks a lot!

@nigrosimone
Copy link
Contributor Author

Welcome back! 😊

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.

2 participants