Skip to content
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

Rkuris/cache read strategy in benchmark cmd #790

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

rkuris
Copy link
Collaborator

@rkuris rkuris commented Feb 12, 2025

Expose cache read strategy to benchmark command

Has a decent impact to the load times on my mac:

  $ cargo run --profile maxperf --bin benchmark -- -n 100 create
    Finished `maxperf` profile [optimized] target(s) in 0.33s
     Running `target/maxperf/benchmark -n 100 create`
  [2025-02-12T20:27:46Z INFO  benchmark::create] Generated and inserted 100 batches of size 10000 in 9s 981ms

  $ cargo run --profile maxperf --bin benchmark -- -n 100 -C branch-reads create
    Finished `maxperf` profile [optimized] target(s) in 0.14s
     Running `target/maxperf/benchmark -n 100 -C branch-reads create`
  [2025-02-12T20:29:58Z INFO  benchmark::create] Generated and inserted 100 batches of size 10000 in 10s 179ms

  $ cargo run --profile maxperf --bin benchmark -- -n 100 -C all create
    Finished `maxperf` profile [optimized] target(s) in 0.33s
     Running `target/maxperf/benchmark -n 100 -C all create`
  [2025-02-12T20:27:29Z INFO  benchmark::create] Generated and inserted 100 batches of size 10000 in 12s 596ms

Has a decent impact to the load times on my mac:

  $ cargo run --profile maxperf --bin benchmark -- -n 100 create
    Finished `maxperf` profile [optimized] target(s) in 0.33s
     Running `target/maxperf/benchmark -n 100 create`
  [2025-02-12T20:27:46Z INFO  benchmark::create] Generated and inserted 100 batches of size 10000 in 9s 981ms

  $ cargo run --profile maxperf --bin benchmark -- -n 100 -C branch-reads create
    Finished `maxperf` profile [optimized] target(s) in 0.14s
     Running `target/maxperf/benchmark -n 100 -C branch-reads create`
  [2025-02-12T20:29:58Z INFO  benchmark::create] Generated and inserted 100 batches of size 10000 in 10s 179ms

  $ cargo run --profile maxperf --bin benchmark -- -n 100 -C all create
    Finished `maxperf` profile [optimized] target(s) in 0.33s
     Running `target/maxperf/benchmark -n 100 -C all create`
  [2025-02-12T20:27:29Z INFO  benchmark::create] Generated and inserted 100 batches of size 10000 in 12s 596ms
Some were in the flattened structure, others were not.
@rkuris rkuris self-assigned this Feb 12, 2025
@rkuris rkuris merged commit 2c8c772 into main Feb 12, 2025
5 checks passed
@rkuris rkuris deleted the rkuris/cache-read-strategy-in-benchmark-cmd branch February 12, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant