From patchwork Fri Dec 15 18:20:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Woodard X-Patchwork-Id: 24969 Received: (qmail 14094 invoked by alias); 15 Dec 2017 18:20:48 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 14085 invoked by uid 89); 15 Dec 2017 18:20:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy= X-HELO: mail-oi0-f45.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tqZJ6X6LVvE+zdkkYWLOvNe9HyLlmo6VTSRcm38EWRY=; b=fYhAVPwKq9sqryaLBr17G9ZFn3QfGFG/BiK2v4T6zW15w7h4fQlVJW+a2EEcBtkkul vmJjklvmT7+GUtdr3+szcXFF+3MKwuMFKKy+2bWkSKk3pL709FeSZ76qlFseZ4bkJQ1d TeoKoOnBeUM4GWtx//t06wpNSUlJlJeNWKZmQehnjnMsIYQC1sP7G6yUE6ID9jNKa0BP bAoWfsK4M10B8vHHuXCess6OlVgh3Vm3nE/cfDrYZHeb/AUOxalQOIjpN8B7J80HIrbH NHJN9Et63pMck4xy9gtM8ssnFJy2LfPQaaiUyU6IXG5n0TB807SIQAD6hh7xJPa8oHS7 btYg== X-Gm-Message-State: AKGB3mKuLGknQMOzg6a895NasqMswyBx9KJlypT5VGWKzPUsNu0/GxH+ jUpdWw6UXdhP/4yLxJJriSPBOQ== X-Google-Smtp-Source: ACJfBoviBV1tEP1x/DoZZ64VZPVEq4JBlIiQwCN4jIxYq/h3XJ+26DUvJPvOW1tl1mGhwWLsmruQNQ== X-Received: by 10.202.185.3 with SMTP id j3mr7753594oif.159.1513362045406; Fri, 15 Dec 2017 10:20:45 -0800 (PST) From: Ben Woodard To: libc-alpha@sourceware.org, Siddhesh Poyarekar Cc: Ben Woodard Subject: [PATCH] V2 Add new numbers in the benchmark. Date: Fri, 15 Dec 2017 10:20:35 -0800 Message-Id: <20171215182035.5162-1-woodard@redhat.com> V2 the only change is to add the angle braces around my email address. A customer who has asked not to be named that has had some problems with performance for some inputs of certain libm functions. We felt that a good idea would be to capture and preserve these test cases so that we could track and measure the performance for these cases over time. These values evidently came from analyzing performance problems with actual running codes. The intent is that more test cases will be added over time. The fast and the slow cases are separated in the test results so that we could not only track any improvements in the worst case performance but also detect any degregation in the performance of the optimal cases should we change the algorithm or split the range different. Here are the results of that part of the modified tests: "exp": { "": { "duration": 3.10837e+10, "iterations": 5.654e+06, "max": 37073.6, "min": 61.904, "mean": 5497.65 }, "144bits": { "duration": 2.9752e+10, "iterations": 1.83e+06, "max": 36458.4, "min": 159.793, "mean": 16257.9 }, "768bits": { "duration": 2.98869e+10, "iterations": 105000, "max": 307814, "min": 277808, "mean": 284637 }, "redhat-slow-customer-cases": { "duration": 2.90641e+10, "iterations": 241000, "max": 173768, "min": 118393, "mean": 120598 }, "redhat-fast-customer-cases": { "duration": 2.89308e+10, "iterations": 1.94562e+08, "max": 285.431, "min": 143.328, "mean": 148.697 } }, "pow": { "": { "duration": 2.91114e+10, "iterations": 5.9899e+07, "max": 1340.38, "min": 149.229, "mean": 486.009 }, "240bits": { "duration": 3.76374e+10, "iterations": 400000, "max": 110951, "min": 76769.9, "mean": 94093.4 }, "768bits": { "duration": 1.54488e+11, "iterations": 101000, "max": 1.60541e+06, "min": 742756, "mean": 1.52959e+06 }, "redhat-slow-customer-cases": { "duration": 3.02998e+10, "iterations": 42000, "max": 790097, "min": 692942, "mean": 721425 }, "redhat-fast-customer-cases": { "duration": 2.89989e+10, "iterations": 4.8063e+07, "max": 1339.97, "min": 564.295, "mean": 603.352 } }, Signed-off-by: Ben Woodard --- benchtests/exp-inputs | 9 +++++++++ benchtests/pow-inputs | 12 ++++++++++++ 2 files changed, 21 insertions(+) diff --git a/benchtests/exp-inputs b/benchtests/exp-inputs index aff3fb42f1..18b77177af 100644 --- a/benchtests/exp-inputs +++ b/benchtests/exp-inputs @@ -587,3 +587,12 @@ 0x1.0000015853da7p0 0x1.0000098e5e007p0 0x1.0000099a1ac59p0 + +# Contributed based on customer reports +# Ben Woodard +## name: redhat-slow-customer-cases +0x1.0p-53 +## name: redhat-fast-customer-cases +0x1.0p-52 +0x1.0p+0 +0x1.999999999999Ap-4 diff --git a/benchtests/pow-inputs b/benchtests/pow-inputs index 78f8ac73d5..2a9da51a7a 100644 --- a/benchtests/pow-inputs +++ b/benchtests/pow-inputs @@ -509,3 +509,15 @@ 0x1.f8b79758182dap-884, 0x1.ed6174093fca4p-6 0x1.fa5c677254961p133, -0x1.c91962524971ep-1 0x1.ff0544adacb78p649, -0x1.6c17c3a7210e2p-1 + + +# Contributed based on customer reports +# Ben Woodard +## name: redhat-slow-customer-cases +0x1.fffffffffffffp-1, 0x1.8p+0 +0x1.ffffffffffffdp-1, 0x1.8p+0 +0x1.ffffffffffff7p-1, 0x1.8p+0 +## name: redhat-fast-customer-cases +0x1.ffffffffffffep-1, 0x1.8p+0 +0x1.ffffffffffffcp-1, 0x1.8p+0 +0x1.999999999999ap-4, 0x1.8p+0