Giter Site home page Giter Site logo

embench-tester's Introduction

Embench tester

This project is an open source tool for benchmarking CPU cores available in the LiteX SoC builder The cores are tested with the Embench open source test suite for embedded systems. LiteX is a toolset for building Systems-on-a-Chip with many CPU cores and with support for multiple architectures, e.g. RISC-V, OpenPOWER or OpenRISC.

Embench tester project achieves its goal by executing Embench tests on simulated minimalistic SoC designs featuring core designs that the user wants to benchmark. Once the tests are done, the execution results are provided in absolute and relative forms. Absolute results show the time that was needed to finish the test, while relative results show performance in relation to the reference Arm Cortex M4 core

Project files

This project consists of the following files:

  • pylib/run_litex_sim.py - contains an Embench module enabling LiteX simulation target
  • config/sim - Embench configuration adding LiteX simulation target
  • sim.py - contains minimalistic LiteX SoC configuration used in simulation
  • run.py - script for running benchmarks on a single CPU
  • table_maker.py - script used to aggregate multiple json results from multiple cores and create .csv and .rst tables summarising all performed tests
  • install.sh - bash script you can execute to install needed software to perform testing

Installation

To install LiteX, Embench and all required software run:

sudo ./install.sh
export PATH=$PATH:~/.local.bin:$(echo $PWD/riscv64-*/bin/):$PWD/or1k/bin:$PWD/lm32gcc/bin

It will install required repositories to curent directory.

Usage

To test CPU core run:

./run.py --cpu-type <cpu_name>

Currently available targets are:

  • vexriscv
  • serv
  • picorv32
  • minerva
  • cv32e40p
  • mor1kx
  • microwatt
  • lm32

The results are provided as a set of json files stored in a directory named after the tested CPU. To create the summarizing tables, run the ./table_maker.py script. The script will create the following files:

  • relative_results.csv/rst - aggregated in relation to Arm Cortex M4
  • absolute_results.csv/rst - aggregated absolute results in ms
  • platform.csv/rst - contains information about the toolchains, simulators and cores versions used in the benchmark.

embench-tester's People

Contributors

kgugala avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.