Skip to content

A simple C header to make your own x86 code benchmark easier.

Notifications You must be signed in to change notification settings

Revimal/cbench-x86

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cbench-x86

License: MIT Header-only library

About 'cbench-x86'

This is a simple header file targeting evaluation of computation overhead between C code snippets.

It also contains some helper macros for implementing a benchmark easier, such as the CPU cache line alignment.

Supported environment

  • AMD64 (x86-64); must be compiled with GCC/CLANG.
  • i386(x86) and MSVC supports are in the plan.

Example code

Reference 'example_avx256rotl.c' source file.

It is an example code for the performance comparison of an AVX2 based 'bit-rotate-to-left' implementation to the traditional 'bit-rotate-to-left'.

Contributing guide

Bug reporting

  • Be sure the bug was not already reported on Issues.
  • If the issue seems not duplicated, open a new one from Here.
  • Attaching additional information such as core-dump makes maintainers happier.

Pull request

Contributing rewards

  • When we meet someday, I'll buy you a pint of chilling beer.

About

A simple C header to make your own x86 code benchmark easier.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published