私は現在、グーグルコードプロジェクトのウィキで入手可能ないくつかのドキュメントを使ってキャリパーを回避しようとしています。いくつかのベンチマークを実行できたので、コマンドラインよりも少し明確に結果を読み取れるように、結果をオンラインで投稿したいと思います。
wikiの指示に従い、microbenchmarks.appspot.com Webサイトにアクセスして、APIキーを「.caliperrc」ファイルにコピーしました。ちなみに、このWebページでは、「。caliperrc」ファイルは「Windowsの場合:C:\。caliperrc」である必要があると説明されていますが、実際、CaliperはWindows上にある%HOME%\。caliperrcを検索します(少なくとも7):c:\ users \%login%\。caliperrc。
これにより、Caliperは実際に結果をアップロードしようとしますが、「http://microbenchmarks.appspot.com:80/run/に投稿できませんでした:内部サーバーエラー」というメッセージで失敗します。Runner.runメソッドのコードを変更してRuntimeExceptionのスタックトレースも出力するようにすると、次のように表示されます(.caliperrcファイルに「APIKey」の文字列がある%APIKey%):
java.lang.RuntimeException: Posting to http://microbenchmarks.appspot.com:80/run/ failed.
at com.google.caliper.Runner.postResults(Runner.java:206)
at com.google.caliper.Runner.run(Runner.java:96)
at com.google.caliper.Runner.main(Runner.java:405)
at com.google.caliper.Runner.main(Runner.java:417)
at collections.ArrayListBenchmark.main(ArrayListBenchmark.java:119)
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://microbenchmarks.appspot.com:80/run/%APIKey%/collections.ArrayListBenchmark
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.google.caliper.Runner.postResults(Runner.java:200)
... 4 more
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://microbenchmarks.appspot.com:80/run/%APIKey%/collections.ArrayListBenchmark
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at com.google.caliper.Runner.postResults(Runner.java:188)
... 4 more
従うべきステップがありませんか?それが重要な場合、私は次のJavaバージョンを使用してsvnから直接Caliperソースコードを実行しているWindows764ビットを使用しています。
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)