Skip to content

Commit

Permalink
Move CounterPerf to test/benchmark folder
Browse files Browse the repository at this point in the history
* Move the perf tests to outside of the main source code.
* Update the counter-perf script to utilize the test-run.
  • Loading branch information
jabolina committed Jun 9, 2024
1 parent 8741b8b commit d531a60
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion bin/counter-perf.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

BASEDIR=$(dirname "$0")

`dirname $0`/run.sh -ea org.jgroups.perf.CounterPerf -props raft.xml $*
# shellcheck disable=SC2086,SC2048
"$BASEDIR"/test-run.sh -ea org.jgroups.perf.counter.CounterPerf -props raft.xml $*

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.jgroups.perf;
package org.jgroups.perf.counter;

import org.HdrHistogram.AbstractHistogram;
import org.HdrHistogram.AtomicHistogram;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.jgroups.perf;
package org.jgroups.perf.counter;

import org.HdrHistogram.AbstractHistogram;
import org.HdrHistogram.Histogram;
import org.jgroups.blocks.atomic.BaseCounter;

import org.jgroups.raft.blocks.RaftAsyncCounter;
import org.jgroups.raft.blocks.RaftCounter;
import org.jgroups.raft.blocks.RaftSyncCounter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.jgroups.perf;
package org.jgroups.perf.counter;

import org.HdrHistogram.AbstractHistogram;
import org.HdrHistogram.Histogram;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.jgroups.perf;
package org.jgroups.perf.counter;

import org.HdrHistogram.AbstractHistogram;
import org.HdrHistogram.AtomicHistogram;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.jgroups.perf;
package org.jgroups.perf.counter;

import org.HdrHistogram.AbstractHistogram;
import org.HdrHistogram.Histogram;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.jgroups.perf;
package org.jgroups.perf.jmh;

import org.jgroups.JChannel;
import org.jgroups.protocols.raft.FileBasedLog;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.jgroups.perf;
package org.jgroups.perf.jmh;

import org.jgroups.protocols.raft.*;
import org.openjdk.jmh.annotations.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.jgroups.perf;
package org.jgroups.perf.jmh;

import com.sun.nio.file.ExtendedOpenOption;
import org.openjdk.jmh.annotations.*;
Expand Down

0 comments on commit d531a60

Please sign in to comment.