This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-mime4j.git
commit 38992555b2a4bca60bb9ab0b8c7dda6724683fb9 Author: Benoit Tellier <btell...@linagora.com> AuthorDate: Tue Jun 21 09:03:48 2022 +0700 MIME4J-317 JMH benchmark: have more representative headers --- .../james/mime4j/JMHLongMultipartReadBench.java | 5 +--- benchmark/src/main/resources/long-multipart.msg | 27 ++++++++++++++++++---- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/benchmark/src/main/java/org/apache/james/mime4j/JMHLongMultipartReadBench.java b/benchmark/src/main/java/org/apache/james/mime4j/JMHLongMultipartReadBench.java index f9fd5135..69b80332 100644 --- a/benchmark/src/main/java/org/apache/james/mime4j/JMHLongMultipartReadBench.java +++ b/benchmark/src/main/java/org/apache/james/mime4j/JMHLongMultipartReadBench.java @@ -55,10 +55,7 @@ public class JMHLongMultipartReadBench { @Test public void launchBenchmark() throws Exception { Options opt = new OptionsBuilder() - // Specify which benchmarks to run. - // You can be more specific if you'd like to run only one benchmark per test. - .include(this.getClass().getName() + ".*") - // Set the following options as needed + .include(this.getClass().getName() + ".benchmark*") .mode (Mode.AverageTime) .addProfiler(GCProfiler.class) .timeUnit(TimeUnit.MICROSECONDS) diff --git a/benchmark/src/main/resources/long-multipart.msg b/benchmark/src/main/resources/long-multipart.msg index ca4d93e6..afedaff6 100644 --- a/benchmark/src/main/resources/long-multipart.msg +++ b/benchmark/src/main/resources/long-multipart.msg @@ -1,8 +1,27 @@ -Date: Fri, 27 Apr 2007 16:08:23 +0200 -From: Foo Bar <b...@example.com> +Return-Path: <expedi...@linagora.com> +Delivered-To: firstname21.surnam...@xxx.org +Received: from 172.17.0.1 (EHLO incoming.linagora.com) ([172.17.0.1]) + by xxx.linagora.com (JAMES SMTP Server ) with ESMTP ID e2de7b7e; + Tue, 26 Apr 2022 02:27:56 +0000 (UTC) +Received: from yyy.linagora.com (yyy.linagora.com [172.17.0.1]) + by incoming.linagora.com (Postfix) with ESMTPS id 1AA739C621; + Tue, 26 Apr 2022 02:27:56 +0000 (UTC) +Received: from ?Open?PaaS?SMTP?server?for?Linagora? (unknown [172.17.0.1]) + (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) + by yyy.linagora.com (Postfix) with ESMTPSA id 0E3494051E; + Tue, 26 Apr 2022 04:27:56 +0200 (CEST) +DKIM-Signature: a=rsa-sha256; b=rpsVo5Aah1YYw7bP6vOJF8CCd3/jRXCrkybebytnynynyty1bN84tOBKXqClx4HhYe63Lp2qbNbdrZFLdKAkhgfFf5/71OR+FbcTm78mnWP05HnY5ZMaAmmrhcIUVvDGhcg5NJSdmGf4WIpp2DqcUV7laXqNbC62vIcD5+gKLUEMGD1LudlHIEPA1MRfq/jRw94lPWX1yCNZaAvsoPG+oyedpbMyJ59MTQqz2WY5d0S1t4hTumrRHb/6kWHwV2ytzXMzZ9LITOYDtdEA44Bhr65dKAmWoOAvFVvC/lQP5dxkaFdx0vQ9Ei9Oc0r0tjg90YI6JLMm59e+A==; s=smtpoutjames; d=linagora.com; v=1; bh=phAFKC0vGk76uBUcy6pMhmSkmrTh/vYFrYkrvXUaDDQ=; h=from : reply-to : subject : date : [...] MIME-Version: 1.0 -To: f...@example.com -Subject: This is a rather long multipart message. +X-LINAGORA-Copy-Delivery-Done: 1 +From: Xxxxx Yyyyy <expedi...@linagora.com> +Sender: Xxxxx Yyyyy <expedi...@linagora.com> +Reply-To: expedi...@linagora.com +To: Recipient <recipi...@linagora.com> +Message-ID: <mime4j.3ae.98d4b510005bd7dc.18063b25...@linagora.com> +Date: Tue, 26 Apr 2022 02:27:54 +0000 +In-Reply-To: <mime4j.3ad.3634707f65cfee8e.18063b16...@linagora.com> +Subject: test subject Content-Type: multipart/mixed; boundary="------------090404080405080108000909" This is a multi-part message in MIME format. --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org