jaroslav@314: /** jaroslav@314: * Back 2 Browser Bytecode Translator jaroslav@314: * Copyright (C) 2012 Jaroslav Tulach jaroslav@314: * jaroslav@314: * This program is free software: you can redistribute it and/or modify jaroslav@314: * it under the terms of the GNU General Public License as published by jaroslav@314: * the Free Software Foundation, version 2 of the License. jaroslav@314: * jaroslav@314: * This program is distributed in the hope that it will be useful, jaroslav@314: * but WITHOUT ANY WARRANTY; without even the implied warranty of jaroslav@314: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jaroslav@314: * GNU General Public License for more details. jaroslav@314: * jaroslav@314: * You should have received a copy of the GNU General Public License jaroslav@314: * along with this program. Look for COPYING file in the top folder. jaroslav@314: * If not, see http://opensource.org/licenses/GPL-2.0. jaroslav@314: */ Martin@268: package org.apidesign.benchmark.matrixmul; Martin@268: Martin@268: public class Main { Martin@268: Martin@268: public static final int ITERATION_COUNT = 100000; Martin@268: Martin@268: public static void main(String[] args) { Martin@268: Matrix m1 = new Matrix(5); Martin@268: Matrix m2 = new Matrix(5); Martin@268: Martin@268: m1.generateData(); Martin@268: m2.generateData(); Martin@268: Martin@268: //m1.printOn(System.out); Martin@268: //System.out.println("x"); Martin@268: //m2.printOn(System.out); Martin@268: Martin@268: for (int i = 0; i < ITERATION_COUNT; i++) { Martin@268: m1.multiply(m2); Martin@268: } Martin@268: Martin@268: //System.out.println("="); Martin@268: //m1.printOn(System.out); Martin@268: } Martin@268: }