Git Product home page Git Product logo

optimizemeplease's Introduction

OptimizeMePlease

You are probably here because you saw my post on Linkedin.

Welcome!

Steps

  • Before you run an application, you will need to create a database (I'm using MSSQL) named "OptimizeMePlease"
  • Go to Program.cs class
  • "IWillPopulateDate()" is a method which will get a script from the project directory and run in on created DB
  • Run application in Debug/Release mode
  • Comment or delete IWillPopulateData() call from Main method
  • Go to BenchmarkService.cs class
  • Start coding within GetAuthors_Optimized method

How do I submit my solution?

  • Clone the project, create a branch and work on that branch.

OR

  • If you don't want to bother with github, after you're done with the changes, send me the results on Linkedin.

Rules

  • Only Entity Framework (Core) is allowed for using
  • The data obtained in the non-optimized version of the code must also be obtained in the optimized version
  • If you see potential optimization of something else, you can do it
  • Entities and DbContext cannot be changed (you got legacy code no matter what it might be bad :) )
  • The models returned from the method can be changed

What should the method return?

  • Given that there is a predefined database of data, the method should in any case return the list of data currently returned by the non-optimized method.

How will performance success be measured?

  • Given that each of us works on a computer with different performance and power, the execution time quotient of the non-optimized and optimized method will be checked for each separately.

Example:

Non-optimized method Execution time: 1.1s = 1100ms Optimized method Execution time: 200ms

Result: 1100ms/200ms = 5.5x faster.

In addition, I will check the performance on my computer for individual results.

GOOD LUCK!

optimizemeplease's People

Contributors

stefanthecode avatar mak100186 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.