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 foo; | |
import java.io.File; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Map.Entry; | |
import java.util.Scanner; | |
import java.util.concurrent.CompletionService; | |
import java.util.concurrent.ConcurrentHashMap; |
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 net.tdowns; | |
import java.util.Arrays; | |
import org.openjdk.jmh.annotations.Benchmark; | |
import org.openjdk.jmh.annotations.Param; | |
import org.openjdk.jmh.annotations.Scope; | |
import org.openjdk.jmh.annotations.Setup; | |
import org.openjdk.jmh.annotations.State; |
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 whatever; | |
import java.util.function.Supplier; | |
import org.apache.commons.lang3.concurrent.ConcurrentException; | |
import org.apache.commons.lang3.concurrent.LazyInitializer; | |
import org.openjdk.jmh.annotations.Benchmark; | |
import org.openjdk.jmh.annotations.CompilerControl; | |
import org.openjdk.jmh.annotations.CompilerControl.Mode; | |
import org.openjdk.jmh.annotations.Level; |
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
; compile this like: | |
; nasm -f elf64 decode-test.s | |
default rel | |
BITS 64 | |
GLOBAL _start | |
_start: | |
; iteration count, doesn't really matter much for the purposes of this test | |
mov rsi, 1_000_000 |
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
; compile this like: | |
; nasm -f elf64 decode-test.s | |
default rel | |
BITS 64 | |
GLOBAL _start | |
_start: | |
; iteration count, doesn't really matter much for the purposes of this test | |
mov rsi, 1_000_000 |
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
/* https://stackoverflow.com/questions/20697215/when-should-we-use-prefetch */ | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <sys/timeb.h> | |
#include <emmintrin.h> | |
#define MIB (1024 * 1024) | |
#define ELEM int |
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
// file Base.java | |
public class Base { | |
final void print() { System.out.println("base"); }; | |
} | |
// file Derived.java | |
public class Derived extends Base { | |
@Override | |
void print() { | |
System.out.println("derived"); |
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
git clone https://github.com/Keith-S-Thompson/dhrystone | |
cd dhrystone/v2.2 | |
CFLAGS=-O3 sh dry.c | |
./dry2 |
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
#!/bin/bash | |
sudo apt update | |
sudo apt-get install -y build-essential unzip | |
git clone https://github.com/inikep/lzbench | |
cd lzbench | |
curl http://sun.aei.polsl.pl/~sdeor/corpus/silesia.zip > silesia.zip |
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
#!/bin/bash | |
LINUX=linux-4.19.5 | |
set -e | |
set -x | |
if [ -z "$THREADS" ]; then | |
echo "set THREADS to the number of compilation threads" | |
exit 1 |
OlderNewer