Code Monkey home page Code Monkey logo

benchmarks's Introduction

Overview of different benchmarks

This is a collection of benchmark I collected over the years. In this blog post here I describe what I did and how new benchmarks can be added. For more results of a benchmark, please have a look in the respective folder within benchmarks.

  • The DATE of the last time, the benchmark run.
  • A short description TEST of the benchmark.
  • In the COMMENTS I tried to give a hint of what the setups looked like.
  • The BEST option out of all tested alternatives compared by their mean time.
  • The TIME_FACTOR presents the mean time that can be saved with the best option compared with the mean of the alternatives over all grid setups. Note: The time factor can be negative if the best option is not the best in the cases where it takes more time. For these cases, have a look at the details and dependencies of the grid parameters.
  • BEST_RUNS is the number of cases were BEST solution was actually the best one in relation of all different varying setups that were used (e.g. sample size).
  • DURATION is the time the whole benchmark with all setups took.
DATE TEST COMMENT BEST TIME_FACTOR BEST_RUNS DETAILS DURATION
2024-02-08 20:01:58 assign with <- or = varying size of vector arrow sign 1.2% 3/6 link 00:00:00
2024-02-08 20:02:01 Accsess a colum in a data frame, table or tibble. varying size of data $ df 76.6% 4/4 link 00:00:02
2024-02-08 20:02:02 commented-out code no comments vs. lots of comments No comments 3% 7/7 link 00:00:01
2024-02-08 20:11:29 Calculation of the cross product varying number of rows and colums crossprod(S) 16.1% 7/10 link 00:01:02
2024-02-08 20:02:13 Creating dummies out of factor variable. changing size and number of unique values lapply 35.1% 7/12 link 00:00:10
2024-02-08 20:03:02 Selecting rows by a filter criterion. changing the colum type and the number of unique values DT == & -205.2% 22/40 link 00:00:48
2024-02-08 20:05:11 Is it faster to intersect or use which. changing the length and the percentage of fits which 31% 39/40 link 00:02:08
2024-02-08 20:05:19 get range of numeric vector varying size max(x) - min(x) 50.1% 6/6 link 00:00:07
2024-02-08 20:05:32 Creating a sample index. varying sample size and range runif 77.9% 5/5 link 00:00:12
2024-02-08 20:05:46 Subset between values of a vector between vs. <= and >= <=> 41.7% 47/64 link 00:00:13
2024-02-08 20:06:01 Is it faster to sum over 0's or NA's. changing the length and the percentage of NA's and 0's sum with 0 43.9% 4/5 link 00:00:14
2024-02-08 20:06:04 get unique levels of factors varying sample size and number of unique value unique(x) 67.8% 16/16 link 00:00:02

benchmarks's People

Contributors

lukashaenjes avatar sw-jakobgepp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

benchmarks's Issues

More benchmark ideas

  • filter by columns: base df[df$x == df$y, ] vs. df %>% dplyr::filter(x == y) vs. dplyr::filter(df, x == y) (i.e., no pipe) vs. existing data.table solutions
  • join: base::merge() vs. data.table::merge() vs. dplyr::*_join()

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.