Comments (3)
js version runs faster
Yes, I think so too!
There are 2 async libraries in python for postgres: one's libpq-wrapper and another uses raw connection, and second library works much faster!
from techempower.
Hi and welcome. I did indeed implement a wrapper around libpg here: https://github.com/just-js/modules/tree/master/pg but i could not get perf with it to be as good as i thought it should be. believe it or not the js version runs faster, especially for the multi query and multi update benchmarks. i think this is something to do with blocking reads or writes in libpg but i need to revisit it.
This should also come with a big caveat that it is alpha level code and likely has lots of bugs and cases it is not handling correctly. The goal for the moment for me is to establish a performance baseline and add features and functionality from there.
I am hoping to write up a a few articles on this over coming weeks. You can keep an eye on the main repo here: https://github.com/just-js and my currently empty blog here: https://billywhizz.io/.
from techempower.
you can see how well it does on the multi/pipeline tests here: https://www.techempower.com/benchmarks/#section=test&runid=3e069eac-3b1d-4f77-bb06-2bceb4172dea&hw=ph&test=query&a=2 and here https://www.techempower.com/benchmarks/#section=test&runid=3e069eac-3b1d-4f77-bb06-2bceb4172dea&hw=ph&test=update&a=2
from techempower.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from techempower.