Skip to content

fix: ci #468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2025
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
1 change: 1 addition & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
# fail-fast: false
matrix:
os: [ubuntu-22.04]
lang: [
Expand Down
4 changes: 2 additions & 2 deletions bench/algorithm/http-server/1-http2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ fn main() -> anyhow::Result<()> {
.and_then(|s| s.into_string().ok())
.and_then(|s| s.parse().ok())
.unwrap_or(10);
let mut rng = thread_rng();
let port = rng.gen_range(30000..40000);
let mut rng = rand::rng();
let port = rng.random_range(30000..40000);
tokio_main(n, port)?;
std::process::exit(0);
}
Expand Down
4 changes: 2 additions & 2 deletions bench/algorithm/http-server/1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ fn main() -> anyhow::Result<()> {
.and_then(|s| s.into_string().ok())
.and_then(|s| s.parse().ok())
.unwrap_or(10);
let mut rng = thread_rng();
let port = rng.gen_range(30000..40000);
let mut rng = rand::rng();
let port = rng.random_range(30000..40000);
tokio_main(n, port)?;
std::process::exit(0);
}
Expand Down
4 changes: 2 additions & 2 deletions bench/algorithm/http-server/2-http2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ fn main() -> anyhow::Result<()> {
.and_then(|s| s.into_string().ok())
.and_then(|s| s.parse().ok())
.unwrap_or(10);
let mut rng = thread_rng();
let port = rng.gen_range(30000..40000);
let mut rng = rand::rng();
let port = rng.random_range(30000..40000);
tokio_main(n, port)?;
std::process::exit(0);
}
Expand Down
4 changes: 2 additions & 2 deletions bench/algorithm/http-server/2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ fn main() -> anyhow::Result<()> {
.and_then(|s| s.into_string().ok())
.and_then(|s| s.parse().ok())
.unwrap_or(10);
let mut rng = thread_rng();
let port = rng.gen_range(30000..40000);
let mut rng = rand::rng();
let port = rng.random_range(30000..40000);
tokio_main(n, port)?;
std::process::exit(0);
}
Expand Down
2 changes: 1 addition & 1 deletion bench/bench_go_ffi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ environments:
- os: linux
compiler: go
version: latest
docker: golang:1.23
docker: golang:1.24
env:
GOAMD64: v3 # https://github.com/golang/go/wiki/MinimumRequirements#amd64
include: go
Expand Down
2 changes: 1 addition & 1 deletion bench/bench_nim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ problems:
- 2.nim
- name: http-server
source:
- 1.nim
# - 1.nim
- name: coro-prime-sieve
source:
- 1.nim
Expand Down
8 changes: 4 additions & 4 deletions bench/bench_zig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ problems:
- name: spectral-norm
source:
- 1.zig
- 2.zig
- 2-m.zig
# - 2.zig
# - 2-m.zig
- name: pidigits
source:
- 1.zig
Expand All @@ -27,7 +27,7 @@ problems:
- name: fannkuch-redux
source:
- 1.zig
- 2.zig
# - 2.zig
- 2-m.zig
- 3-i.zig
- name: fasta
Expand Down Expand Up @@ -63,6 +63,6 @@ environments:
version: latest
docker:
include: zig
build: zig build -Dcpu=broadwell --verbose-llvm-cpu-features
build: zig build -Dcpu=broadwell # --verbose-llvm-cpu-features
out_dir: zig-out/bin
run_cmd: app
3 changes: 3 additions & 0 deletions bench/include/rust-nightly/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ edition = "2021"
name = "_app"
version = "0.1.0"

[workspace]
resolver = "3"

[features]
default = []

Expand Down
3 changes: 3 additions & 0 deletions bench/include/rust-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ edition = "2021"
name = "_app"
version = "0.1.0"

[workspace]
resolver = "3"

[features]
default = [
"wasm",
Expand Down
7 changes: 5 additions & 2 deletions bench/include/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ edition = "2021"
name = "_app"
version = "0.1.0"

[workspace]
resolver = "3"

[features]
default = [
"async-std",
Expand Down Expand Up @@ -42,8 +45,8 @@ rayon = "1"
regex = "1"
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["float_roundtrip", "preserve_order"] }
simd-json = "0.14"
sonic-rs = "0.3"
simd-json = "0.15"
sonic-rs = "0.4"
static-rc = "0"

async-channel = { version = "2", optional = true }
Expand Down
Loading