Skip to content

How to run? How to measure memory? Rust? #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hissssst opened this issue May 24, 2023 · 3 comments
Open

How to run? How to measure memory? Rust? #2

hissssst opened this issue May 24, 2023 · 3 comments

Comments

@hissssst
Copy link

Hi, thank you for the benchmark and interesting blog post!

I wanted to discuss it with my friends and tweak some code to see how it afffects the result. But I've found out that I need to know how did you measure the amount of used memory? And how did you run the benchmarks?

Plus, your blog post shows rust examples, but they're not provided here.

@hongquan
Copy link

Here is how to run:

image

@hissssst
Copy link
Author

hissssst commented May 24, 2023

But this measurement is incorrect, since it completely ignores the GC and such stuff. I mean, if we start tasks slower, or induce memory limit, the runtime will be able to spawn more tasks with less memory, sacrificing time for GC

@kassane
Copy link

kassane commented Jun 4, 2023

Why not use, perf stat or massif?

to full report:
perf record --call-graph fp program and perf report or valgrind --tool=massif --stacks=yes program

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants