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 025BA200D0A for ; Wed, 4 Oct 2017 14:40:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 011151609E2; Wed, 4 Oct 2017 12:40:20 +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 213031609D6 for ; Wed, 4 Oct 2017 14:40:18 +0200 (CEST) Received: (qmail 17900 invoked by uid 500); 4 Oct 2017 12:40:18 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 17890 invoked by uid 99); 4 Oct 2017 12:40:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Oct 2017 12:40:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4E71CC70FE for ; Wed, 4 Oct 2017 12:40:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.82 X-Spam-Level: X-Spam-Status: No, score=-0.82 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_SHORT=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=ya.ru header.b=U9P8tz1S; dkim=pass (1024-bit key) header.d=ya.ru header.b=euhBsj2E Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Lkdty95vN9Sz for ; Wed, 4 Oct 2017 12:40:11 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 055495FE2E for ; Wed, 4 Oct 2017 12:40:11 +0000 (UTC) Received: from mxback5o.mail.yandex.net (mxback5o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1f]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 601CC510336C for ; Wed, 4 Oct 2017 15:40:04 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback5o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ZGIlEfhthm-e4VSNQej; Wed, 04 Oct 2017 15:40:04 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1507120804; bh=/jzkZ9AsI5LQuk7JfqoIkCKA63UvhzQmopkfUjEl/S0=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=U9P8tz1SQbIuMXzb1TJfNiYXo9fju6XbTA5GG/QJpXocTAKok0sZqbf59rFeC6tAw SSIk/M935GxBhqurNwSokrtirI9RH1mOoAR8vSOisdP1ltq84P7hfG7L8JayJyBxQe MOl4uXlC+34anOolNqkJfwF08hkT5qlEydk59TS8= Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id cinQ23pCN7-e3X48W9k; Wed, 04 Oct 2017 15:40:03 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1507120803; bh=/jzkZ9AsI5LQuk7JfqoIkCKA63UvhzQmopkfUjEl/S0=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=euhBsj2EEYFnSXYWZP5+vWQP3DjJnGKpPt7z05vDP1yQjoTzhWJC5F9VYLWVItfjR IVCGdd863+KlCzxNO6zgBuM+Hzoq8LkpGEn8ZXc2xq+HSOdknU/0Lp++bAxEFOxTi6 SIHB7I3QvJkgw9HuTX2+FsrY7ppGwaKOKvU4ZdLw= Authentication-Results: smtp1p.mail.yandex.net; dkim=pass header.i=@ya.ru Subject: Re: Very low performance To: user@ignite.apache.org References: <1507116728627-0.post@n6.nabble.com> From: Konstantin Dudkov Message-ID: Date: Wed, 4 Oct 2017 15:40:03 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1507116728627-0.post@n6.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit archived-at: Wed, 04 Oct 2017 12:40:20 -0000 Dmitry, Is is not quite correct to compare Ignite vs Postgre in this configuration: Apache Ignite is distributed system and you can't feel it's advantages in one-node configuration. 04/10/2017 14:32, Dmitry Pryakhin пишет: > Dear colleagues, > > I consider using Ignite, and now do some testing. Cache performance test has > shown ridiculously low performance. Same test was done against PostgreSQL on > the same computer, with much better result. Now I'm trying to figure out if > it's supposed to work that way, or maybe I've done something wrong. Could > anyone verify my tesging approach and configuration? Details are below. > > > Task: insert 10000 items; keys and values are strings. > > Environment: Intel, Windows, Oracle JRE 1.8. > > Configuration 1: Ignite 2.2, 1 server node and 1 client node deployed on the > same computer, both have default configuration. In-memory cache. > Average execution time = 1.95 sec. > > Configuration 2: Ignite 2.2, 1 server node and 1 client node, deployed on > the same computer. A persistent cache was set up in the server configuration > file. > Best execution time = 510 sec. > > Configuration 3: PosgtreSQL, deployed on the same computer as the client. > Average execution time = 3 sec. > > Server configuration file for configuration 2: > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd"> > > class="org.apache.ignite.configuration.IgniteConfiguration"> > > class="org.apache.ignite.configuration.PersistentStoreConfiguration"/> > > > > > > > > > > > Client code: > > public class PopulateMap { > private static final char[] LETTERS = {'a', 'b', 'c', 'd', 'e', 'f', 'g', > 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'x', > 'y', 'z'}; > private static final int L_SIZE = LETTERS.length; > > public static void main(String argv[]) throws Exception { > Ignition.setClientMode(true); > > int idx0 = 0, idx1 = 0, idx2 = 0; > StringBuilder bf = new StringBuilder(); > > try (Ignite ignite = Ignition.start("default-config.xml")) { > ignite.active(true); > > CacheConfiguration cacheConf = new > CacheConfiguration<>("CacheOne"); > Cache cache = ignite.getOrCreateCache(cacheConf); > cache.clear(); > > long start = System.currentTimeMillis(); > > for (int i = 1; i <= 10000; i++) { > bf.setLength(0); > bf.append(LETTERS[idx0]).append(LETTERS[idx1]).append(LETTERS[idx2]); > > if (++idx2 == L_SIZE) { > idx2 = 0; > if (++idx1 == L_SIZE) { > idx1 = 0; > if (++idx0 == L_SIZE) { > idx0 = 0; > } > } > } > > cache.put(String.valueOf(i), bf.toString()); > } > long end = System.currentTimeMillis(); > System.out.println("=== Execution time is " + (end - start) + " ms."); > } > } > } > > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ > -- Regards, Konstantin.