GithubHelp home page GithubHelp logo

searchgpt / fast-mat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ndesmic/fast-mat

0.0 0.0 0.0 10.87 MB

A benchmark for fast matrix calculations

JavaScript 79.60% TypeScript 16.35% HTML 0.62% WebAssembly 3.43%

fast-mat's Introduction

Fast Matix Math

This is a bench-mark for observing the differences in various matrix-math implementations.

deno bench run the bench mark

These will all build to the temp directory. You need to run all of them for benches to successfully run.

  • deno task build:wasm will build the .wat files to wasm
  • deno task gen:presized-funcs will create source-code for hard-coded matrix ops
  • deno task gen:rand-data will generate random test data
  • deno task gen:web-bench will generate a set of bench tests for web
  • deno task gen:web-bench-xl will generate a set of larger example bench tests for web
  • deno task bench will run benchmarks and write to console
  • deno task bench:json will run benchmarks and write to temp/bench.json
  • deno task bench:web will run web benchmarks and write to temp/web-bench.json
  • deno task run:to-csv will convert temp/bench.json to csv
  • deno task run:to-csv will convert temp/web-bench.json to csv
  • deno task run:to-md will convert temp/bench.json to markdown
  • deno task run:poi will filter temp/bench.json to a series of comparision points in both csv and md
  • deno task run:web:poi will filter temp/web-bench.json to a series of comparision points in both csv and md
  • deno task test will run tests

Other functions are for outputing bench data in different formats

Graph of results

Strategies

  • Func
  • Loop
  • Loop Prealloc
  • unrolled
  • unrolled dynamic
  • flat
  • flat col major
  • flat simple
  • flat unrolled
  • F64
  • F32
  • I32
  • F64 flat
  • F32 flat
  • I32 flat
  • flat func
  • WASM F64
  • WASM SIMD F64
  • WASM SIMD F32
  • WASM SIMD I64
  • WebGL F32
  • WebGPU F32

fast-mat's People

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.