Issue Is there something similar to Ruby Benchmark within Rails? I have used Ruby benchmark in the past to compare different bits of code, but none of it was Rails related. I would like to use my application models in
Continue readingTag: benchmarking
[SOLVED] How can I accurately benchmark unaligned access speed on x86_64?
Issue In an answer, I’ve stated that unaligned access has almost the same speed as aligned access a long time (on x86/x86_64). I didn’t have any numbers to back up this statement, so I’ve created a benchmark for it. Do
Continue reading[SOLVED] JMeter request rate drops every 10 minutes
Issue I use JMeter for HTTP-based performance testing in Kubernetes. Each JMeter instance has more than 80GB memory. Everything works fine, but, every 10 minutes, the request rate drops from ~101Requests/Second to ~95Requests/Second: summary + 3116 in 00:00:30 = 103.9/s
Continue reading[SOLVED] How do you reason about fluctuations in benchmarking data?
Issue Suppose you’re trying to optimize a function and using some benchmarking framework (like Google Benchmark) for measurement. You run the benchmarks on the original function 3 times and see average wall clock time/CPU times of 100 ms, 110 ms,
Continue reading[SOLVED] Array vs Slice: accessing speed
Issue This question is about the speed of accessing elements of arrays and slices, not about the efficiency of passing them to functions as arguments. I would expect arrays to be faster than slices in most cases because a slice
Continue reading[SOLVED] Git test to download without saving
Issue I need to test git performance on a particular network setup. I don’t want my test to measure hard disk write time or any other filesystem timings but network only. Is there any trick to make git download to
Continue reading[SOLVED] Array.Empty<int>(): Why does Rider show an allocation occurred, but BenchmarkDotNet doesn't?
Issue The memory tool being used in the first image is from Rider. As far as I’m aware, it shows allocations to the managed heap. The second image shows the results from BenchmarkDotNet. Why does Rider show that an allocation
Continue reading[SOLVED] What is the meaning of Google Benchmark Iteration?
Issue I am working with Google Benchmark to measure the execution time of some code. For example, I wrote the following code to measure its execution time performance. #include <benchmark/benchmark.h> // Alternatively, can add libraries using linker options. #ifdef _WIN32
Continue reading[SOLVED] JMH – Lower-level benchmarking
Issue I’m using JMH to benchmark JUnit tests. My benchmarks: import org.openjdk.jmh.annotations.*; public class Benchmarks { @Benchmark public void bmUnitTest1() { UnitTests.UnitTest1(); } @Benchmark public void bmUnitTest2() { UnitTests.UnitTest2(); } } My benchmark runner: import org.openjdk.jmh.annotations.Mode; import org.openjdk.jmh.results.format.ResultFormatType; import org.openjdk.jmh.runner.options.Options;
Continue reading[SOLVED] JMH – Lower-level benchmarking
Issue I’m using JMH to benchmark JUnit tests. My benchmarks: import org.openjdk.jmh.annotations.*; public class Benchmarks { @Benchmark public void bmUnitTest1() { UnitTests.UnitTest1(); } @Benchmark public void bmUnitTest2() { UnitTests.UnitTest2(); } } My benchmark runner: import org.openjdk.jmh.annotations.Mode; import org.openjdk.jmh.results.format.ResultFormatType; import org.openjdk.jmh.runner.options.Options;
Continue reading