GithubHelp home page GithubHelp logo

mateusrodrigues / vectorrotationbenchmarking Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 24 KB

Benchmarking mathematical vector rotation through matrix-based and quaternion-based methods using BenchmarkDotNet to obtain memory, CPU, and time-related information on these ops.

License: MIT License

C# 100.00%
linear-algebra vector-rotation matrices quaternions benchmarking

vectorrotationbenchmarking's Introduction

VectorRotationBenchmarking

Benchmarking mathematical vector rotation through matrix-based and quaternion-based methods using BenchmarkDotNet to obtain memory-related, CPU-related and time-related information on these ops.

Running the Project

  1. Download Visual Studio 2017
  2. Open the VectorRotationBenchmarking.sln solution file
  3. Build the solution as Release, not Debug
  4. Go to your bin\Release folder in the project's folder on Windows Explorer and run VectorRotationBenchmarking.exe as admin for the Hardware Counters to work

It should take a while on average hardware. By the end of the run, you should have the results of the benchmark on your screen as well as in the BenchmarkDotNet.Artifacts folder inside bin\Release.

Works On My Machine (tm)

BenchmarkDotNet=v0.10.8, OS=Windows 10 Redstone 2 (10.0.15063)
Processor=Intel Core i7-5500U CPU 2.40GHz (Broadwell), ProcessorCount=4
Frequency=2338338 Hz, Resolution=427.6542 ns, Timer=TSC
  [Host]     : Clr 4.0.30319.42000, 32bit LegacyJIT-v4.7.2098.0
  DefaultJob : Clr 4.0.30319.42000, 32bit LegacyJIT-v4.7.2098.0
Method Mean Error StdDev StdErr Min Q1 Median Q3 Max Op/s Gen 0 Allocated Timer/Op TotalCycles/Op
MatrixRotate 1,611.6 ns 24.62 ns 21.83 ns 5.833 ns 1,571.6 ns 1,594.1 ns 1,613.7 ns 1,621.5 ns 1,658.5 ns 620,502.9 0.6008 1264 B 48 7322
QuaternionRotate 799.8 ns 14.59 ns 12.94 ns 3.457 ns 781.9 ns 789.9 ns 797.8 ns 806.3 ns 827.4 ns 1,250,267.5 0.3119 656 B 21 3318

vectorrotationbenchmarking's People

Contributors

mateusrodrigues avatar

Watchers

 avatar  avatar  avatar

vectorrotationbenchmarking's Issues

Unit test rotation algorithms and quaternion operations

Create a test project alongside to test the functionalities of the methods inside Helpers\Quaternion.cs and Helpers\RotationOperations.cs. This will be useful so that future code change inside these algorithms may be done in a timely manner with automated testing.

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.