From c56243dab4a2e07d3ba4942fdd8ec72a3b56218a Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Mon, 8 Mar 2021 11:02:49 -0500 Subject: Update yjit.md --- doc/yjit.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/yjit.md b/doc/yjit.md index 46356c9583..0e0a79dcb9 100644 --- a/doc/yjit.md +++ b/doc/yjit.md @@ -60,6 +60,10 @@ You can dump statistics about compilation and execution by running YJIT with the The machine code generated for a given method can be printed by adding `puts YJIT.disasm(method(:method_name))` to a Ruby script. Note that no code will be generated if the method is not compiled. +## Benchmarking + +We have collected a set of benchmarks and implemented a simple benchmarking harness in the [yjit-bench](https://github.com/Shopify/yjit-bench) repository. This benchmarking harness is designed to disable CPU frequency scaling, set process affinity and disable address space randomization so that the variance between benchmarking runs will be as small as possible. + ## Source Code Organization The YJIT source code is divided between: -- cgit v1.2.3