/* Copyright (C) 2021-2024 Free Software Foundation, Inc. Contributed by Oracle. This file is part of GNU Binutils. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ import java.util.*; public class Routine implements Intface { /* add integers */ public int add_int (int scale) { int x = 0; int kmax = 100*scale; double tEnd = jsynprog.Timer() + jsynprog.testtime; do { x = 0; for (int k=0; k v1 = new Vector (200000); for (int i=0; i<1000000;i++) { v1.add(new Integer(i)); } return v1; } /* remove last element of vector */ private void vrem_last(Vector v) { v.remove(v.size()-1); } /* remove first element of vector */ private void vrem_first(Vector v) { v.remove(0); } /* Spend time in system calls */ public void sys_op(int scale) { long stime ; int jmax = 1000000; int imax = 4; double tEnd = jsynprog.Timer() + jsynprog.testtime; do { for (int i = 0; i < imax; i++) { for(int j=0; j