Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can analyze your program's memory performance (i.e. how well it utilizes the cache) using <a href="http://www.valgrind.org/" rel="nofollow">valgrind's</a> cachegrind tool.</p> <pre><code>$ valgrind --tool=cachegrind ruby ./hello.rb ==7082== Cachegrind, a cache and branch-prediction profiler. ==7082== Copyright (C) 2002-2008, and GNU GPL'd, by Nicholas Nethercote et al. ==7082== Using LibVEX rev 1884, a library for dynamic binary translation. ==7082== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP. ==7082== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation framework. ==7082== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al. ==7082== For more details, rerun with: -v ==7082== hello world ==7082== ==7082== I refs: 14,529,000 ==7082== I1 misses: 24,856 ==7082== L2i misses: 6,707 ==7082== I1 miss rate: 0.17% ==7082== L2i miss rate: 0.04% ==7082== ==7082== D refs: 7,110,663 (4,572,482 rd + 2,538,181 wr) ==7082== D1 misses: 48,207 ( 33,427 rd + 14,780 wr) ==7082== L2d misses: 16,350 ( 3,821 rd + 12,529 wr) ==7082== D1 miss rate: 0.6% ( 0.7% + 0.5% ) ==7082== L2d miss rate: 0.2% ( 0.0% + 0.4% ) ==7082== ==7082== L2 refs: 73,063 ( 58,283 rd + 14,780 wr) ==7082== L2 misses: 23,057 ( 10,528 rd + 12,529 wr) ==7082== L2 miss rate: 0.1% ( 0.0% + 0.4% ) </code></pre> <p>Concerning disk performance, I believe that a program with no disk/io usage would run almost entirely in user time, leading me to believe that your hard drive might be at least one of your bottlenecks. Perhaps there's someone out there who can recommend a good tool for profiling a program's disk usage?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload