Code Monkey home page Code Monkey logo

Comments (9)

gjohnson avatar gjohnson commented on May 12, 2024

Yikes, most likely the multipart stuff. Perhaps the buffering and looping of buffered buffers buffers buffer? lol

from axon.

tj avatar tj commented on May 12, 2024

hahahaha yeah, meh for now, we can look into that for the next release

from axon.

gjohnson avatar gjohnson commented on May 12, 2024

Got any feelings on net.Socket.ondata()? I messed around with that and FreeList for the message stuff.

Master:

pub bound
sending 1000 per tick
sending 1023 byte messages
  [401464 ops/s] [81601]^C

      min: 1792 ops/s
     mean: 268004 ops/s
   median: 388253 ops/s
    total: 81656 ops in 2.83s
  through: 261.72265625 mb/s

My "gofaster" branch

pub bound
sending 1000 per tick
sending 1023 byte messages
  [37477 ops/s] [99801]^C

      min: 1704 ops/s
     mean: 300978 ops/s
   median: 424153 ops/s
    total: 99917 ops in 2.556s
  through: 293.923828125 mb/s

from axon.

tj avatar tj commented on May 12, 2024

hmm that seems like something the JIT should take care of after it starts to optimize. I forget exactly what but I think the freelist was just for the http parsers since they were more expensive to construct for whatever reason

from axon.

tj avatar tj commented on May 12, 2024

im going to close this for now, we can still look into it but my initial benchmarks were reaallllly unrealistic anyway

from axon.

tj avatar tj commented on May 12, 2024

we'll have to update the docs though after the next release

from axon.

tj avatar tj commented on May 12, 2024

we might want to look at --trace-inlining too I see a few of our calls in there

from axon.

tj avatar tj commented on May 12, 2024

looks like it's not optimizing Socket#pack either which is pretty critical haha

from axon.

gjohnson avatar gjohnson commented on May 12, 2024

LOL yeah that is an important one. Sounds good!

from axon.

Related Issues (20)

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.