mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-26 21:42:48 +01:00
Fix bench project configuration (#338)
This commit is contained in:
parent
dc4def1d7f
commit
15160eccc6
2 changed files with 22 additions and 2 deletions
|
@ -8,10 +8,30 @@ You can assembly the jar like this
|
|||
|
||||
```
|
||||
sbt bench/assembly
|
||||
[info] Updating secp256k1jni...
|
||||
[info] Done updating.
|
||||
[info] Updating core...
|
||||
[info] Done updating.
|
||||
[warn] There may be incompatibilities among your library dependencies.
|
||||
[warn] Run 'evicted' to see detailed eviction warnings
|
||||
[info] Updating ...
|
||||
[info] Done updating.
|
||||
[warn] There may be incompatibilities among your library dependencies.
|
||||
[warn] Run 'evicted' to see detailed eviction warnings
|
||||
[info] Compiling 4 Scala sources to /home/chris/dev/bitcoin-s-core/core/target/scala-2.12/classes ...
|
||||
[info] Done compiling.
|
||||
[info] Compiling 56 Scala sources to /home/chris/dev/bitcoin-s-core/core/target/scala-2.12/classes ...
|
||||
[info] Done compiling.
|
||||
[info] Strategy 'discard' was applied to 11 files (Run the task at debug level to see details)
|
||||
[info] Packaging /home/chris/dev/bitcoin-s-core/bench/target/scala-2.12/bitcoin-s-bench-assembly-f85fcf-1550326975891-SNAPSHOT.jar ...
|
||||
[info] Done packaging.
|
||||
```
|
||||
|
||||
|
||||
and then run with
|
||||
|
||||
```
|
||||
$ java -Xprof -jar bench/target/scala-2.11/bench-assembly-0.0.1-SNAPSHOT.jar > output.txt
|
||||
$ java -Xprof -jar /home/chris/dev/bitcoin-s-core/bench/target/scala-2.12/bitcoin-s-bench-assembly-f85fcf-1550326975891-SNAPSHOT.jar > output.txt
|
||||
```
|
||||
|
||||
The `hash` and `timestamp` are in the console output above. In this example it is `f85fcf` and `1550326975891`
|
||||
|
|
|
@ -162,9 +162,9 @@ lazy val rpc = project
|
|||
lazy val bench = project
|
||||
.in(file("bench"))
|
||||
.enablePlugins()
|
||||
.settings(commonSettings: _*)
|
||||
.settings(assemblyOption in assembly := (assemblyOption in assembly).value
|
||||
.copy(includeScala = true))
|
||||
.settings(commonSettings: _*)
|
||||
.settings(
|
||||
libraryDependencies ++= Deps.bench,
|
||||
name := "bitcoin-s-bench",
|
||||
|
|
Loading…
Add table
Reference in a new issue