Added benchmarks for java.lang.

Change-Id: I26ed93bbd018d9ecef72727686dc39a9e31f2431
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayIntCreateBenchmark.gwt.xml b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayIntCreateBenchmark.gwt.xml
new file mode 100644
index 0000000..6c00ef2
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayIntCreateBenchmark.gwt.xml
@@ -0,0 +1,19 @@
+<!--                                                                        -->
+<!-- Copyright 2014 Google Inc.                                             -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you    -->
+<!-- may not use this file except in compliance with the License. You may   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.benchmark.benchmarks.java.lang.Lang"/>
+  <entry-point class="com.google.gwt.benchmark.benchmarks.java.lang.shared.ArrayIntCreateBenchmark.EntryPoint"/>
+  <source path="shared" includes="ArrayIntCreateBenchmark.java" />
+</module>
\ No newline at end of file
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayIntCreateBenchmarkD8.gwt.xml b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayIntCreateBenchmarkD8.gwt.xml
new file mode 100644
index 0000000..c6f8206
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayIntCreateBenchmarkD8.gwt.xml
@@ -0,0 +1,18 @@
+<!--                                                                        -->
+<!-- Copyright 2014 Google Inc.                                             -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you    -->
+<!-- may not use this file except in compliance with the License. You may   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.benchmark.benchmarks.java.lang.ArrayIntCreateBenchmark"/>
+  <inherits name="com.google.gwt.benchmark.d8.D8"/>
+</module>
\ No newline at end of file
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayIntSumBenchmark.gwt.xml b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayIntSumBenchmark.gwt.xml
new file mode 100644
index 0000000..295baf6
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayIntSumBenchmark.gwt.xml
@@ -0,0 +1,19 @@
+<!--                                                                        -->
+<!-- Copyright 2014 Google Inc.                                             -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you    -->
+<!-- may not use this file except in compliance with the License. You may   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.benchmark.benchmarks.java.lang.Lang"/>
+  <entry-point class="com.google.gwt.benchmark.benchmarks.java.lang.shared.ArrayIntSumBenchmark.EntryPoint"/>
+  <source path="shared" includes="ArrayIntSumBenchmark.java" />
+</module>
\ No newline at end of file
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayIntSumBenchmarkD8.gwt.xml b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayIntSumBenchmarkD8.gwt.xml
new file mode 100644
index 0000000..52edc68
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayIntSumBenchmarkD8.gwt.xml
@@ -0,0 +1,18 @@
+<!--                                                                        -->
+<!-- Copyright 2014 Google Inc.                                             -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you    -->
+<!-- may not use this file except in compliance with the License. You may   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.benchmark.benchmarks.java.lang.ArrayIntSumBenchmark"/>
+  <inherits name="com.google.gwt.benchmark.d8.D8"/>
+</module>
\ No newline at end of file
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayObjectCreateBenchmark.gwt.xml b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayObjectCreateBenchmark.gwt.xml
new file mode 100644
index 0000000..82b080d
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayObjectCreateBenchmark.gwt.xml
@@ -0,0 +1,19 @@
+<!--                                                                        -->
+<!-- Copyright 2014 Google Inc.                                             -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you    -->
+<!-- may not use this file except in compliance with the License. You may   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.benchmark.benchmarks.java.lang.Lang"/>
+  <entry-point class="com.google.gwt.benchmark.benchmarks.java.lang.shared.ArrayObjectCreateBenchmark.EntryPoint"/>
+  <source path="shared" includes="ArrayObjectCreateBenchmark.java" />
+</module>
\ No newline at end of file
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayObjectCreateBenchmarkD8.gwt.xml b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayObjectCreateBenchmarkD8.gwt.xml
new file mode 100644
index 0000000..c5f827d
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/ArrayObjectCreateBenchmarkD8.gwt.xml
@@ -0,0 +1,18 @@
+<!--                                                                        -->
+<!-- Copyright 2014 Google Inc.                                             -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you    -->
+<!-- may not use this file except in compliance with the License. You may   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.benchmark.benchmarks.java.lang.ArrayObjectCreateBenchmark"/>
+  <inherits name="com.google.gwt.benchmark.d8.D8"/>
+</module>
\ No newline at end of file
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/Lang.gwt.xml b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/Lang.gwt.xml
new file mode 100644
index 0000000..0c34b72
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/Lang.gwt.xml
@@ -0,0 +1,19 @@
+<!--                                                                        -->
+<!-- Copyright 2014 Google Inc.                                             -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you    -->
+<!-- may not use this file except in compliance with the License. You may   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<!-- Base module for all benchmarks for GWT's java.lang emulation           -->
+
+<module>
+  <inherits name="com.google.gwt.benchmark.framework.BenchmarkFramework"/>
+</module>
\ No newline at end of file
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/LongAddBenchmark.gwt.xml b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/LongAddBenchmark.gwt.xml
new file mode 100644
index 0000000..ebdd598
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/LongAddBenchmark.gwt.xml
@@ -0,0 +1,19 @@
+<!--                                                                        -->
+<!-- Copyright 2014 Google Inc.                                             -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you    -->
+<!-- may not use this file except in compliance with the License. You may   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.benchmark.benchmarks.java.lang.Lang"/>
+  <entry-point class="com.google.gwt.benchmark.benchmarks.java.lang.shared.LongAddBenchmark.EntryPoint"/>
+  <source path="shared" includes="LongAddBenchmark.java" />
+</module>
\ No newline at end of file
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/LongAddBenchmarkD8.gwt.xml b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/LongAddBenchmarkD8.gwt.xml
new file mode 100644
index 0000000..feb17ce
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/LongAddBenchmarkD8.gwt.xml
@@ -0,0 +1,18 @@
+<!--                                                                        -->
+<!-- Copyright 2014 Google Inc.                                             -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you    -->
+<!-- may not use this file except in compliance with the License. You may   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.benchmark.benchmarks.java.lang.LongAddBenchmark"/>
+  <inherits name="com.google.gwt.benchmark.d8.D8"/>
+</module>
\ No newline at end of file
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/LongMultiplyBenchmark.gwt.xml b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/LongMultiplyBenchmark.gwt.xml
new file mode 100644
index 0000000..6329266
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/LongMultiplyBenchmark.gwt.xml
@@ -0,0 +1,19 @@
+<!--                                                                        -->
+<!-- Copyright 2014 Google Inc.                                             -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you    -->
+<!-- may not use this file except in compliance with the License. You may   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.benchmark.benchmarks.java.lang.Lang"/>
+  <entry-point class="com.google.gwt.benchmark.benchmarks.java.lang.shared.LongMultiplyBenchmark.EntryPoint"/>
+  <source path="shared" includes="LongMultiplyBenchmark.java" />
+</module>
\ No newline at end of file
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/LongMultiplyBenchmarkD8.gwt.xml b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/LongMultiplyBenchmarkD8.gwt.xml
new file mode 100644
index 0000000..eedb92a
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/LongMultiplyBenchmarkD8.gwt.xml
@@ -0,0 +1,18 @@
+<!--                                                                        -->
+<!-- Copyright 2014 Google Inc.                                             -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you    -->
+<!-- may not use this file except in compliance with the License. You may   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.benchmark.benchmarks.java.lang.LongMultiplyBenchmark"/>
+  <inherits name="com.google.gwt.benchmark.d8.D8"/>
+</module>
\ No newline at end of file
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/StringBuilderLongStringsBenchmark.gwt.xml b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/StringBuilderLongStringsBenchmark.gwt.xml
new file mode 100644
index 0000000..6a1ba64
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/StringBuilderLongStringsBenchmark.gwt.xml
@@ -0,0 +1,19 @@
+<!--                                                                        -->
+<!-- Copyright 2014 Google Inc.                                             -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you    -->
+<!-- may not use this file except in compliance with the License. You may   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.benchmark.benchmarks.java.lang.Lang"/>
+  <entry-point class="com.google.gwt.benchmark.benchmarks.java.lang.shared.StringBuilderLongStringsBenchmark.EntryPoint"/>
+  <source path="shared" includes="StringBuilderLongStringsBenchmark.java" />
+</module>
\ No newline at end of file
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/StringBuilderLongStringsBenchmarkD8.gwt.xml b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/StringBuilderLongStringsBenchmarkD8.gwt.xml
new file mode 100644
index 0000000..8568d7d
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/StringBuilderLongStringsBenchmarkD8.gwt.xml
@@ -0,0 +1,18 @@
+<!--                                                                        -->
+<!-- Copyright 2014 Google Inc.                                             -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you    -->
+<!-- may not use this file except in compliance with the License. You may   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.benchmark.benchmarks.java.lang.StringBuilderLongStringsBenchmark"/>
+  <inherits name="com.google.gwt.benchmark.d8.D8"/>
+</module>
\ No newline at end of file
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/StringBuilderShortStringsBenchmark.gwt.xml b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/StringBuilderShortStringsBenchmark.gwt.xml
new file mode 100644
index 0000000..0c62be8
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/StringBuilderShortStringsBenchmark.gwt.xml
@@ -0,0 +1,19 @@
+<!--                                                                        -->
+<!-- Copyright 2014 Google Inc.                                             -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you    -->
+<!-- may not use this file except in compliance with the License. You may   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.benchmark.benchmarks.java.lang.Lang"/>
+  <entry-point class="com.google.gwt.benchmark.benchmarks.java.lang.shared.StringBuilderLongStringsBenchmark.EntryPoint"/>
+  <source path="shared" includes="StringBuilderShortStringsBenchmark.java" />
+</module>
\ No newline at end of file
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/StringBuilderShortStringsBenchmarkD8.gwt.xml b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/StringBuilderShortStringsBenchmarkD8.gwt.xml
new file mode 100644
index 0000000..2ada622
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/StringBuilderShortStringsBenchmarkD8.gwt.xml
@@ -0,0 +1,18 @@
+<!--                                                                        -->
+<!-- Copyright 2014 Google Inc.                                             -->
+<!-- Licensed under the Apache License, Version 2.0 (the "License"); you    -->
+<!-- may not use this file except in compliance with the License. You may   -->
+<!-- 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. License for the specific language governing permissions and   -->
+<!-- limitations under the License.                                         -->
+
+<module>
+  <inherits name="com.google.gwt.benchmark.benchmarks.java.lang.StringBuilderShortStringsBenchmark"/>
+  <inherits name="com.google.gwt.benchmark.d8.D8"/>
+</module>
\ No newline at end of file
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/ArrayIntCreateBenchmark.java b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/ArrayIntCreateBenchmark.java
new file mode 100644
index 0000000..d3d1d64
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/ArrayIntCreateBenchmark.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * 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.google.gwt.benchmark.benchmarks.java.lang.shared;
+
+import com.google.gwt.benchmark.framework.client.AbstractBenchmarkEntryPoint;
+import com.google.gwt.benchmark.framework.shared.AbstractBenchmark;
+
+/**
+ * Benchmark for integer array creation performance
+ */
+public class ArrayIntCreateBenchmark extends AbstractBenchmark {
+
+  public static class EntryPoint extends AbstractBenchmarkEntryPoint {
+    @Override
+    protected AbstractBenchmark getBenchmark() {
+      return new ArrayIntCreateBenchmark();
+    }
+  }
+
+  private Object[] array;
+
+  public ArrayIntCreateBenchmark() {
+    super("ArrayIntCreateBenchmark");
+  }
+
+  @Override
+  public Object run() {
+    // Note: we are reusing the same array every time, since every run allocates
+    // about 8MB of memory. Not reusing would mean running out of memory very fast
+    // on faster JavaScript VMs
+    for (int i = 0; i < array.length; i++) {
+      array[i] = new int[1000];
+    }
+    return array;
+  }
+
+  @Override
+  public void setupOneTime() {
+    array = new Object[1000];
+  }
+}
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/ArrayIntSumBenchmark.java b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/ArrayIntSumBenchmark.java
new file mode 100644
index 0000000..fa32fea
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/ArrayIntSumBenchmark.java
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * 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.google.gwt.benchmark.benchmarks.java.lang.shared;
+
+import com.google.gwt.benchmark.framework.client.AbstractBenchmarkEntryPoint;
+import com.google.gwt.benchmark.framework.shared.AbstractBenchmark;
+
+/**
+ * Benchmark integer sum performance for arrays.
+ */
+public class ArrayIntSumBenchmark extends AbstractBenchmark {
+
+  public static class EntryPoint extends AbstractBenchmarkEntryPoint {
+    @Override
+    protected AbstractBenchmark getBenchmark() {
+      return new ArrayIntSumBenchmark();
+    }
+  }
+
+  private int[] array;
+
+  public ArrayIntSumBenchmark() {
+    super("ArrayIntSumBenchmark");
+  }
+
+  @Override
+  public Object run() {
+
+    int sum = 0;
+
+    for (int i = 0; i < array.length; i++) {
+      sum += array[i];
+    }
+
+    // compare value - disables opts and finds JIT bugs
+    if (sum != 49995000) {
+      throw new RuntimeException();
+    }
+
+    return Integer.valueOf(sum);
+  }
+
+  @Override
+  public void setupOneTime() {
+    array = new int[10000];
+    for (int i = 0; i < array.length; i++) {
+      array[i] = i;
+    }
+  }
+}
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/ArrayObjectCreateBenchmark.java b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/ArrayObjectCreateBenchmark.java
new file mode 100644
index 0000000..1223c2c
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/ArrayObjectCreateBenchmark.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * 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.google.gwt.benchmark.benchmarks.java.lang.shared;
+
+import com.google.gwt.benchmark.framework.client.AbstractBenchmarkEntryPoint;
+import com.google.gwt.benchmark.framework.shared.AbstractBenchmark;
+
+/**
+ * Benchmark for object array creation performance.
+ */
+public class ArrayObjectCreateBenchmark extends AbstractBenchmark {
+
+  public static class EntryPoint extends AbstractBenchmarkEntryPoint {
+    @Override
+    protected AbstractBenchmark getBenchmark() {
+      return new ArrayObjectCreateBenchmark();
+    }
+  }
+
+  private Object[] array;
+
+  public ArrayObjectCreateBenchmark() {
+    super("ArrayObjectCreateBenchmark");
+  }
+
+  @Override
+  public Object run() {
+    // Note: we are reusing the same array every time, since every run allocates
+    // about 8MB of memory. Not reusing would mean running out of memory very fast
+    // on faster JavaScript VMs
+    for (int i = 0; i < array.length; i++) {
+      array[i] = new Object[1000];
+    }
+    return array;
+  }
+
+  @Override
+  public void setupOneTime() {
+    array = new Object[1000];
+  }
+}
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/LongAddBenchmark.java b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/LongAddBenchmark.java
new file mode 100644
index 0000000..531b3c4
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/LongAddBenchmark.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * 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.google.gwt.benchmark.benchmarks.java.lang.shared;
+
+import com.google.gwt.benchmark.framework.client.AbstractBenchmarkEntryPoint;
+import com.google.gwt.benchmark.framework.shared.AbstractBenchmark;
+
+/**
+ * Benchmark to monitor performance for adding longs in GWT.
+ */
+public class LongAddBenchmark extends AbstractBenchmark {
+
+  public static class EntryPoint extends AbstractBenchmarkEntryPoint {
+    @Override
+    protected AbstractBenchmark getBenchmark() {
+      return new LongAddBenchmark();
+    }
+  }
+
+  private long[] array;
+
+  public LongAddBenchmark() {
+    super("LongAdd");
+  }
+
+  @Override
+  public Object run() {
+    long sum = 0;
+    for (int i = 0; i < array.length; i++) {
+      sum += array[i];
+    }
+
+    if (sum != 49995000L) {
+      throw new RuntimeException();
+    }
+
+    return Long.valueOf(sum);
+  }
+
+  @Override
+  public void setupOneTime() {
+    array = new long[10000];
+    for (int i = 0; i < array.length; i++) {
+      array[i] = i;
+    }
+  }
+}
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/LongMultiplyBenchmark.java b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/LongMultiplyBenchmark.java
new file mode 100644
index 0000000..e2cabdf
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/LongMultiplyBenchmark.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * 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.google.gwt.benchmark.benchmarks.java.lang.shared;
+
+import com.google.gwt.benchmark.framework.client.AbstractBenchmarkEntryPoint;
+import com.google.gwt.benchmark.framework.shared.AbstractBenchmark;
+
+/**
+ * Benchmark to monitor performance for multiplying longs in GWT.
+ */
+public class LongMultiplyBenchmark extends AbstractBenchmark {
+
+  public static class EntryPoint extends AbstractBenchmarkEntryPoint {
+    @Override
+    protected AbstractBenchmark getBenchmark() {
+      return new LongMultiplyBenchmark();
+    }
+  }
+
+  private long[] array;
+
+  public LongMultiplyBenchmark() {
+    super("LongMultiply");
+  }
+
+  @Override
+  public Object run() {
+    long product = 1;
+    for (int i = 0; i < array.length; i++) {
+      product *= array[i];
+    }
+    if(product != 7114059635456803793L) {
+      throw new RuntimeException();
+    }
+    return Long.valueOf(product);
+  }
+
+  @Override
+  public void setupOneTime() {
+    array = new long[1000];
+    for (int i = 0; i < array.length; i++) {
+      // only use odd numbers so we are not overflowing into zero.
+      array[i] = 2 * i + 1;
+    }
+  }
+}
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/StringBuilderLongStringsBenchmark.java b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/StringBuilderLongStringsBenchmark.java
new file mode 100644
index 0000000..5a88792
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/StringBuilderLongStringsBenchmark.java
@@ -0,0 +1,71 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * 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.google.gwt.benchmark.benchmarks.java.lang.shared;
+
+import com.google.gwt.benchmark.collection.shared.CollectionFactory;
+import com.google.gwt.benchmark.collection.shared.JavaScriptArray;
+import com.google.gwt.benchmark.framework.client.AbstractBenchmarkEntryPoint;
+import com.google.gwt.benchmark.framework.shared.AbstractBenchmark;
+
+/**
+ * StringBuilder performance test with long strings.
+ */
+public class StringBuilderLongStringsBenchmark extends AbstractBenchmark {
+
+  public static class EntryPoint extends AbstractBenchmarkEntryPoint {
+    @Override
+    protected AbstractBenchmark getBenchmark() {
+      return new StringBuilderLongStringsBenchmark();
+    }
+  }
+
+  private JavaScriptArray<String> array;
+
+  public StringBuilderLongStringsBenchmark() {
+    super("StringBuilderLongString");
+  }
+
+  @Override
+  public Object run() {
+    StringBuilder builder = new StringBuilder();
+    for (int i = 0; i < array.length(); i++) {
+      builder.append(array.get(i));
+    }
+    return builder.toString();
+  }
+
+  @Override
+  public void setupOneTime() {
+    int length = 1000;
+    array = CollectionFactory.create(length);
+
+    for (int i = 0; i < length; i++) {
+      array.push("this_is_some_string_that_has_some_length_to_see_if_this_makes_a_difference"
+          + "this_is_some_string_that_has_some_length_to_see_if_this_makes_a_difference"
+          + "this_is_some_string_that_has_some_length_to_see_if_this_makes_a_difference"
+          + "this_is_some_string_that_has_some_length_to_see_if_this_makes_a_difference"
+          + "this_is_some_string_that_has_some_length_to_see_if_this_makes_a_difference"
+          + "this_is_some_string_that_has_some_length_to_see_if_this_makes_a_difference"
+          + "this_is_some_string_that_has_some_length_to_see_if_this_makes_a_difference"
+          + "this_is_some_string_that_has_some_length_to_see_if_this_makes_a_difference"
+          + "this_is_some_string_that_has_some_length_to_see_if_this_makes_a_difference"
+          + "this_is_some_string_that_has_some_length_to_see_if_this_makes_a_difference"
+          + "this_is_some_string_that_has_some_length_to_see_if_this_makes_a_difference"
+          + "this_is_some_string_that_has_some_length_to_see_if_this_makes_a_difference"
+          + "this_is_some_string_that_has_some_length_to_see_if_this_makes_a_difference"+ i);
+    }
+  }
+}
diff --git a/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/StringBuilderShortStringsBenchmark.java b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/StringBuilderShortStringsBenchmark.java
new file mode 100644
index 0000000..4382fb8
--- /dev/null
+++ b/benchmarks/src/main/java/com/google/gwt/benchmark/benchmarks/java/lang/shared/StringBuilderShortStringsBenchmark.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * 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.google.gwt.benchmark.benchmarks.java.lang.shared;
+
+import com.google.gwt.benchmark.collection.shared.CollectionFactory;
+import com.google.gwt.benchmark.collection.shared.JavaScriptArray;
+import com.google.gwt.benchmark.framework.client.AbstractBenchmarkEntryPoint;
+import com.google.gwt.benchmark.framework.shared.AbstractBenchmark;
+
+/**
+ * StringBuilder performance test with short strings.
+ */
+public class StringBuilderShortStringsBenchmark extends AbstractBenchmark {
+  public static class EntryPoint extends AbstractBenchmarkEntryPoint {
+    @Override
+    protected AbstractBenchmark getBenchmark() {
+      return new StringBuilderShortStringsBenchmark();
+    }
+  }
+
+  private JavaScriptArray<String> array;
+
+  public StringBuilderShortStringsBenchmark() {
+    super("StringBuilderShortString");
+  }
+
+  @Override
+  public Object run() {
+    StringBuilder builder = new StringBuilder();
+    for (int i = 0; i < array.length(); i++) {
+      builder.append(array.get(i));
+    }
+    return builder.toString();
+  }
+
+  @Override
+  public void setupOneTime() {
+    int length = 1000;
+    array = CollectionFactory.create(length);
+
+    for (int i = 0; i < length; i++) {
+      array.push("" + i);
+    }
+  }
+}