<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Benchmark on Terrence Ho</title><link>https://terrenceho.dev/tags/benchmark/</link><description>Recent content in Benchmark on Terrence Ho</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 22 Aug 2018 00:00:00 +0000</lastBuildDate><atom:link href="https://terrenceho.dev/tags/benchmark/index.xml" rel="self" type="application/rss+xml"/><item><title>Benchmarking Fib with Go</title><link>https://terrenceho.dev/post/benchmarking-fibonacci/</link><pubDate>Wed, 22 Aug 2018 00:00:00 +0000</pubDate><guid>https://terrenceho.dev/post/benchmarking-fibonacci/</guid><description>&lt;p&gt;Go has a really nice testing suite built into its compiler tool chains. It&amp;rsquo;s as
simple as running &lt;code&gt;go test&lt;/code&gt; in your package, and all files marked *_tests.go
will be executed. We can also run benchmarks during testing, by adding the
&lt;code&gt;-bench&lt;/code&gt; flag to the &lt;code&gt;go test&lt;/code&gt; command. I never really benchmarked anything
before, so I decided to explore Go&amp;rsquo;s benchmarking utilities, and flex some of my
algorithm skills in the process. Naturally I decided implement the Fibonacci
sequence many, many times over.&lt;/p&gt;</description></item></channel></rss>