Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
qsantos
· 2y ago · 0 comments
I'll write an article on the flamegraphs specifically, but to get the data, just follow Julia's article!
https://jvns.ca/blog/2017/03/19/getting-started-with-ftrace/
Comments
[–]
ismaildonmez
2y ago
Could you clarify how are you testing the speed of the first example where you are not writing anything to stdout? Thanks.
[–]
qsantos
OP
2y ago
For the first Rust program, where I just write to memory, I just use the time utility when running the program from zsh. Then, I divide the number of bytes written by the number of seconds elapsed. That's why it's not an infinite loop ;)
[–]
ismaildonmez
2y ago
Thanks!