Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D8021200BD3 for ; Mon, 21 Nov 2016 18:32:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D6A23160AF9; Mon, 21 Nov 2016 17:32:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D3D48160AEF for ; Mon, 21 Nov 2016 18:32:35 +0100 (CET) Received: (qmail 74662 invoked by uid 500); 21 Nov 2016 17:32:35 -0000 Mailing-List: contact commits-help@mnemonic.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mnemonic.incubator.apache.org Delivered-To: mailing list commits@mnemonic.incubator.apache.org Received: (qmail 74653 invoked by uid 99); 21 Nov 2016 17:32:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2016 17:32:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A338BC0F8E for ; Mon, 21 Nov 2016 17:32:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id L1J-KwGhG12J for ; Mon, 21 Nov 2016 17:32:32 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 165105FCD7 for ; Mon, 21 Nov 2016 17:32:28 +0000 (UTC) Received: (qmail 71537 invoked by uid 99); 21 Nov 2016 17:32:28 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2016 17:32:28 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DE5F7F1593; Mon, 21 Nov 2016 17:32:27 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: garyw@apache.org To: commits@mnemonic.incubator.apache.org Date: Mon, 21 Nov 2016 17:32:32 -0000 Message-Id: <956ff6b23d2d413ea28421b32bcfaf2c@git.apache.org> In-Reply-To: <36f7435d01f747b1bd93f2124736ac20@git.apache.org> References: <36f7435d01f747b1bd93f2124736ac20@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [06/14] incubator-mnemonic git commit: MNEMONIC-162: Add a bench workload for sorting archived-at: Mon, 21 Nov 2016 17:32:37 -0000 MNEMONIC-162: Add a bench workload for sorting Project: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/commit/07aace85 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/tree/07aace85 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/diff/07aace85 Branch: refs/heads/master Commit: 07aace852d32bd127cc7141966e5d9fdb23abb43 Parents: f2490df Author: Wang, Gang(Gary) Authored: Tue Nov 8 12:21:31 2016 -0800 Committer: Wang, Gang(Gary) Committed: Thu Nov 17 12:50:10 2016 -0800 ---------------------------------------------------------------------- mnemonic-benches/mnemonic-sort-bench/pom.xml | 151 +++++++++++++++++++ .../java/org/apache/mnemonic/bench/Sort.java | 42 ++++++ .../src/main/resources/log4j.properties | 33 ++++ mnemonic-benches/pom.xml | 97 ++++++++++++ pom.xml | 1 + 5 files changed, 324 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/07aace85/mnemonic-benches/mnemonic-sort-bench/pom.xml ---------------------------------------------------------------------- diff --git a/mnemonic-benches/mnemonic-sort-bench/pom.xml b/mnemonic-benches/mnemonic-sort-bench/pom.xml new file mode 100644 index 0000000..06bc239 --- /dev/null +++ b/mnemonic-benches/mnemonic-sort-bench/pom.xml @@ -0,0 +1,151 @@ + + + + + + 4.0.0 + + org.apache.mnemonic + mnemonic-benches + 0.3.0-incubating-SNAPSHOT + + + mnemonic-sort-bench + mnemonic-sort-bench + jar + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + org.apache.maven.plugins + maven-jar-plugin + + + org.apache.maven.plugins + maven-shade-plugin + + + package + + shade + + + + + ${project.groupId}.bench.Sort + + + true + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.10 + + + copy + package + + copy + + + + + ${project.groupId} + mnemonic-nvml-vmem-service + ${project.version} + ${os.detected.classifier} + jar + + + ${project.groupId} + mnemonic-pmalloc-service + ${project.version} + ${os.detected.classifier} + jar + + + ${project.groupId} + mnemonic-utilities-service + ${project.version} + ${os.detected.classifier} + jar + + + ${project.build.directory}/service-dist + false + false + true + + + + + + + + + + bench + + + bench + + + + + + org.codehaus.mojo + exec-maven-plugin + + + + exec + + + + + java + + -Djava.ext.dirs=${project.build.directory}/service-dist + -ea + -classpath + + ${project.groupId}.bench.Sort + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/07aace85/mnemonic-benches/mnemonic-sort-bench/src/main/java/org/apache/mnemonic/bench/Sort.java ---------------------------------------------------------------------- diff --git a/mnemonic-benches/mnemonic-sort-bench/src/main/java/org/apache/mnemonic/bench/Sort.java b/mnemonic-benches/mnemonic-sort-bench/src/main/java/org/apache/mnemonic/bench/Sort.java new file mode 100644 index 0000000..9e44c4e --- /dev/null +++ b/mnemonic-benches/mnemonic-sort-bench/src/main/java/org/apache/mnemonic/bench/Sort.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.mnemonic.bench; + +import java.util.Random; + + +/** + * Main is the class of example. + * + */ +@SuppressWarnings("restriction") +public class Sort { + + /** + * Run a example code to demonstrate some basic functionalities. + * + * @param argv + * array of commandline parameters + */ + public static void main(String[] argv) throws Exception { + Random randomGenerator = new Random(); + + System.out.println("-------------------"); + } + +} http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/07aace85/mnemonic-benches/mnemonic-sort-bench/src/main/resources/log4j.properties ---------------------------------------------------------------------- diff --git a/mnemonic-benches/mnemonic-sort-bench/src/main/resources/log4j.properties b/mnemonic-benches/mnemonic-sort-bench/src/main/resources/log4j.properties new file mode 100644 index 0000000..24b0e3c --- /dev/null +++ b/mnemonic-benches/mnemonic-sort-bench/src/main/resources/log4j.properties @@ -0,0 +1,33 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# Root logger option +log4j.rootLogger=INFO, file, stdout + +#to stdout +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.Target=System.out +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n + +#to log.log file +log4j.appender.file=org.apache.log4j.RollingFileAppender +log4j.appender.file.File=log.log +log4j.appender.file.MaxFileSize=10MB +log4j.appender.file.MaxBackupIndex=10 +log4j.appender.file.layout=org.apache.log4j.PatternLayout +log4j.appender.file.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/07aace85/mnemonic-benches/pom.xml ---------------------------------------------------------------------- diff --git a/mnemonic-benches/pom.xml b/mnemonic-benches/pom.xml new file mode 100644 index 0000000..899bb2a --- /dev/null +++ b/mnemonic-benches/pom.xml @@ -0,0 +1,97 @@ + + + + + + 4.0.0 + + org.apache.mnemonic + mnemonic-parent + 0.3.0-incubating-SNAPSHOT + ../pom.xml + + + mnemonic-benches + mnemonic-benches + pom + http://mnemonic.incubator.apache.org + + + ${project.parent.basedir} + + + + mnemonic-sort-bench + + + + + org.apache.mnemonic + mnemonic-core + ${project.version} + + + + + org.slf4j + slf4j-api + + + org.slf4j + jul-to-slf4j + + + org.slf4j + jcl-over-slf4j + + + log4j + log4j + + + org.slf4j + slf4j-log4j12 + + + + + + + kr.motd.maven + os-maven-plugin + 1.4.0.Final + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.10 + + + + + + + http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/07aace85/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 111689f..33e946a 100644 --- a/pom.xml +++ b/pom.xml @@ -92,6 +92,7 @@ mnemonic-examples mnemonic-memory-services mnemonic-computing-services + mnemonic-benches