Examples of PerformanceTest


Examples of org.jboss.arquillian.performance.annotation.PerformanceTest

      parsePerformanceRules(event.getTestClass());
   }
  
   public void parsePerformanceRules(TestClass testClass)
   {
      PerformanceTest performanceTest = (PerformanceTest) testClass.getAnnotation(PerformanceTest.class);
      if(performanceTest != null)
      {
         PerformanceClassResult classPerformance =
            new PerformanceClassResult(performanceTest, testClass.getName());
        
View Full Code Here

Examples of org.jboss.arquillian.performance.annotation.PerformanceTest

      parsePerformanceRules(event.getTestClass());
   }
  
   public void parsePerformanceRules(TestClass testClass)
   {
      PerformanceTest performanceTest = (PerformanceTest) testClass.getAnnotation(PerformanceTest.class);
      if(performanceTest != null)
      {
         PerformanceClassResult classPerformance =
            new PerformanceClassResult(performanceTest, testClass.getName());
        
View Full Code Here

Examples of voldemort.performance.PerformanceTest

                                                                                                                                         new FileSplit(jsonFilePath,
                                                                                                                                                       0,
                                                                                                                                                       jsonFileStatus.getLen(),
                                                                                                                                                       (String[]) null));

        PerformanceTest readWriteTest = new PerformanceTest() {

            @Override
            public void doOperation(int index) throws Exception {
                try {

                    BytesWritable key = new BytesWritable();
                    BytesWritable value = new BytesWritable();

                    reader.next(key, value);
                    store.put(new ByteArray(ByteUtils.copy(key.get(), 0, key.getSize())),
                              Versioned.value(ByteUtils.copy(value.get(), 0, value.getSize())), null);
                } catch(ObsoleteVersionException e) {
                    obsoletes.incrementAndGet();
                }
            }
        };
        readWriteTest.run(30 * 1000 * 1000, 1);
        System.out.println("Bdb write throuhput with one thread:");
        readWriteTest.printStats();
    }
View Full Code Here

Examples of voldemort.performance.PerformanceTest

                                                                                                                                         new FileSplit(jsonFilePath,
                                                                                                                                                       0,
                                                                                                                                                       jsonFileStatus.getLen(),
                                                                                                                                                       (String[]) null));

        PerformanceTest readWriteTest = new PerformanceTest() {

            @Override
            public void doOperation(int index) throws Exception {
                try {

                    BytesWritable key = new BytesWritable();
                    BytesWritable value = new BytesWritable();

                    reader.next(key, value);
                    store.put(new ByteArray(ByteUtils.copy(key.get(), 0, key.getSize())),
                              Versioned.value(ByteUtils.copy(value.get(), 0, value.getSize())), null);
                } catch(ObsoleteVersionException e) {
                    obsoletes.incrementAndGet();
                }
            }
        };
        readWriteTest.run(1000, 1);
        System.out.println("MySQl write throuhput with one thread:");
        readWriteTest.printStats();
    }
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.