From 527021a32e1fa112a96f1a4665e45fbc206fb8ee Mon Sep 17 00:00:00 2001 From: Kip Cole Date: Sat, 23 Feb 2019 03:29:45 +0800 Subject: [PATCH] Comment out the performance test for now --- test/performance_test.exs | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/test/performance_test.exs b/test/performance_test.exs index 323085e..2da09be 100644 --- a/test/performance_test.exs +++ b/test/performance_test.exs @@ -4,19 +4,19 @@ defmodule MoneyTest.Performance do # This is fixed to a single machine spec which is not good. # A proper approach is required. - @acceptable_limit 76_000 - @acceptable_tolerance 0.02 - @iterations 1000 - @acceptable_range trunc(@acceptable_limit * (1 - @acceptable_tolerance)).. - trunc(@acceptable_limit * (1 + @acceptable_tolerance)) - - test "that performance on rounding hasn't degraded" do - m = Money.new(:USD, "2.04") - {millseconds, :ok} = :timer.tc(fn -> - Enum.each(1..@iterations, fn _x -> - Money.round(m) - end) - end) - assert millseconds in @acceptable_range - end + # @acceptable_limit 76_000 + # @acceptable_tolerance 0.02 + # @iterations 1000 + # @acceptable_range trunc(@acceptable_limit * (1 - @acceptable_tolerance)).. + # trunc(@acceptable_limit * (1 + @acceptable_tolerance)) + # + # test "that performance on rounding hasn't degraded" do + # m = Money.new(:USD, "2.04") + # {millseconds, :ok} = :timer.tc(fn -> + # Enum.each(1..@iterations, fn _x -> + # Money.round(m) + # end) + # end) + # assert millseconds in @acceptable_range + # end end \ No newline at end of file