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
async fn main() { | |
let mut child = Command::new("vspipe").arg("--y4m").arg("test.vpy").arg("-") | |
.stdout(Stdio::piped()) | |
.spawn().unwrap(); | |
let output = child.stdout.take().unwrap(); | |
let mut reader = BufReader::with_capacity(1024 * 16, output); | |
tokio::spawn(async move { |
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
public static void main(String[] args) throws IOException | |
{ | |
System.out.println("WARMUP"); | |
for (int i = 0; i < 10; ++i) | |
{ | |
insertArrayList(1000); | |
insertLinkedList(1000); | |
} | |
int count = 10; |
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
public final class TestResult | |
{ | |
private final String message; | |
private final State state; | |
private TestResult(String message, State state) | |
{ | |
this.message = message; |
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
public final class TestResult | |
{ | |
private final String message; | |
private final State state; | |
private TestResult(String message, State state) | |
{ | |
this.message = message; |
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
package com.tom.garbage; | |
import com.google.common.base.Stopwatch; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.concurrent.TimeUnit; | |
public class App | |
{ | |
private static volatile Integer val; |