Skip to content

Commit 5fee76f

Browse files
better measurement of load time
1 parent ca35c75 commit 5fee76f

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

.github/workflows/bench.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ jobs:
2121
- name: Generators
2222
run: RUBYOPT="-W0" bundle exec ruby benchmark/generators.rb
2323
- name: Require
24-
run: RUBYOPT="-W0" bundle exec ruby benchmark/load.rb
24+
run: RUBYOPT="-W0" bundle exec ruby benchmark/require.rb
25+

benchmark/load_faker.rb

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# frozen_string_literal: true
22

3-
require "benchmark"
3+
require 'benchmark'
44

55
ms = Benchmark.realtime do
66
require 'faker'
77
end * 1000
88

9-
puts "took #{ms}ms to laod"
9+
puts "took #{ms}ms to load"

0 commit comments

Comments
 (0)