turingschool/performance_of_code

Name: performance_of_code

Owner: Turing School of Software & Design

Description: null

Created: 2015-05-05 04:35:03.0

Updated: 2017-05-02 15:17:48.0

Pushed: 2017-05-02 15:17:46.0

Homepage: null

Size: 43

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Performance of Code

This repository is a companion for a Turing lesson on profiling code performance

It includes several examples, including:

performance_of_code.rb

This file contains some example code snippets for you to experiment with benchmarking basic ruby code

car.rb

This file contains a simple object-oriented model of a car. Experiment with profiling it using the built-in ruby profiler:

ruby -rprofile car.rb

fib.rb

This file contains an implementation of the fibonacci sequence. Try profiling it as well:

ruby -rprofile fib.rb


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.