-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding optional json output of results.
- Loading branch information
1 parent
164b921
commit ed282d3
Showing
8 changed files
with
214 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Build | ||
on: [push, pull_request, workflow_dispatch] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
- name: Cache Maven packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 21 | ||
distribution: adopt | ||
architecture: x64 | ||
- name: Build | ||
run: mvn --batch-mode test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
* Copyright 2024 Philterd, LLC @ https://www.philterd.ai | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package ai.philterd.phileas.benchmark; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class Result { | ||
|
||
private String document; | ||
private String redactor; | ||
|
||
@SerializedName("workload_millis") | ||
private long workloadMillis; | ||
|
||
@SerializedName("calls_per_sec") | ||
private Map<Integer, Long> callsPerSecond; | ||
|
||
public Result() { | ||
this.callsPerSecond = new HashMap<>(); | ||
} | ||
|
||
public String getDocument() { | ||
return document; | ||
} | ||
|
||
public void setDocument(String document) { | ||
this.document = document; | ||
} | ||
|
||
public String getRedactor() { | ||
return redactor; | ||
} | ||
|
||
public void setRedactor(String redactor) { | ||
this.redactor = redactor; | ||
} | ||
|
||
public long getWorkloadMillis() { | ||
return workloadMillis; | ||
} | ||
|
||
public void setWorkloadMillis(long workloadMillis) { | ||
this.workloadMillis = workloadMillis; | ||
} | ||
|
||
public Map<Integer, Long> getCallsPerSecond() { | ||
return callsPerSecond; | ||
} | ||
|
||
public void setCallsPerSecond(Map<Integer, Long> callsPerSecond) { | ||
this.callsPerSecond = callsPerSecond; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
rootLogger=OFF, STDOUT | ||
appender.console.type = Console | ||
appender.console.name = STDOUT | ||
appender.console.layout.type = PatternLayout | ||
appender.console.layout.pattern = [%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n |