<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: voctl</title>
    <description>The latest articles on DEV Community by voctl (@voctl).</description>
    <link>https://dev.to/voctl</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3873400%2Ff47db84e-f35e-4307-8c06-145b788b0679.jpg</url>
      <title>DEV Community: voctl</title>
      <link>https://dev.to/voctl</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/voctl"/>
    <language>en</language>
    <item>
      <title>UNIX-programming-timev</title>
      <dc:creator>voctl</dc:creator>
      <pubDate>Sun, 06 Dec 2026 21:24:35 +0000</pubDate>
      <link>https://dev.to/voctl/unix-programming-timev-4992</link>
      <guid>https://dev.to/voctl/unix-programming-timev-4992</guid>
      <description>&lt;p&gt;Historically, UNIX systems have maintained two different time values:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Calendar time. This value counts the number of seconds since the Epoch: 00:00:00 January 1, 1970, Coordinated Universal Time (UTC). (Older manuals refer to UTC as Greenwich Mean Time.) These time values are used to record the time when a file was last modified, for example. The primitive system data type time_t holds these time values.

Process time. This is also called CPU time and measures the central processor resources used by a process. Process time is measured in clock ticks, which have historically been 50, 60, or 100 ticks per second. The primitive system data type clock_t holds these time values.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Shortly, time_t holds the calendar thing time and clock_t holds the process time values.&lt;/p&gt;

&lt;p&gt;UNIX systems maintains three values for a process :&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Clock time

User CPU time

System CPU time
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;-The clock time, is the amount of time the process takes to ru9n, and its value depends on the number of other processes being run on the system. The time between the start and the end of a process.&lt;/p&gt;

&lt;p&gt;-User CPU time is the the time which is cpu waste for you like usermode process (for example mathematical processes)&lt;/p&gt;

&lt;p&gt;-Sytem CPU time is the the time which is cpu waste for kernel mode processes like (file read and write, syscalls and smth else.)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;br&gt;
voctl@devuan:/usr/include$ time -p grep _POSIX_SOURCE */*.h &amp;gt; /dev/null/&lt;br&gt;
real 0.22&lt;br&gt;
user 0.02&lt;br&gt;
sys 0.04&lt;br&gt;
voctl@devuan:/usr/include$&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Its the shi&lt;br&gt;
The output format from the time command depends on the shell being used, because some shells don't run /usr/bin/time , but instead have a separate built-in function to measure the time it takes commands to run.&lt;/p&gt;

</description>
      <category>computerscience</category>
      <category>linux</category>
      <category>programming</category>
    </item>
    <item>
      <title>Benchmarking is harder than it looks</title>
      <dc:creator>voctl</dc:creator>
      <pubDate>Sun, 06 Dec 2026 21:20:46 +0000</pubDate>
      <link>https://dev.to/voctl/benchmarking-is-harder-than-it-looks-57e2</link>
      <guid>https://dev.to/voctl/benchmarking-is-harder-than-it-looks-57e2</guid>
      <description>&lt;p&gt;I used to think benchmarking was fairly straightforward. Run a program, collect the numbers, change something, run it again. Compare the results.&lt;/p&gt;

&lt;p&gt;That sounds reasonable until you actually start doing it.&lt;/p&gt;

&lt;p&gt;While working on CPU inference benchmarks, I started paying much more attention to things I would normally ignore. CPU affinity, physical cores, SMT, warm-up runs, background activity. Even the order in which experiments are executed can matter. One thing I found interesting was the difference between using four physical cores and using two physical cores with SMT. I initially expected the results to be fairly obvious. They weren't. The four-core configuration performed better during prompt processing, while the two-core configuration with SMT was slightly faster during token generation. This made me reconsider how I was looking at benchmark results. Saying that one configuration is faster doesn't really mean much without specifying what workload you're measuring.Prompt processing and token generation are different workloads. Treating them as one performance metric hides some interesting behaviour.&lt;/p&gt;

&lt;p&gt;There was also the problem of repeatability. A result from one run isn't particularly convincing. Even when the environment looks identical, measurements can vary. Warm-up behaviour and differences between experimental sessions can introduce effects that are easy to mistake for actual performance improvements. I ended up spending almost as much time checking the experimental setup as I spent running the benchmarks.&lt;/p&gt;

&lt;p&gt;I don't think this is necessarily a bad thing. In fact, it is probably the most interesting part of doing performance research. You start by trying to measure a program, and eventually find yourself questioning whether your measurement actually represents what you think it represents.&lt;/p&gt;

&lt;p&gt;I'm still working on improving the methodology and checking the results. But one thing has become clear to me: getting a number is easy. Understanding where that number came from is a different problem.&lt;/p&gt;

</description>
      <category>performance</category>
      <category>programming</category>
      <category>softwareengineering</category>
    </item>
  </channel>
</rss>
