Skip to content

Commit

Permalink
remove unnecessary ips
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzedge committed Dec 1, 2024
1 parent a856414 commit 117abb0
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tasks/ips.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
compare_slice_vs_brackets
end

task :assign_variable_vs_not do
compare_assign_variable_vs_not
end

task :string_shovel_plus_interpolation do
compare_string_shovel_plus_interpolation
end
Expand Down Expand Up @@ -129,22 +125,6 @@ def compare_slice_vs_brackets
end
end

def compare_assign_variable_vs_not
compare do |bm|
bm.config time: 20, warmup: 2
a = 1

bm.report 'assign var' do
b = 2
a + b
end

bm.report 'no var' do
a + 2
end
end
end

def compare_string_shovel_plus_interpolation
compare do |bm|
bm.report '<<' do
Expand Down

0 comments on commit 117abb0

Please sign in to comment.