You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We accidentally found a reproduction where derailed benchmarks is REALLY slow on a mac and 15x faster on a docker container on the SAME machine. Here's the repro: zombocom/derailed_benchmarks#136 (comment)
It looks like the vast majority of time is spent in get_process_mem
My theory is that the speed difference is due to shelling out to ps on a mac versus with linux we use the /proc file system.
If I replace the ps call with another system call such as echo 1000 then it still takes a long time (0m12.464s) however it is faster than the ps call. Removing the shell out entirely takes it down to 0m1.473s which is still slower than docker, but at least it's fast-ish. It looks like the majority of time comes from the shell out, then after than the ps command actually takes a long time to run. Finally there are some other mac/linux differences here, but this tells me we should focus on trying to remove the shell out command to ps somehow on get_process_mem
Maybe there is a faster way to get this data from mac.
The text was updated successfully, but these errors were encountered:
We accidentally found a reproduction where derailed benchmarks is REALLY slow on a mac and 15x faster on a docker container on the SAME machine. Here's the repro: zombocom/derailed_benchmarks#136 (comment)
It looks like the vast majority of time is spent in
get_process_mem
My theory is that the speed difference is due to shelling out to
ps
on a mac versus with linux we use the/proc
file system.If I replace the
ps
call with another system call such asecho 1000
then it still takes a long time (0m12.464s) however it is faster than theps
call. Removing the shell out entirely takes it down to0m1.473s
which is still slower than docker, but at least it's fast-ish. It looks like the majority of time comes from the shell out, then after than theps
command actually takes a long time to run. Finally there are some other mac/linux differences here, but this tells me we should focus on trying to remove the shell out command tops
somehow on get_process_memMaybe there is a faster way to get this data from mac.
The text was updated successfully, but these errors were encountered: