Skip to content

Commit cc305e0

Browse files
committed
Run benchmarks 10k times, not 100
1 parent c6b35d1 commit cc305e0

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

benchmarks/addressable-equality/benchmark.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
require "addressable/uri"
77

88
run_benchmark(100) do
9-
100.times do
9+
10000.times do
1010
# URI equality comparison
1111
uri1 = Addressable::URI.parse("http://example.com")
1212
uri2 = Addressable::URI.parse("http://example.com:80/")

benchmarks/addressable-getters/benchmark.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
COMPLEX_URI = "https://user:pass@example.com:8080/path/to/resource?query=value&foo=bar#fragment"
99

1010
run_benchmark(100) do
11-
100.times do
11+
10000.times do
1212
# Component access
1313
uri = Addressable::URI.parse(COMPLEX_URI)
1414
uri.scheme

benchmarks/addressable-join/benchmark.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
require "addressable/uri"
77

88
run_benchmark(100) do
9-
100.times do
9+
10000.times do
1010
# URI joining
1111
base = Addressable::URI.parse("http://example.com/a/b/c")
1212
base.join("../d")

benchmarks/addressable-merge/benchmark.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
SIMPLE_URI = "http://example.com/path"
99

1010
run_benchmark(100) do
11-
100.times do
11+
10000.times do
1212
# URI merging
1313
uri = Addressable::URI.parse(SIMPLE_URI)
1414
uri.merge(scheme: "https", port: 8080)

benchmarks/addressable-new/benchmark.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
require "addressable/uri"
77

88
run_benchmark(100) do
9-
100.times do
9+
10000.times do
1010
# URI construction from hash
1111
Addressable::URI.new(
1212
scheme: "https",

benchmarks/addressable-normalize/benchmark.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
require "addressable/uri"
77

88
run_benchmark(100) do
9-
100.times do
9+
10000.times do
1010
# URI normalization
1111
uri = Addressable::URI.parse("HTTP://EXAMPLE.COM:80/path")
1212
uri.normalize

benchmarks/addressable-parse/benchmark.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
COMPLEX_URI = "https://user:pass@example.com:8080/path/to/resource?query=value&foo=bar#fragment"
1111

1212
run_benchmark(100) do
13-
100.times do
13+
10000.times do
1414
# URI parsing - simple and complex
1515
Addressable::URI.parse(SIMPLE_URI)
1616
Addressable::URI.parse(COMPLEX_URI)

benchmarks/addressable-setters/benchmark.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
SIMPLE_URI = "http://example.com/path"
99

1010
run_benchmark(100) do
11-
100.times do
11+
10000.times do
1212
# Component modification
1313
uri = Addressable::URI.parse(SIMPLE_URI)
1414
uri.scheme = "https"

benchmarks/addressable-to-s/benchmark.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
COMPLEX_URI = "https://user:pass@example.com:8080/path/to/resource?query=value&foo=bar#fragment"
99

1010
run_benchmark(100) do
11-
100.times do
11+
10000.times do
1212
# URI to string conversion
1313
uri = Addressable::URI.parse(COMPLEX_URI)
1414
uri.to_s

0 commit comments

Comments
 (0)