Git Product home page Git Product logo

felt-bench's Introduction

Starknet Field Element Benchmark

Comparison of performance of various Starknet field element type implementations.

Results

stark_curve starknet-ff lambdaworks-math cairo-felt
add 2.4747 ns 877.72 ps 847.71 ps ๐Ÿ‘‘ 18.514 ns
add_assign 1.5418 ns 1.0736 ns ๐Ÿ‘‘ 1.6910 ns 22.489 ns
sub 2.2956 ns 1.7650 ns 869.94 ps ๐Ÿ‘‘ 17.627 ns
sub_assign 1.2958 ns ๐Ÿ‘‘ 1.3825 ns - 20.443 ns
mul 13.252 ns 13.982 ns 871.34 ps ๐Ÿ‘‘ 191.29 ns
mul_assign 11.673 ns ๐Ÿ‘‘ 19.648 ns - 180.07 ns
invert 4.0473 ยตs 1.6647 ยตs ๐Ÿ‘‘ 7.5690 ยตs -

Environment

  • CPU

    AMD Ryzen 9 5950X 16-Core Processor

  • OS

    Debian GNU/Linux 11 (bullseye)

Running benchmarks

To run the benchmarks:

$ cargo bench

felt-bench's People

Contributors

xjonathanlei avatar juanbono avatar mirko-von-leipzig 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.