Package com.taobao.metamorphosis.utils.test

Examples of com.taobao.metamorphosis.utils.test.ConcurrentTestCase.start()


                catch (InterruptedException e) {
                    // ignore
                }
            }
        });
        testCase.start();
        System.out.println("Appended 80000 messages,cost:" + testCase.getDurationInMillis() / 1000 + " seconds");
        assertEquals(80000, this.messageStore.getMessageCount());

    }
View Full Code Here


            public void run(final int index, final int times) throws Exception {
                result.addAndGet(System.currentTimeMillis());

            }
        });
        testCase.start();
        System.out.println("System:" + result.get());
        return testCase.getDurationInMillis();
    }

View Full Code Here

            public void run(final int index, final int times) throws Exception {
                result.addAndGet(SystemTimer.currentTimeMillis());

            }
        });
        testCase.start();
        System.out.println("SystemTimer:" + result.get());
        return testCase.getDurationInMillis();
    }
}
View Full Code Here

                JournalTransactionStoreUnitTest.this.transactionStore.commit(xid, false);

            }
        });

        testCase.start();

        System.out.println("����ʱ�䣺" + testCase.getDurationInMillis() + "ms");

        for (int i = 0; i < 10; i++) {
            final MessageStore store = this.messageStoreManager.getOrCreateMessageStore("topic1", i);
View Full Code Here

                long v = counter.incrementAndGet();
                ConcurrentLRUHashMapUnitTest.this.map.put(String.valueOf(v), (byte) 1);

            }
        });
        testCase.start();
        System.out.println(testCase.getDurationInMillis());
        assertEquals(100, this.map.size());
    }
}
View Full Code Here

                catch (final InterruptedException e) {

                }
            }
        });
        testCase.start();
        assertEquals(5000000, counter.get());
        assertEquals(0, this.fetchRequestQueue.size());
        System.out.println(testCase.getDurationInMillis());
        shutdown.set(true);
    }
View Full Code Here

                    throw new RuntimeException("error");
                }
                ids.addAndGet(id);
            }
        });
        testCase.start();
        System.out.println(ids.get());
        System.out.println(testCase.getDurationInMillis());
    }

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.