bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
graywolf has quit [Quit: WeeChat 4.0.4]
rapha has joined #ruby
<rapha>
hey all
<rapha>
in 2024, are there still reasons to use t0=Process.clock_gettime(Process::CLOCK_MONOTONIC);t1=...;t1-t0 over Benchmark.measure{}?
bambanxx has joined #ruby
jenrzzz has joined #ruby
<kjetilho>
no
<rapha>
cool
<kjetilho>
it's even present in Ruby 2.0 - how old Ruby do you really need to support?
<rapha>
i'm still on 2.7, but was asking about 3.3
<kjetilho>
Benchmark.measure is in Ruby 1.8.7, too (oldest I found - I guess I should look for changelog instead to find the actual answer)
jenrzzz_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
<rapha>
back then (1.x days) i think i remember the reason you were supposed to get Process#clock_gettime instead was that Benchmark#measure was too costly. not sure if memory serves well.
<adam12>
Isn't there Benchmark.realtime
karolis has quit [Ping timeout: 252 seconds]
_ht has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
<rapha>
Isn't that just the last column of #measure
rhe has quit [Quit: ~ *]
jenrzzz has joined #ruby
rhe has joined #ruby
<adam12>
rapha: No idea.
poems_ has quit [Ping timeout: 264 seconds]
poems has joined #ruby
joako has quit [Quit: quit]
joako has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
<[0x1eef]>
github.com/evanphx/benchmark-ips
<havenwood>
+1 benchmark/ips
<havenwood>
good stuff
jenrzzz has quit [Ping timeout: 260 seconds]
karolis has joined #ruby
<xkoncek>
what prevents ruby objects created from C code from being immediately GC'd?
fercell has quit [Ping timeout: 255 seconds]
fercell_ has joined #ruby
<[0x1eef]>
Usually you would introduce those Ruby objects into Ruby land by assigning them to constants, instance variables, etc.
jenrzzz has joined #ruby
user71 has joined #ruby
<xkoncek>
rb_gc_register_address?
jenrzzz has quit [Ping timeout: 256 seconds]
CrazyEddy has quit [Quit: Reconnecting]
crespire has joined #ruby
crespire1 has quit [Ping timeout: 268 seconds]
mrdlani has joined #ruby
jenrzzz has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 252 seconds]
mrdlani has quit [Quit: Leaving...]
mrdlani has joined #ruby
mrdlani has quit [Client Quit]
mrdlani has joined #ruby
mrldlani has joined #ruby
mrldlani has quit [Max SendQ exceeded]
CrazyEddy has joined #ruby
jenrzzz has joined #ruby
user23 has quit [Remote host closed the connection]
user23 has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
karolis has quit [Ping timeout: 255 seconds]
user23 has quit [Ping timeout: 250 seconds]
pascal_blaze has joined #ruby
ken_barber has joined #ruby
user23 has joined #ruby
pascal_blaze has quit [Ping timeout: 260 seconds]
weaksauce has joined #ruby
bambanxx has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
konsolebox has quit [Quit: Leaving]
karolis has joined #ruby
pascal_blaze has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
pascal_blaze has quit [Ping timeout: 255 seconds]
bambanxx has joined #ruby
bambanxx has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
karolis has quit [Ping timeout: 255 seconds]
bambanxx has joined #ruby
pascal_blaze has joined #ruby
pascal_blaze has quit [Ping timeout: 256 seconds]
gaussianblue has joined #ruby
jenrzzz has joined #ruby
mrdlani has quit [Quit: Leaving...]
pascal_blaze has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
_ht has quit [Remote host closed the connection]
nmollerup has quit [Quit: Leaving]
pascal_blaze has quit [Ping timeout: 268 seconds]
hightower2 has joined #ruby
user71 has quit [Quit: Leaving]
ken_barber47 has joined #ruby
ken_barber47 is now known as ken_barner
ken_barber has quit [Quit: Client closed]
ken_barner has quit [Quit: Client closed]
ken_barber has joined #ruby
ken_barber95 has joined #ruby
ken_barber has quit [Ping timeout: 250 seconds]
ken_barber95 has quit [Quit: Client closed]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
karolis has joined #ruby
bambanxx has joined #ruby
bambanxx has quit [Client Quit]
desnudopenguino1 has joined #ruby
pascal_blaze has joined #ruby
desnudopenguino has quit [Ping timeout: 272 seconds]
desnudopenguino1 is now known as desnudopenguino
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
jenrzzz has joined #ruby
pascal_blaze has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
pascal_blaze has joined #ruby
dostoyevsky2 has quit [Quit: leaving]
dostoyevsky2 has joined #ruby
pascal_blaze has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
user23 has quit [Remote host closed the connection]
jardsonto has quit [Quit: leaving]
bambanxx has joined #ruby
bambanxx has quit [Client Quit]
bambanxx has joined #ruby
mexen has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
pascal_blaze has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
mexen has left #ruby [#ruby]
gaussianblue has quit [Quit: leaving]
bambanxx has joined #ruby
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
donofrio_ has quit [Ping timeout: 252 seconds]
bambanxx has quit [Client Quit]
bambanxx has joined #ruby
jenrzzz has joined #ruby
bambanxx has quit [Client Quit]
bambanxx has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
bambanxx has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
pascal_blaze has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]