Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Found via `typos --hidden --format brief`
  • Loading branch information
kianmeng committed Mar 2, 2024
1 parent 39db0ed commit 1fa6c8f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion History.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Add missing files
* 1 minor fix:
* Don't send label through printf so that % work directly

* 1 documenation changes:
* 1 documentation changes:
* Use HEREDOC and wrap at 80 chars for example result description

* 1 usage fix:
Expand Down
2 changes: 1 addition & 1 deletion lib/benchmark/compare.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def compare(*entries, order: :fastest)
sorted = entries.sort_by{ |e| e.stats.central_tendency }.reverse
baseline = sorted.shift
else
raise ArgumentError, "Unknwon order: #{order.inspect}"
raise ArgumentError, "Unknown order: #{order.inspect}"
end

$stdout.puts "\nComparison:"
Expand Down
2 changes: 1 addition & 1 deletion lib/benchmark/ips/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def time_us before, after
(after.to_f - before.to_f) * MICROSECONDS_PER_SECOND
end

# Calculate the interations per second given the number
# Calculate the iterations per second given the number
# of cycles run and the time in microseconds that elapsed.
# @param [Integer] cycles Cycles.
# @param [Integer] time_us Time in microsecond.
Expand Down
4 changes: 2 additions & 2 deletions lib/benchmark/ips/report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def samples

# Control if the total time the job took is reported.
# Typically this value is not significant because it's very
# close to the expected time, so it's supressed by default.
# close to the expected time, so it's suppressed by default.
def show_total_time!
@show_total_time = true
end
Expand Down Expand Up @@ -115,7 +115,7 @@ def header
@label.to_s.rjust(20)
end

# Return string repesentation of Entry object.
# Return string representation of Entry object.
# @return [String] Header and body.
def to_s
"#{header} #{body}"
Expand Down

0 comments on commit 1fa6c8f

Please sign in to comment.