Skip to content

Commit 19fca59

Browse files
committed
benchmark: Process jar with ProGuard to save an additional 6 bytes. [jddalton]
1 parent 8eacaab commit 19fca59

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Diff for: nano.jar

-6 Bytes
Binary file not shown.

Diff for: nano.java

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1-
/**
1+
/**
22
* Simple class to expose nanoTime() to JavaScript.
3-
* Compile using:
3+
*
4+
* Compile using
45
* javac -g:none -target 1.5 nano.java
56
* jar cfM nano.jar nano.class
7+
* java -jar progaurd.jar @options.txt
8+
*
9+
* ProGuard (http://proguard.sourceforge.net)
10+
* options.txt
11+
* -injars nano.jar
12+
* -outjars nano_s.jar
13+
* -libraryjars <java.home>/jre/lib/rt.jar
14+
* -keep public class nano {
15+
* public long nanoTime();
16+
* }
617
*/
718
import java.applet.Applet;
819
public class nano extends Applet {

0 commit comments

Comments
 (0)