Giter Club home page Giter Club logo

odinperf's Introduction

To run benchmark you first need to build Odin.dll. Make sure you have Odin installed. Open a terminal and navigate to the root of the project. Build the Odin code using:

odin build Odin -build-mode:dll -o:aggressive

This should procuce the necessary Odin.dll in the root of the project. You can now run the benchmark using:

dotnet run -c Release -arch: x64

Note Odin Version: dev-2023-10-nightly:2cca0050

Note For macOS users. Compile the Odin code to a .dylib file

  1. Run odin build Odin -build-mode:dll -out:libOdin -o:aggressive
  2. Add libOdin.dylib to OdinPerf.fsproj analogously: <Content Include="libOdin.dylib">...</Content>
  3. Run dotnet run -c Release -arch: osx or omit -arch entirely.

Results from my machine:

// * Summary *

BenchmarkDotNet v0.13.10, Windows 11 (10.0.22621.2134/22H2/2022Update/SunValley2)
13th Gen Intel Core i9-13900K, 1 CPU, 32 logical and 24 physical cores
.NET SDK 8.0.100
  [Host]     : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX2 DEBUG
  DefaultJob : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX2


| Method        | Mean       | Error     | StdDev    |
|-------------- |-----------:|----------:|----------:|
| FSharp_Bench1 | 291.169 us | 2.8295 us | 2.6467 us |
| Odin_Bench1   |   8.233 us | 0.0817 us | 0.0764 us |
| FSharp_Bench2 | 300.321 us | 2.6954 us | 2.3894 us |
| Odin_Bench2   |  12.352 us | 0.2092 us | 0.1956 us |
| FSharp_Min    |  18.401 us | 0.2386 us | 0.2232 us |
| Odin_Min      |   4.351 us | 0.0474 us | 0.0443 us |

odinperf's People

Contributors

matthewcrews avatar aviavni avatar madjazz 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.