From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from arjuna.pair.com (arjuna.pair.com [209.68.5.131]) by sourceware.org (Postfix) with ESMTPS id 6DF693857406 for ; Thu, 17 Feb 2022 17:15:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6DF693857406 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bitrange.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bitrange.com Received: by arjuna.pair.com (Postfix, from userid 3006) id EF64F8A741; Thu, 17 Feb 2022 12:15:35 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by arjuna.pair.com (Postfix) with ESMTP id EEC738A777; Thu, 17 Feb 2022 12:15:35 -0500 (EST) Date: Thu, 17 Feb 2022 12:15:35 -0500 (EST) From: Hans-Peter Nilsson X-X-Sender: hp@arjuna.pair.com To: Andras Tantos cc: gcc@gcc.gnu.org Subject: Re: Benchmark recommendations needed In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20.16 (BSF 172 2016-09-29) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2022 17:15:46 -0000 On Mon, 14 Feb 2022, Andras Tantos wrote: > Hello all! > > I'm working on porting GCC to a new processor architecture. I think > I've finally got to a fairly stable stage, so the next logical step > would be to test and optimize. For that, I would need some benchmarks, > and this is where I'm seeking your help. > > This being a hobby project, I can't shell out $1000+ for the spec > suite. On top of that, I only have newlib ported as the runtime, which > means very limited support for OS facilities. > > I already have dhrystone, but what else would you recommend using? > > I'm looking for 'general purpose' payloads, things, where I can judge > object code size, instruction set utilization, look for tuning > opportunities, etc. > > I would like to also be able to compare the results with other > architectures (FPGA cores, such as nios2 as well as some low-end cores, > such as 32-bit arm/thumb and riscv-RV32IMFC). > > So, can you suggest some benchmarks or applications to be used as ones? I don't see Coremark being mentioned yet. It's at https://github.com/eembc/coremark.git and certainly general-purpose; just have follow README.md. I suggest the 10 iterations mentioned in README.md and outputting the number of cycles from your simulator at exit (through a hook or by a simulator option). brgds, H-P