Skip to content

Commit

Permalink
Merge pull request #234 from bearcove/better-bench
Browse files Browse the repository at this point in the history
Better bench
  • Loading branch information
fasterthanlime authored Sep 2, 2024
2 parents 2563ffb + 76d2664 commit c27cfc5
Show file tree
Hide file tree
Showing 9 changed files with 713 additions and 149 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ junit.xml
.DS_Store
/vendor
profile.json
*.egg-info
7 changes: 7 additions & 0 deletions .zed/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
"features": []
}
}
},
"pyright": {
"settings": {
"python": {
"pythonPath": "scripts/.venv/bin/python"
}
}
}
}
}
2 changes: 1 addition & 1 deletion crates/loona/src/h2/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ where
std::str::from_utf8(&value).unwrap_or("<non-utf8-value>"),
);

if &key[..1] == b":" {
if key.first() == Some(&b':') {
if saw_regular_header {
req_error = Some(H2StreamError::BadRequest(
"All pseudo-header fields MUST appear in a field block before all regular field lines (RFC 9113, section 8.3)"
Expand Down
27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[project]
name = "loona"
version = "0.1.0"
description = "Benchmarking rig for the loona Rust HTTP implementation"
requires-python = ">=3.11"
dependencies = [
"termcolor~=2.4.0",
"openpyxl~=3.1.5",
"psutil>=6.0.0",
]

[tool.setuptools]
packages = ["scripts"]

[tool.pyright]
include = ["scripts"]
exclude = [
"**/__pycache__",
"**/node_modules",
".venv",
]
venvPath = "."
venv = ".venv"

[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"
Loading

0 comments on commit c27cfc5

Please sign in to comment.