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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/target
**/target
/.idea
/.vscode
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,14 @@ regex = "1.9.6"
[target.'cfg(unix)'.dev-dependencies]
tempfile = "3.10.0"
actix-web = "4"

[profile.pgo]
inherits = "release"
# https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Rust/faf/Cargo.toml + lto=true
opt-level = 3
panic = 'abort'
codegen-units = 1
lto = true
debug = false
incremental = false
overflow-checks = false
7 changes: 7 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pgo:
#!/bin/bash
trap "kill 0" EXIT
cargo run --release --manifest-path pgo/server/Cargo.toml &
# Should be more than 1m
cargo pgo run -- --profile pgo -- -z 3m -c 900 --no-tui http://localhost:8888
cargo pgo optimize build -- --profile pgo
Loading