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

Add java JNA FFI client benchmarking #28

Closed
wants to merge 2 commits into from

Conversation

Yury-Fridlyand
Copy link

The rust part based on code from #25, so get doesn't work as well. It is a sync client.

Repro instructions:

  1. Check out java-jna-ffi branch
  2. cd java
  3. cargo build
  4. ./gradlew :benchmarks:run

TODOs:

  • Automate rust lib copying by gradle
Config Action Java FFI JNA Jedis Lettuce
1 client 10 concurrent Get NE p50 0.117 0.025 0.047
1 client 10 concurrent Get NE p90 0.126 0.028 0.053
1 client 10 concurrent Get NE p99 0.167 0.037 0.096
1 client 10 concurrent Get NE avg 0.115 0.025 0.049
1 client 10 concurrent Get NE std 0.097 0.003 0.016
1 client 10 concurrent Get E p50 0.118 0.025 0.047
1 client 10 concurrent Get E p90 0.131 0.028 0.054
1 client 10 concurrent Get E p99 0.170 0.037 0.100
1 client 10 concurrent Get E avg 0.119 0.028 0.050
1 client 10 concurrent Get E std 0.147 0.561 0.024
1 client 10 concurrent Set p50 0.027 0.049
1 client 10 concurrent Set p90 0.034 0.059
1 client 10 concurrent Set p99 0.045 0.108
1 client 10 concurrent Set avg 0.028 0.053
1 client 10 concurrent Set std 0.005 0.025
2 client 10 concurrent Get NE p50 0.101 0.024 0.044
2 client 10 concurrent Get NE p90 0.112 0.025 0.048
2 client 10 concurrent Get NE p99 0.155 0.033 0.065
2 client 10 concurrent Get NE avg 0.108 0.024 0.045
2 client 10 concurrent Get NE std 0.418 0.002 0.004
2 client 10 concurrent Get E p50 0.103 0.024 0.045
2 client 10 concurrent Get E p90 0.116 0.025 0.049
2 client 10 concurrent Get E p99 0.161 0.033 0.066
2 client 10 concurrent Get E avg 0.107 0.024 0.046
2 client 10 concurrent Get E std 0.204 0.010 0.005
2 client 10 concurrent Set p50 0.025 0.046
2 client 10 concurrent Set p90 0.027 0.051
2 client 10 concurrent Set p99 0.034 0.069
2 client 10 concurrent Set avg 0.025 0.047
2 client 10 concurrent Set std 0.002 0.005
1 client 100 concurrent Get NE p50 0.105 0.024 0.045
1 client 100 concurrent Get NE p90 0.118 0.025 0.048
1 client 100 concurrent Get NE p99 0.140 0.033 0.057
1 client 100 concurrent Get NE avg 0.106 0.025 0.045
1 client 100 concurrent Get NE std 0.231 0.002 0.003
1 client 100 concurrent Get E p50 0.107 0.024 0.045
1 client 100 concurrent Get E p90 0.123 0.025 0.048
1 client 100 concurrent Get E p99 0.147 0.033 0.057
1 client 100 concurrent Get E avg 0.110 0.025 0.045
1 client 100 concurrent Get E std 0.412 0.016 0.003
1 client 100 concurrent Set p50 0.025 0.046
1 client 100 concurrent Set p90 0.026 0.049
1 client 100 concurrent Set p99 0.034 0.058
1 client 100 concurrent Set avg 0.025 0.046
1 client 100 concurrent Set std 0.002 0.013
2 client 100 concurrent Get NE p50 0.107 0.024 0.046
2 client 100 concurrent Get NE p90 0.119 0.025 0.048
2 client 100 concurrent Get NE p99 0.137 0.033 0.058
2 client 100 concurrent Get NE avg 0.107 0.024 0.046
2 client 100 concurrent Get NE std 0.034 0.002 0.003
2 client 100 concurrent Get E p50 0.110 0.024 0.046
2 client 100 concurrent Get E p90 0.125 0.025 0.048
2 client 100 concurrent Get E p99 0.141 0.033 0.058
2 client 100 concurrent Get E avg 0.112 0.024 0.046
2 client 100 concurrent Get E std 0.545 0.001 0.005
2 client 100 concurrent Set p50 0.025 0.047
2 client 100 concurrent Set p90 0.026 0.050
2 client 100 concurrent Set p99 0.034 0.060
2 client 100 concurrent Set avg 0.025 0.047
2 client 100 concurrent Set std 0.054 0.003

Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
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.

2 participants