Go is 2-3 times slower than JS in a similar code. What makes Go slow in this specific code?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • gostdext

  • Lots of people don't ever look at channels, and in my experience they are often the simplest but least performant option. With generics its very easy to implement a generic lock free in memory queue which is my current go to for channel optimizations to avoid locks as memory overhead is nbd.

  • go-json

    Fast JSON encoder/decoder compatible with encoding/json for Go

  • go stdlib json encoding/decoding is incredibly slow, not sure for how much longer because there are drop in replacements now that I think are just as strict and feature parity.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts