Giter Club home page Giter Club logo

Comments (3)

RekGRpth avatar RekGRpth commented on May 25, 2024 1

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.

billywhizz avatar billywhizz commented on May 25, 2024

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.

billywhizz avatar billywhizz commented on May 25, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.