Skip to content

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

Closed
nigrosimone wants to merge 0 commit intobrianc:masterfrom
nigrosimone:master
Closed

feat(benchmark): compare the latest version of pg against the current source code#3389
nigrosimone wants to merge 0 commit intobrianc:masterfrom
nigrosimone:master

Conversation

@nigrosimone
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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