aboutsummaryrefslogtreecommitdiffstats
path: root/microbenchmark-template
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-02-03 19:39:57 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-02-03 19:40:46 +0100
commit4e41765624292d8d5069f52bce0493e48725a05a (patch)
tree15aeb9a620b42d32c8961853e4e44bedfd8241bf /microbenchmark-template
parentb3c696c01ca143928624af180c2672779ce0d076 (diff)
downloadsonarqube-4e41765624292d8d5069f52bce0493e48725a05a.tar.gz
sonarqube-4e41765624292d8d5069f52bce0493e48725a05a.zip
Improve micro-benchmark of Externalizable
Diffstat (limited to 'microbenchmark-template')
-rw-r--r--microbenchmark-template/src/main/java/org/sonar/microbenchmark/SerializationBenchmark.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/microbenchmark-template/src/main/java/org/sonar/microbenchmark/SerializationBenchmark.java b/microbenchmark-template/src/main/java/org/sonar/microbenchmark/SerializationBenchmark.java
index c392d7cf841..6957fa1f403 100644
--- a/microbenchmark-template/src/main/java/org/sonar/microbenchmark/SerializationBenchmark.java
+++ b/microbenchmark-template/src/main/java/org/sonar/microbenchmark/SerializationBenchmark.java
@@ -147,10 +147,10 @@ public class SerializationBenchmark {
@Override
public void writeExternal(ObjectOutput out) throws IOException {
- out.writeObject(uuid);
- out.writeObject(severity);
- out.writeObject(message);
- out.writeObject(author);
+ out.writeBytes(uuid);
+ out.writeBytes(severity);
+ out.writeBytes(message);
+ out.writeBytes(author);
out.writeInt(line);
}