Giter VIP home page Giter VIP logo

option-benchmark's Introduction

option-benchmark

The idea of this repository is to check if benchmark mentioned in http://blog.vorona.ca/scala-option-performance-cost.html is built wrongly. It moves a parameter into JMH parameter to ensure it is not eliminated by JIT when the code is compiled. I have no idea if what I am doing is a correct way to do this though.

See https://twitter.com/abstract_artem/status/1596080570865713152 for more details.

My first run on a totally unscientific setup shows that, while version with parameter is slower, it is slower for all benchmarks, hence the original point stated by the author of that blog post is not disproved.

Use the following command to run:

sbt "jmh:run -i 3 -wi 3 -f1 -t1 .*OptionBenchmark.*"

You might need to have SBT installed before that. See the instruction on how to do this here: https://www.scala-sbt.org/download.html

option-benchmark's People

Contributors

rtar avatar

Watchers

 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.