File tree Expand file tree Collapse file tree 6 files changed +920
-1
lines changed Expand file tree Collapse file tree 6 files changed +920
-1
lines changed Original file line number Diff line number Diff line change 1
- /target
1
+ ** /target
2
2
/.idea
3
3
/.vscode
Original file line number Diff line number Diff line change @@ -84,3 +84,14 @@ regex = "1.9.6"
84
84
[target .'cfg(unix)' .dev-dependencies ]
85
85
tempfile = " 3.10.0"
86
86
actix-web = " 4"
87
+
88
+ [profile .pgo ]
89
+ inherits = " release"
90
+ # https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Rust/faf/Cargo.toml + lto=true
91
+ opt-level = 3
92
+ panic = ' abort'
93
+ codegen-units = 1
94
+ lto = true
95
+ debug = false
96
+ incremental = false
97
+ overflow-checks = false
Original file line number Diff line number Diff line change
1
+ pgo :
2
+ #!/ bin/ bash
3
+ trap " kill 0" EXIT
4
+ cargo run --release --manifest-path pgo/ server/ Cargo.toml &
5
+ # Should be more than 1m
6
+ cargo pgo run -- --profile pgo -- -z 3 m -c 900 --no-tui http:// localhost:8888
7
+ cargo pgo optimize build -- --profile pgo
You can’t perform that action at this time.
0 commit comments