<?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: YooWaan</title>
    <description>The latest articles on DEV Community by YooWaan (@yoowaan).</description>
    <link>https://dev.to/yoowaan</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F320059%2F1cdccf6e-a28e-4964-a464-148d08efc73d.jpg</url>
      <title>DEV Community: YooWaan</title>
      <link>https://dev.to/yoowaan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yoowaan"/>
    <language>en</language>
    <item>
      <title>Stackdriver command line viewer(helper) ///</title>
      <dc:creator>YooWaan</dc:creator>
      <pubDate>Sat, 16 May 2020 17:08:28 +0000</pubDate>
      <link>https://dev.to/yoowaan/stackdriver-command-line-viewer-helper-236k</link>
      <guid>https://dev.to/yoowaan/stackdriver-command-line-viewer-helper-236k</guid>
      <description>&lt;p&gt;I'm boring using stackdriver logging console.&lt;/p&gt;

&lt;p&gt;I wanna just only terminal.&lt;/p&gt;

&lt;p&gt;So I created for appengine. done.&lt;/p&gt;

&lt;h3&gt;
  
  
  🛢command example
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# error severity&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;gaelog &lt;span class="nt"&gt;-e&lt;/span&gt;
&lt;span class="c"&gt;# http status &amp;gt;= 400&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;gaelog &lt;span class="nt"&gt;-r&lt;/span&gt;
&lt;span class="c"&gt;# with query&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;gaelog &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="s2"&gt;"log like '%POST%'"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  🎞Terminal Play
&lt;/h3&gt;


&lt;div class="ltag_asciinema"&gt;
  
&lt;/div&gt;



&lt;h3&gt;
  
  
  🧸 My Gist
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://gist.github.com/YooAppn/fd1f1ad4de84b9cee392bc44e3500b55"&gt;Gist Link&lt;/a&gt;&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;
 

</description>
      <category>appengine</category>
      <category>logging</category>
      <category>fzf</category>
      <category>helper</category>
    </item>
    <item>
      <title>Golang atomic.AddInt64 not fast ////</title>
      <dc:creator>YooWaan</dc:creator>
      <pubDate>Sun, 19 Jan 2020 08:29:43 +0000</pubDate>
      <link>https://dev.to/yoowaan/golang-atomic-addint64-not-fast-4p5p</link>
      <guid>https://dev.to/yoowaan/golang-atomic-addint64-not-fast-4p5p</guid>
      <description>&lt;p&gt;I benchmarked golang simple countup of not fixed code, mutex, atomic.AddInt64 or atomic.Value on goroutine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Result
&lt;/h2&gt;

&lt;p&gt;fastest result: &lt;code&gt;atomic.Value&lt;/code&gt; &amp;gt; &lt;code&gt;mutex&lt;/code&gt; &amp;gt; &lt;code&gt;not fixed code&lt;/code&gt; &amp;gt; &lt;code&gt;atomic.AddInt64&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One time result&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;go &lt;span class="nb"&gt;test&lt;/span&gt; &lt;span class="nt"&gt;-bench&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt;
goos: linux
goarch: amd64
BenchmarkInc_Countup-4               2000000           957 ns/op
&lt;span class="nt"&gt;---&lt;/span&gt; BENCH: BenchmarkInc_Countup-4
    acounter_test.go:13: 1 -&amp;gt; 1
    acounter_test.go:13: 100 -&amp;gt; 100
    acounter_test.go:13: 10000 -&amp;gt; 9752
    acounter_test.go:13: 1000000 -&amp;gt; 982973
    acounter_test.go:13: 2000000 -&amp;gt; 1962072
BenchmarkLock_Countup-4              2000000           936 ns/op
&lt;span class="nt"&gt;---&lt;/span&gt; BENCH: BenchmarkLock_Countup-4
    acounter_test.go:20: 1 -&amp;gt; 1
    acounter_test.go:20: 100 -&amp;gt; 100
    acounter_test.go:20: 10000 -&amp;gt; 10000
    acounter_test.go:20: 1000000 -&amp;gt; 1000000
    acounter_test.go:20: 2000000 -&amp;gt; 2000000
BenchmarkAtomic_Countup-4            2000000           943 ns/op
&lt;span class="nt"&gt;---&lt;/span&gt; BENCH: BenchmarkAtomic_Countup-4
    acounter_test.go:27: 1 -&amp;gt; 1
    acounter_test.go:27: 100 -&amp;gt; 100
    acounter_test.go:27: 10000 -&amp;gt; 10000
    acounter_test.go:27: 1000000 -&amp;gt; 1000000
    acounter_test.go:27: 2000000 -&amp;gt; 2000000
BenchmarkAtomicValue_Countup-4       2000000           904 ns/op
&lt;span class="nt"&gt;---&lt;/span&gt; BENCH: BenchmarkAtomicValue_Countup-4
    acounter_test.go:36: 1 -&amp;gt; 1
    acounter_test.go:36: 100 -&amp;gt; 54
    acounter_test.go:36: 10000 -&amp;gt; 7125
    acounter_test.go:36: 1000000 -&amp;gt; 791697
    acounter_test.go:36: 2000000 -&amp;gt; 1586774
PASS
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Three times result&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="k"&gt;for &lt;/span&gt;i &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;seq &lt;/span&gt;1 3&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do &lt;/span&gt;go &lt;span class="nb"&gt;test&lt;/span&gt; &lt;span class="nt"&gt;-bench&lt;/span&gt; &lt;span class="nb"&gt;.&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="s1"&gt;'ns/op'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;done
&lt;/span&gt;BenchmarkInc_Countup-4               2000000           998 ns/op
BenchmarkLock_Countup-4              2000000           986 ns/op
BenchmarkAtomic_Countup-4            2000000          1130 ns/op
BenchmarkAtomicValue_Countup-4       2000000           987 ns/op
BenchmarkInc_Countup-4               2000000           989 ns/op
BenchmarkLock_Countup-4              1000000          1113 ns/op
BenchmarkAtomic_Countup-4            1000000          1010 ns/op
BenchmarkAtomicValue_Countup-4       2000000          1013 ns/op
BenchmarkInc_Countup-4               1000000          1018 ns/op
BenchmarkLock_Countup-4              1000000          1311 ns/op
BenchmarkAtomic_Countup-4            1000000          1051 ns/op
BenchmarkAtomicValue_Countup-4       1000000          1125 ns/op

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;h2&gt;
  
  
  Benchmark Code
&lt;/h2&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


</description>
      <category>go</category>
      <category>atomic</category>
      <category>mutex</category>
    </item>
  </channel>
</rss>
