Skip to content

Commit 56559c7

Browse files
gnzlbgalexcrichton
authored andcommitted
Adds benchmarks for nallocx, calloc, alloc, alloc_excess, ralloc, ralloc_excess (gnzlbg#26)
* [bench] nallocx cost * [jemalloc-sys] detect jemalloc/configure * [bench] calloc cost * [bench] alloc/dealloc round-trip * [bench] alloc_excess when the excess is used/unused * [jemalloc-sys] detect unsupported targets * [bench] add test::black_box(ptr) on all benches * [bench] realloc * [bench] realloc_excess * [bench] run benchmarks only on x86_64-unknown-linux-gnu * move all benchmarks into one file * remove benchmark build from travis * remove checks in jemalloc-sys/build.rs for missing configure file * docs * fix calloc bench
1 parent 9044f68 commit 56559c7

File tree

5 files changed

+4206
-6
lines changed

5 files changed

+4206
-6
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ matrix:
2222
after_success:
2323
- travis-cargo --only nightly doc-upload
2424

25-
before_script:
26-
- if [ -z "$NO_ADD" ]; then rustup target add $TARGET; fi
27-
2825
script:
26+
- if [ -z "$NO_ADD" ]; then rustup target add $TARGET; fi
2927
- cargo run --target $TARGET --manifest-path systest/Cargo.toml
3028
- cargo build --target $TARGET
3129
- cargo build --target $TARGET --features profiling

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ A Rust allocator backed by jemalloc
1414

1515
[lib]
1616
test = false
17+
bench = false
1718

1819
[workspace]
1920
members = ["systest"]

0 commit comments

Comments
 (0)