Skip to content

Commit

Permalink
Add Jedis and Lettuce benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanl-bq authored and acarbonetto committed Oct 3, 2023
1 parent 131efa4 commit 06574ea
Show file tree
Hide file tree
Showing 73 changed files with 2,867 additions and 0 deletions.
Binary file added java/.gradle/8.3/checksums/checksums.lock
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file added java/.gradle/8.3/fileChanges/last-build.bin
Binary file not shown.
Binary file added java/.gradle/8.3/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added java/.gradle/8.3/fileHashes/fileHashes.lock
Binary file not shown.
Binary file not shown.
Empty file added java/.gradle/8.3/gc.properties
Empty file.
Binary file not shown.
2 changes: 2 additions & 0 deletions java/.gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Wed Sep 06 20:33:36 PDT 2023
gradle.version=8.3
Binary file added java/.gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file added java/.gradle/file-system.probe
Binary file not shown.
Empty file.
5 changes: 5 additions & 0 deletions java/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
TODO:
-[] create benchmarks folder
-[] add code for jedis test
-[] add gradle task to run jedis tests
-[]
37 changes: 37 additions & 0 deletions java/benchmarks/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
}

repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}

dependencies {
// Use JUnit test framework.
testImplementation 'junit:junit:4.13.2'

// This dependency is exported to consumers, that is to say found on their compile classpath.
api 'org.apache.commons:commons-math3:3.6.1'

// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation 'com.google.guava:guava:32.1.1-jre'
implementation 'redis.clients:jedis:4.4.3'
implementation 'io.lettuce:lettuce-core:6.2.6.RELEASE'
}

// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

tasks.withType(Test) {
testLogging {
exceptionFormat "full"
events "started", "skipped", "passed", "failed"
showStandardStreams true
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added java/benchmarks/build/libs/benchmarks.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<title>Test results - Class javabushka.client.jedis.JedisClientIT</title>
<link href="../css/base-style.css" rel="stylesheet" type="text/css"/>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<script src="../js/report.js" type="text/javascript"></script>
</head>
<body>
<div id="content">
<h1>Class javabushka.client.jedis.JedisClientIT</h1>
<div class="breadcrumbs">
<a href="../index.html">all</a> &gt;
<a href="../packages/javabushka.client.jedis.html">javabushka.client.jedis</a> &gt; JedisClientIT</div>
<div id="summary">
<table>
<tr>
<td>
<div class="summaryGroup">
<table>
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">4</div>
<p>tests</p>
</div>
</td>
<td>
<div class="infoBox" id="failures">
<div class="counter">0</div>
<p>failures</p>
</div>
</td>
<td>
<div class="infoBox" id="ignored">
<div class="counter">0</div>
<p>ignored</p>
</div>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">14.703s</div>
<p>duration</p>
</div>
</td>
</tr>
</table>
</div>
</td>
<td>
<div class="infoBox success" id="successRate">
<div class="percent">100%</div>
<p>successful</p>
</div>
</td>
</tr>
</table>
</div>
<div id="tabs">
<ul class="tabLinks">
<li>
<a href="#tab0">Tests</a>
</li>
<li>
<a href="#tab1">Standard output</a>
</li>
<li>
<a href="#tab2">Standard error</a>
</li>
</ul>
<div id="tab0" class="tab">
<h2>Tests</h2>
<table>
<thead>
<tr>
<th>Test</th>
<th>Duration</th>
<th>Result</th>
</tr>
</thead>
<tr>
<td class="success">someLibraryMethodReturnsTrue</td>
<td class="success">0.002s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">testResourceInfo</td>
<td class="success">0.001s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">testResourceInfoBySection</td>
<td class="success">0.142s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">testResourceSetGet</td>
<td class="success">14.558s</td>
<td class="success">passed</td>
</tr>
</table>
</div>
<div id="tab1" class="tab">
<h2>Standard output</h2>
<span class="code">
<pre>Avg. time in ms per SET: 0.07751362659
SET p50 latency in ms: 0.0456
SET p90 latency in ms: 0.070699
SET p99 latency in ms: 0.127282
SET std dev in ms: 0.665195671610232
Avg. time in ms per GET: 0.06613250047
GET p50 latency in ms: 0.040224
GET p90 latency in ms: 0.058583
GET p99 latency in ms: 0.10689
GET std dev in ms: 0.6044885619384261
</pre>
</span>
</div>
<div id="tab2" class="tab">
<h2>Standard error</h2>
<span class="code">
<pre>SLF4J: Failed to load class &quot;org.slf4j.impl.StaticLoggerBinder&quot;.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
</pre>
</span>
</div>
</div>
<div id="footer">
<p>
<div>
<label class="hidden" id="label-for-line-wrapping-toggle" for="line-wrapping-toggle">Wrap lines
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 8.3</a> at 6-Sep-2023 8:34:12 PM</p>
</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<title>Test results - Class javabushka.client.lettuce.LettuceClientIT</title>
<link href="../css/base-style.css" rel="stylesheet" type="text/css"/>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<script src="../js/report.js" type="text/javascript"></script>
</head>
<body>
<div id="content">
<h1>Class javabushka.client.lettuce.LettuceClientIT</h1>
<div class="breadcrumbs">
<a href="../index.html">all</a> &gt;
<a href="../packages/javabushka.client.lettuce.html">javabushka.client.lettuce</a> &gt; LettuceClientIT</div>
<div id="summary">
<table>
<tr>
<td>
<div class="summaryGroup">
<table>
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">1</div>
<p>tests</p>
</div>
</td>
<td>
<div class="infoBox" id="failures">
<div class="counter">0</div>
<p>failures</p>
</div>
</td>
<td>
<div class="infoBox" id="ignored">
<div class="counter">0</div>
<p>ignored</p>
</div>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">19.114s</div>
<p>duration</p>
</div>
</td>
</tr>
</table>
</div>
</td>
<td>
<div class="infoBox success" id="successRate">
<div class="percent">100%</div>
<p>successful</p>
</div>
</td>
</tr>
</table>
</div>
<div id="tabs">
<ul class="tabLinks">
<li>
<a href="#tab0">Tests</a>
</li>
<li>
<a href="#tab1">Standard output</a>
</li>
</ul>
<div id="tab0" class="tab">
<h2>Tests</h2>
<table>
<thead>
<tr>
<th>Test</th>
<th>Duration</th>
<th>Result</th>
</tr>
</thead>
<tr>
<td class="success">testResourceSetGet</td>
<td class="success">19.114s</td>
<td class="success">passed</td>
</tr>
</table>
</div>
<div id="tab1" class="tab">
<h2>Standard output</h2>
<span class="code">
<pre>Avg. time in ms per SET: 0.09530544199
SET p50 latency in ms: 0.055105
SET p90 latency in ms: 0.089829
SET p99 latency in ms: 0.184804
SET std dev in ms: 0.7259927555734456
Avg. time in ms per GET: 0.08870054313
GET p50 latency in ms: 0.052371
GET p90 latency in ms: 0.081338
GET p99 latency in ms: 0.145727
GET std dev in ms: 0.6983375291436595
</pre>
</span>
</div>
</div>
<div id="footer">
<p>
<div>
<label class="hidden" id="label-for-line-wrapping-toggle" for="line-wrapping-toggle">Wrap lines
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 8.3</a> at 6-Sep-2023 8:34:12 PM</p>
</div>
</div>
</body>
</html>
Loading

0 comments on commit 06574ea

Please sign in to comment.