We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dc5ac1 commit 87c3476Copy full SHA for 87c3476
bench.cpp
@@ -44,7 +44,8 @@ int main(int argc, char* argv[]) {
44
size_t runs = 5;
45
46
Url::Url base_url(base);
47
- std::string full = Url::Url(relative).relative_to(base_url).str();
+ Url::Url full_url = Url::Url(relative).relative_to(base_url);
48
+ std::string full = full_url.str();
49
50
bench("parse", count, runs, [full]() {
51
Url::Url parsed(full);
@@ -65,4 +66,8 @@ int main(int argc, char* argv[]) {
65
66
bench("parse + punycode", count, runs, [full]() {
67
Url::Url(full).punycode();
68
});
69
+
70
+ bench("punycode + unpunycode", count, runs, [full_url]() mutable {
71
+ full_url.punycode().unpunycode();
72
+ });
73
}
0 commit comments