diff --git a/tests/compile-benchmarks/bench.sh b/tests/compile-benchmarks/bench.sh index d87a40b2..e9a7a431 100755 --- a/tests/compile-benchmarks/bench.sh +++ b/tests/compile-benchmarks/bench.sh @@ -1,12 +1,12 @@ #!/bin/bash cd github-query -cargo build +cargo build cargo build --release GIT_SHA=$(git show -s --format=%H) RUST_VERSION=$(rustc --version | cut -f2 -d" ") DATE=$(date +%F) -hyperfine --export-json "../timings/github-query/$DATE.$GIT_SHA.$RUST_VERSION.debug.json" -p "cargo clean -p queries" "cargo build -p queries" -hyperfine --export-json "../timings/github-query/$DATE.$GIT_SHA.$RUST_VERSION.release.json" -p "cargo clean --release -p queries" "cargo build --release -p queries" +hyperfine --export-json "../timings/github-query/$DATE.$GIT_SHA.$RUST_VERSION.debug.json" -p "cargo clean -p queries" "cargo build -p queries" +hyperfine --export-json "../timings/github-query/$DATE.$GIT_SHA.$RUST_VERSION.release.json" -p "cargo clean --release -p queries" "cargo build --release -p queries" diff --git a/tests/compile-benchmarks/github-query/Cargo.lock b/tests/compile-benchmarks/github-query/Cargo.lock index bb1fc8cf..a67dd4ad 100644 --- a/tests/compile-benchmarks/github-query/Cargo.lock +++ b/tests/compile-benchmarks/github-query/Cargo.lock @@ -2,6 +2,18 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "Inflector" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" + +[[package]] +name = "aliasable" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "250f629c0161ad8107cf89319e990051fae62832fd343083bea452d93e2205fd" + [[package]] name = "ascii" version = "0.9.3" @@ -58,43 +70,45 @@ dependencies = [ [[package]] name = "cynic" -version = "2.0.0-dev" +version = "3.2.2" dependencies = [ "cynic-proc-macros", + "ref-cast", "serde", - "serde_json", "static_assertions", "thiserror", ] [[package]] name = "cynic-codegen" -version = "2.0.0-dev" +version = "3.2.2" dependencies = [ "counter", "darling", "graphql-parser", - "lazy_static", "once_cell", + "ouroboros", "proc-macro2", "quote", "strsim", - "syn", + "syn 1.0.109", + "thiserror", ] [[package]] name = "cynic-proc-macros" -version = "2.0.0-dev" +version = "3.2.2" dependencies = [ "cynic-codegen", - "syn", + "quote", + "syn 1.0.109", ] [[package]] name = "darling" -version = "0.13.1" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0d720b8683f8dd83c65155f0530560cba68cd2bf395f6513a483caee57ff7f4" +checksum = "7b750cb3417fd1b327431a470f388520309479ab0bf5e323505daf0290cd3850" dependencies = [ "darling_core", "darling_macro", @@ -102,27 +116,27 @@ dependencies = [ [[package]] name = "darling_core" -version = "0.13.1" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a340f241d2ceed1deb47ae36c4144b2707ec7dd0b649f894cb39bb595986324" +checksum = "109c1ca6e6b7f82cc233a97004ea8ed7ca123a9af07a8230878fcfda9b158bf0" dependencies = [ "fnv", "ident_case", "proc-macro2", "quote", "strsim", - "syn", + "syn 1.0.109", ] [[package]] name = "darling_macro" -version = "0.13.1" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72c41b3b7352feb3211a0d743dc5700a4e3b60f51bd2b368892d1e0f9a95f44b" +checksum = "a4aab4dbc9f7611d8b55048a3a16d2d010c2c8334e46304b40ac1cc14bf3b48e" dependencies = [ "darling_core", "quote", - "syn", + "syn 1.0.109", ] [[package]] @@ -153,18 +167,6 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" -[[package]] -name = "itoa" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35" - -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" - [[package]] name = "libc" version = "0.2.119" @@ -202,13 +204,60 @@ version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5" +[[package]] +name = "ouroboros" +version = "0.15.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1358bd1558bd2a083fed428ffeda486fbfb323e698cdda7794259d592ca72db" +dependencies = [ + "aliasable", + "ouroboros_macro", +] + +[[package]] +name = "ouroboros_macro" +version = "0.15.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f7d21ccd03305a674437ee1248f3ab5d4b1db095cf1caf49f1713ddf61956b7" +dependencies = [ + "Inflector", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn 1.0.109", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + [[package]] name = "proc-macro2" -version = "1.0.36" +version = "1.0.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029" +checksum = "3d433d9f1a3e8c1263d9456598b16fec66f4acc9a74dacffd35c7bb09b3a1328" dependencies = [ - "unicode-xid", + "unicode-ident", ] [[package]] @@ -221,18 +270,32 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.15" +version = "1.0.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145" +checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" dependencies = [ "proc-macro2", ] [[package]] -name = "ryu" -version = "1.0.9" +name = "ref-cast" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f" +checksum = "acde58d073e9c79da00f2b5b84eed919c8326832648a5b109b3fce1bb1175280" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f7473c2cfcf90008193dd0e3e16599455cb601a9fce322b5bb55de799664925" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.35", +] [[package]] name = "serde" @@ -251,18 +314,7 @@ checksum = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9" dependencies = [ "proc-macro2", "quote", - "syn", -] - -[[package]] -name = "serde_json" -version = "1.0.79" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e8d9fa5c3b304765ce1fd9c4c8a3de2c8db365a5b91be52f186efc675681d95" -dependencies = [ - "itoa", - "ryu", - "serde", + "syn 1.0.109", ] [[package]] @@ -279,13 +331,24 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "syn" -version = "1.0.86" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b" +checksum = "59bf04c28bee9043ed9ea1e41afc0552288d3aba9c6efdd78903b802926f4879" dependencies = [ "proc-macro2", "quote", - "unicode-xid", + "unicode-ident", ] [[package]] @@ -305,7 +368,7 @@ checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.109", ] [[package]] @@ -320,10 +383,10 @@ dependencies = [ ] [[package]] -name = "unicode-xid" -version = "0.2.2" +name = "unicode-ident" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" +checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] name = "unreachable" @@ -334,6 +397,12 @@ dependencies = [ "void", ] +[[package]] +name = "version_check" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" + [[package]] name = "void" version = "1.0.2" diff --git a/tests/compile-benchmarks/timings/github-query/2023-09-16.b38c2abbc94a7d58f0aa0263704cb4f4d030dba9.1.69.0.debug.json b/tests/compile-benchmarks/timings/github-query/2023-09-16.b38c2abbc94a7d58f0aa0263704cb4f4d030dba9.1.69.0.debug.json new file mode 100644 index 00000000..a143cadf --- /dev/null +++ b/tests/compile-benchmarks/timings/github-query/2023-09-16.b38c2abbc94a7d58f0aa0263704cb4f4d030dba9.1.69.0.debug.json @@ -0,0 +1,38 @@ +{ + "results": [ + { + "command": "cargo build -p queries", + "mean": 3.27100157684, + "stddev": 0.0154975782731916, + "median": 3.26954712224, + "user": 3.216265, + "system": 0.25231842000000004, + "min": 3.24614587324, + "max": 3.29536862224, + "times": [ + 3.29168945624, + 3.27228628924, + 3.24614587324, + 3.26873212324, + 3.26901520524, + 3.29536862224, + 3.24970528924, + 3.26878291424, + 3.27821095624, + 3.27007903924 + ], + "exit_codes": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + } + ] +} diff --git a/tests/compile-benchmarks/timings/github-query/2023-09-16.b38c2abbc94a7d58f0aa0263704cb4f4d030dba9.1.69.0.release.json b/tests/compile-benchmarks/timings/github-query/2023-09-16.b38c2abbc94a7d58f0aa0263704cb4f4d030dba9.1.69.0.release.json new file mode 100644 index 00000000..b68d593c --- /dev/null +++ b/tests/compile-benchmarks/timings/github-query/2023-09-16.b38c2abbc94a7d58f0aa0263704cb4f4d030dba9.1.69.0.release.json @@ -0,0 +1,38 @@ +{ + "results": [ + { + "command": "cargo build --release -p queries", + "mean": 2.77837632074, + "stddev": 0.019843521450430383, + "median": 2.77889332084, + "user": 3.28294832, + "system": 0.19760354, + "min": 2.7325393618400002, + "max": 2.80333257084, + "times": [ + 2.80333257084, + 2.7325393618400002, + 2.80127752884, + 2.78366894584, + 2.78110311284, + 2.76823357084, + 2.78890977884, + 2.7723849458400003, + 2.7756298628400002, + 2.77668352884 + ], + "exit_codes": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + } + ] +}