Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Benchmarks/DomainName/DomainName.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ let benchmarks: @Sendable () -> Void = {

let google = "google.com"
Benchmark(
"google_dot_com_String_Parsing_CPU_200K",
"google_dot_com_String_Parsing_CPU_1M",
configuration: .init(
metrics: [.cpuUser],
warmupIterations: 5,
maxIterations: 1000,
)
) { benchmark in
for _ in 0..<200_000 {
for _ in 0..<1_000_000 {
let domainName = try! DomainName(google)
blackHole(domainName)
}
Expand All @@ -33,14 +33,14 @@ let benchmarks: @Sendable () -> Void = {

let appAnalyticsServices = "app-analytics-services.com"
Benchmark(
"app-analytics-services_dot_com_String_Parsing_CPU_200K",
"app-analytics-services_dot_com_String_Parsing_CPU_1M",
configuration: .init(
metrics: [.cpuUser],
warmupIterations: 5,
maxIterations: 1000,
)
) { benchmark in
for _ in 0..<200_000 {
for _ in 0..<1_000_000 {
let domainName = try! DomainName(appAnalyticsServices)
blackHole(domainName)
}
Expand Down
6 changes: 3 additions & 3 deletions Benchmarks/Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Benchmarks/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let package = Package(
.default(enabledTraits: ["IDNA_SUPPORT", "NIO_BYTE_BUFFER_SUPPORT"]),
],
dependencies: [
.package(url: "https://github.com/swift-dns/swift-idna.git", from: "1.0.0-beta.23"),
.package(url: "https://github.com/swift-dns/swift-idna.git", from: "1.0.0-beta.24"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.82.0"),
],
targets: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"cpuUser": {
"max": 240000000,
"min": 230031359
"min": 230000000
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cpuUser": {
"max": 140000000,
"min": 130000000
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cpuUser": 110000000
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"cpuUser": {
"max": 300154879,
"min": 290000000
"max": 290000000,
"min": 270000000
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"cpuUser": 200000000
"cpuUser": {
"max": 200000000,
"min": 190000000
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"cpuUser": {
"max": 200000000,
"min": 190000000
"max": 180092927,
"min": 170000000
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"cpuUser": {
"max": 240000000,
"min": 180000000
"max": 190000000,
"min": 180092927
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"cpuUser": {
"max": 220000000,
"max": 180000000,
"min": 170000000
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"cpuUser": {
"max": 170000383,
"min": 170000000
}
"cpuUser": 180000000
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"cpuUser": {
"max": 1710000000,
"min": 1690000000
"max": 1730000000,
"min": 1700000000
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"cpuUser": {
"max": 230000000,
"min": 180000000
"max": 180000000,
"min": 170000000
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"cpuUser": {
"max": 180092927,
"min": 180000000
}
"cpuUser": 180000000
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"cpuUser": {
"max": 250000000,
"min": 190000000
"max": 190000000,
"min": 180092927
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"cpuUser": {
"max": 200000000,
"max": 190054399,
"min": 190000000
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"cpuUser": 200000000
"cpuUser": {
"max": 190000000,
"min": 180000000
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"cpuUser": {
"max": 190000000,
"min": 180000000
"min": 180092927
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"cpuUser": {
"max": 200000000,
"min": 190054399
"min": 190000000
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"cpuUser": 170000000
"cpuUser": {
"max": 170000383,
"min": 170000000
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"cpuUser": 170000000
"cpuUser": {
"max": 200000000,
"min": 170000000
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"cpuUser": {
"max": 910000000,
"min": 820000000
"max": 820000000,
"min": 810000000
}
}
6 changes: 3 additions & 3 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let package = Package(
.default(enabledTraits: ["IDNA_SUPPORT", "NIO_BYTE_BUFFER_SUPPORT"]),
],
dependencies: [
.package(url: "https://github.com/swift-dns/swift-idna.git", from: "1.0.0-beta.23"),
.package(url: "https://github.com/swift-dns/swift-idna.git", from: "1.0.0-beta.24"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.82.0"),
],
targets: [
Expand Down