Skip to content

Commit

Permalink
Merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
emilevr committed Oct 27, 2023
2 parents cfea0ae + f2082f6 commit c0b5e1c
Show file tree
Hide file tree
Showing 9 changed files with 899 additions and 13 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,32 @@ on:
jobs:
benchmark:
name: Benchmark
runs-on: ubuntu-latest
strategy:
matrix:
include:
- runs-on: ubuntu-latest
- runs-on: macos-latest
- runs-on: windows-latest
fail-fast: false
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/detect-and-install-rust-toolchain

- uses: ./.github/actions/install-buildit
# - uses: ./.github/actions/install-buildit

- name: Cache tmp.sample
uses: actions/cache@v3
timeout-minutes: 1
continue-on-error: true
with:
path: ./tmp.sample
key: tmp.sample-${{ github.job }}-${{ runner.os }}
restore-keys: tmp.sample-${{ github.job }}-${{ runner.os }}
# - name: Cache tmp.sample
# uses: actions/cache@v3
# timeout-minutes: 1
# continue-on-error: true
# with:
# path: ./tmp.sample
# key: tmp.sample-${{ github.job }}-${{ runner.os }}
# restore-keys: tmp.sample-${{ github.job }}-${{ runner.os }}

- name: Benchmark
run: buildit benchmark
- name: Run arena allocator benchmark
run: cargo bench

# - name: Benchmark
# run: buildit benchmark
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ target_coverage/

# Artifacts
artifacts/

# Merge artifacts
*.orig
*_BACKUP_*.*
*_BASE_*.*
*_LOCAL_*.*
*_REMOTE_*.*
83 changes: 83 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ name = "space-bench"
path = "src/space_bench.rs"
required-features = ["bench"]

[[bench]]
name = "arenas"
harness = false

[features]
# Uncomment the "default = ..." below to include the nightly features in the build by default, and in the Rust
# analyzer. If you do so then you will have to add "+nightly" to cargo commands, e.g. "cargo +nightly build".
Expand All @@ -44,13 +48,19 @@ crossterm = { version = "^0.27.0", optional = true }
dirs = { version = "^5.0.1", optional = true }
log = { version = "^0.4.20", optional = true }
log4rs = { version = "^1.2.0", optional = true }
page_size = "^0.6.0"
ratatui = { version = "^0.23.0", default-features = false, features = ["crossterm"], optional = true }
rayon = "^1.7.0"
serde = { version = "^1.0.188", features = ["derive"], optional = true }
serde_yaml = { version = "^0.9.25", optional = true }
unicode-segmentation = "^1.10.1"

[dev-dependencies]
bumpalo = { version = "^3.14.0", features = ["collections"] }
bumpalo-herd = "^0.1.2"
criterion = "^0.5.1"
id-arena = { version = "^2.2.1", features = ["rayon"] }
memory-stats = "^1.1.0"
regex = "^1.9.5"
rstest = "^0.18.2"
uuid = { version = "^1.4.1", features = ["v4"] }
Loading

0 comments on commit c0b5e1c

Please sign in to comment.