by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jason Frey
    @Fryguy
    what is master-5 vs after-5?
    Keenan Brock
    @kbrock
    before = before ancestry (it is run # 5 out of 7)
    master = now
    after = new pr to get rid of extra domain lookups
    Jason Frey
    @Fryguy
    ahhh
    yeah, so my goal was less database (regardless of time because I couldn't see anything in the Rails console), so it seems 50% less queries meets my goal pretty well :)
    though 700 queries is still a lot IMO
    what is the thing you are running to benchmark?
    Keenan Brock
    @kbrock
    https://github.com/kbrock/cli_mini_profiler - but I need to update to work with non forked version of https://github.com/MiniProfiler/rack-mini-profiler (sam saffron's thing)
    Jason Frey
    @Fryguy
    no i don't mean what tool...I mean what are you actually executing
    Keenan Brock
    @kbrock
    I also need to tap into Nick's goodness
    ooh
    lol
    an empty generic provision
    Jason Frey
    @Fryguy
    provision an empty service?
    Keenan Brock
    @kbrock
    yea
    one sec
    Jason Frey
    @Fryguy
    oh that's a really good one!
    ideally it should be like 0 queries haha
    Keenan Brock
    @kbrock
    yea
    well it is a few more than that
    Jason Frey
    @Fryguy
    that seems like a really good standalone test too
    like in rspec
    Keenan Brock
    @kbrock
    that is lucy's fault
    she thought it up
    Jason Frey
    @Fryguy
    then @lfu gets the :trophy:
    Keenan Brock
    @kbrock
    I'm using curl to create the service. need to figure out how to do that from ruby - then running simulate_workers to run it in a capture
    so we got rid of over 50% of the queries, and bringing back 87% fewer rows
    Jason Frey
    @Fryguy
    nice!
    Keenan Brock
    @kbrock
    but POpen.open3 is the biggest sink
    Nick LaMuro
    @NickLaMuro

    need to figure out how to do that from ruby

    You could cheese it by just using the rails app.post URL_I_AM_USING_IN_CURL

    Jason Frey
    @Fryguy
    I was thinking that
    Keenan Brock
    @kbrock
    ooh. nice. I was using \\curl URL_I_AM_USING_IN_CURL``
    Jason Frey
    @Fryguy
    ^ this is fun
    Nick LaMuro
    @NickLaMuro
    eventually keenan will make it work lol
    Keenan Brock
    @kbrock
    ugh - running that in backticks
    lol
    ^ literally
    Jason Frey
    @Fryguy
    backticks in backticks is a no-go here :laughing:
    Keenan Brock
    @kbrock
    `curl URL_I_AM_USING_IN_CURL`
    stuffit gitter
    Jason Frey
    @Fryguy
    :joy: :joy: :joy:
    Keenan Brock
    @kbrock
    thanks @NickLaMuro you had more faith in me than I did
    Nick LaMuro
    @NickLaMuro
    faith in your stubbornness I guess
    Keenan Brock
    @kbrock
    what? me? surely you wouldn't have seen that!
    Nick LaMuro
    @NickLaMuro
    ಠ_ಠ
    Keenan Brock
    @kbrock
    @NickLaMuro saw this one coming a mile away: kbrock/activerecord-hash_options#15
    Keenan Brock
    @kbrock
    thanks
    Nick LaMuro
    @NickLaMuro
    that was interesting, though surprised to find out it takes python like 3-4x longer to run the exact same kind of code... that was surprising. Wonder if it was how it handles large integers or something that causes the slowness. Or maybe the author was using python 2.7, which is very old at this point.
    Keenan Brock
    @kbrock
    yea, surprised me too. I assume that all python code is faster than ruby.
    So if ruby can't scale, python? forgetttaboutit
    the vm talk was very cool. I like the idea of an embedded ruby operand, like c and asm {}