From b4cf910e55dc5713576a43d8ee53796000472454 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 15 Dec 2020 08:06:02 +0100 Subject: [PATCH] Add a benchmark for math MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Results after 14908322a93b55e8aec87a0880b3a9768508f601, compared to 3.1.2: math.fish fish rusage self: user time: 916 ms sys time: 39 ms total time: 955 ms max rss: 35028 kb signals: 0 build/fish rusage self: user time: 769 ms sys time: 60 ms total time: 829 ms max rss: 34868 kb signals: 0 Benchmark #1: fish benchmarks/benchmarks/math.fish > /dev/null Time (mean ± σ): 955.2 ms ± 32.5 ms [User: 897.2 ms, System: 57.9 ms] Range (min … max): 896.3 ms … 1002.5 ms 10 runs Benchmark #2: build/fish benchmarks/benchmarks/math.fish > /dev/null Time (mean ± σ): 840.3 ms ± 21.5 ms [User: 784.4 ms, System: 54.8 ms] Range (min … max): 802.4 ms … 869.0 ms 10 runs Summary 'build/fish benchmarks/benchmarks/math.fish > /dev/null' ran 1.14 ± 0.05 times faster than 'fish benchmarks/benchmarks/math.fish > /dev/null' --- benchmarks/benchmarks/math.fish | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 benchmarks/benchmarks/math.fish diff --git a/benchmarks/benchmarks/math.fish b/benchmarks/benchmarks/math.fish new file mode 100644 index 000000000..ab243d163 --- /dev/null +++ b/benchmarks/benchmarks/math.fish @@ -0,0 +1,3 @@ +for i in (seq 100000) + math $i + $i +end