Skip to content

Commit

Permalink
Setup git-lfs and add Corda's traces
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Feb 9, 2019
1 parent 3a217b2 commit 2e1db0c
Show file tree
Hide file tree
Showing 29 changed files with 56 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
gradlew text eol=lf
gradlew.bat text eol=crlf
mvnw.cmd text eol=crlf
*.gz filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.github.benmanes.caffeine.cache.simulator.parser.address.AddressTraceReader;
import com.github.benmanes.caffeine.cache.simulator.parser.arc.ArcTraceReader;
import com.github.benmanes.caffeine.cache.simulator.parser.cache2k.Cache2kTraceReader;
import com.github.benmanes.caffeine.cache.simulator.parser.corda.CordaTraceReader;
import com.github.benmanes.caffeine.cache.simulator.parser.gradle.GradleTraceReader;
import com.github.benmanes.caffeine.cache.simulator.parser.lirs.LirsTraceReader;
import com.github.benmanes.caffeine.cache.simulator.parser.scarab.ScarabTraceReader;
Expand All @@ -48,7 +49,8 @@ public enum TraceFormat {
UMASS_YOUTUBE(YoutubeTraceReader::new),
WIKIPEDIA(WikipediaTraceReader::new),
CACHE2K(Cache2kTraceReader::new),
SCARAB(ScarabTraceReader::new);
SCARAB(ScarabTraceReader::new),
CORDA(CordaTraceReader::new);

private final Function<String, TraceReader> factory;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Copyright 2019 Ben Manes. All Rights Reserved.
*
* 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 com.github.benmanes.caffeine.cache.simulator.parser.corda;

import java.io.DataInputStream;
import java.io.IOException;

import com.github.benmanes.caffeine.cache.simulator.parser.BinaryTraceReader;

/**
* A reader for the trace files provided by <a href="https://www.r3.com">R3</a>.
*
* @author [email protected] (Christian Sailer)
*/
public final class CordaTraceReader extends BinaryTraceReader {

public CordaTraceReader(String filePath) {
super(filePath);
}

@Override
protected long readLong(DataInputStream input) throws IOException {
return input.readLong();
}
}
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 not shown.
Binary file not shown.
Git LFS file not shown
Git LFS 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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Git LFS file not shown
Git LFS file not shown
Binary file not shown.
1 change: 1 addition & 0 deletions simulator/src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ caffeine.simulator {
# formats, specify the entry in the form "{format}:{path}", e.g. "lirs:loop.trace.gz".
paths = [ multi1.trace.gz ]

# corda: format of Corda traces
# scarab: format of Scarab Research traces
# address: format of UCSD program address traces
# arc: format from the authors of the ARC algorithm
Expand Down

0 comments on commit 2e1db0c

Please sign in to comment.