/*
* Copyright (C) 2015 higherfrequencytrading.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see
* For 1M entries * run 1 1000000 : 50/90/99/99.9/99.99/worst: 1.0/3.2/14/18/116/172 * run 1 500000 : 50/90/99/99.9/99.99/worst: 0.2/3.0/11/16/45/163 * run 1 250000 : 50/90/99/99.9/99.99/worst: 0.2/3.0/10/16/20/155 * run 1 100000 : 50/90/99/99.9/99.99/worst: 0.2/3.0/9.2/15/20/147 * run 1 50000 : 50/90/99/99.9/99.99/worst: 0.2/3.0/9.2/15/20/139 *
* For 1M entries to ext4 on laptop with SSD * run 1 2,000,000 : 50/90/99/99.9/99.99/worst : 0.2 / 0.7 / 8.7 / 15 / 60 / 129 micro-seconds. * run 1 1,000,000 : 50/90/99/99.9/99.99/worst : 0.2 / 0.5 / 6.6 / 10 / 15 / 43 micro-seconds. * run 1 500,000 : 50/90/99/99.9/99.99/worst : 0.2 / 0.5 / 5.6 / 10 / 15 / 53 micro-seconds. *
* For 1M entries on server to ext4 with PCI-SSD * run 1 1000000 : 50/90/99/99.9/99.99/worst: 0.9/3.2/14/18/106/188 * run 1 500000 : 50/90/99/99.9/99.99/worst: 0.2/3.0/11/16/46/172 * run 1 250000 : 50/90/99/99.9/99.99/worst: 0.2/3.0/10/16/20/163 * run 1 100000 : 50/90/99/99.9/99.99/worst: 0.2/3.0/9.9/15/20/163 * run 1 50000 : 50/90/99/99.9/99.99/worst: 0.2/3.0/9.9/15/20/147 *
* For 10M entries * run 1 1000000 : 50/90/99/99.9/99.99/worst: 1.4/6.2/16/34/135/180 * run 1 500000 : 50/90/99/99.9/99.99/worst: 0.3/3.1/11/17/54/159 * run 1 250000 : 50/90/99/99.9/99.99/worst: 0.3/3.0/10/15/21/147 * run 1 100000 : 50/90/99/99.9/99.99/worst: 0.4/3.2/9.7/15/20/151 * run 1 50000 : 50/90/99/99.9/99.99/worst: 0.4/3.2/9.4/15/20/147 *
* For 100M entries * run 1 1000000 : 50/90/99/99.9/99.99/worst: 570425/2818572/3355443/3422552/3489660/3556769 * run 1 500000 : 50/90/99/99.9/99.99/worst: 1.1/11/27/43/94/184 * run 1 250000 : 50/90/99/99.9/99.99/worst: 0.7/3.3/12/19/40/167 * run 1 100000 : 50/90/99/99.9/99.99/worst: 0.7/3.3/10/16/21/151 * run 1 50000 : 50/90/99/99.9/99.99/worst: 0.7/3.3/10/16/22/155 **/ public class CHMLatencyTestMain { static final int KEYS = 1000 * 1000; static final int RUN_TIME = 30; static final long START_TIME = System.currentTimeMillis(); // TODO test passes but is under development. public static void main(String... ignored) throws IOException { AffinityLock lock = AffinityLock.acquireCore(); File file = File.createTempFile("testCHMLatency", "deleteme"); // File file = new File("testCHMLatency.deleteme"); file.delete(); ChronicleMap