Skip to content

Instantly share code, notes, and snippets.

💭
Selling a company to Microsoft so they can drive it to shit with status updates

Lazaro Herrera WriteCodeEveryday

💭
Selling a company to Microsoft so they can drive it to shit with status updates
Block or report user

Report or block WriteCodeEveryday

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View for_vs_each_benchmark.rb
# Copied from https://gist.github.com/jodosha/229951
#!/usr/bin/env ruby -w
require "benchmark"
TIMES = 100_000
ARRAY = (1..1_000).to_a
Benchmark.bm(100) do |b|
b.report "each" do
TIMES.times do |i|
You can’t perform that action at this time.