Skip to content

Commit ac67bc3

Browse files
author
Dragos Manolescu
committed
Initial version
1 parent 0d8142d commit ac67bc3

File tree

9 files changed

+589
-4
lines changed

9 files changed

+589
-4
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
*~
12
*.class
23
*.log
4+
#/.lib/
35

46
# sbt specific
57
dist/*
@@ -10,4 +12,5 @@ project/boot/
1012
project/plugins/project/
1113

1214
# Scala-IDE specific
13-
.scala_dependencies
15+
.scala_dependencies
16+
.idea*

LICENSE

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
json-scala-perftest is © 2012, Dragos Manolescu
2+
3+
Released under the terms of the Apache-2.0.
4+
See http://www.apache.org/licenses/LICENSE-2.0.html for full text.

README.md

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
json-scala-parsing-performance-tests
2-
====================================
1+
# JSON Scala parsing performance tests — Performance tests for Scala JSON parsing options #
32

4-
Performance tests for Scala JSON parsing
3+
## Build & run ##
4+
5+
```sh
6+
$ cd JSON-Scala-parsing-performance-tests
7+
$ ./sbt
8+
> run
9+
```
10+
11+
## Contact ##
12+
13+
- Dragos Manolescu
14+

build.sbt

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
/* basic project info */
2+
name := "json-scala-perftest"
3+
4+
organization := "com.micro-workflow"
5+
6+
version := "0.1.0-SNAPSHOT"
7+
8+
description := "Performance tests for Scala JSON parsing options"
9+
10+
homepage := Some(url("https://github.com/polymorphic/json-scala-perftest"))
11+
12+
startYear := Some(2012)
13+
14+
licenses := Seq(
15+
("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html"))
16+
)
17+
18+
scmInfo := Some(
19+
ScmInfo(
20+
url("https://github.com/polymorphic/json-scala-perftest"),
21+
"scm:git:https://github.com/polymorphic/json-scala-perftest.git",
22+
Some("scm:git:[email protected]:polymorphic/json-scala-perftest.git")
23+
)
24+
)
25+
26+
// organizationName := "My Company"
27+
28+
/* scala versions and options */
29+
scalaVersion := "2.9.2"
30+
31+
// crossScalaVersions := Seq("2.9.1")
32+
33+
offline := false
34+
35+
scalacOptions ++= Seq("-deprecation", "-unchecked")
36+
37+
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation")
38+
39+
/* entry point */
40+
mainClass in (Compile, packageBin) := Some("com.micro-workflow.json-scala-perftest.Main")
41+
42+
mainClass in (Compile, run) := Some("com.micro-workflow.json-scala-perftest.Main")
43+
44+
/* dependencies */
45+
libraryDependencies ++= Seq (
46+
// "org.scalaz" %% "scalaz-core" % "7.0.0-M3",
47+
// "org.scalaz" %% "scalaz-effect" % "7.0.0-M3",
48+
// "org.scalacheck" %% "scalacheck" % "1.10.0" % "test"
49+
)
50+
51+
/* you may need these repos */
52+
resolvers ++= Seq(
53+
// Resolvers.sonatypeRepo("snapshots")
54+
// Resolvers.typesafeIvyRepo("snapshots")
55+
// Resolvers.typesafeIvyRepo("releases")
56+
// Resolvers.typesafeRepo("releases")
57+
// Resolvers.typesafeRepo("snapshots")
58+
// JavaNet2Repository,
59+
// JavaNet1Repository
60+
)
61+
62+
/* sbt behavior */
63+
logLevel in compile := Level.Warn
64+
65+
traceLevel := 5
66+
67+
/* publishing */
68+
publishMavenStyle := true
69+
70+
publishTo <<= version { (v: String) =>
71+
val nexus = "https://oss.sonatype.org/"
72+
if (v.trim.endsWith("SNAPSHOT")) Some(
73+
"snapshots" at nexus + "content/repositories/snapshots"
74+
)
75+
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
76+
}
77+
78+
publishArtifact in Test := false
79+
80+
pomIncludeRepository := { _ => false }
81+
82+
pomExtra := (
83+
<developers>
84+
<developer>
85+
<id>polymorphic</id>
86+
<name>Dragos Manolescu</name>
87+
<email>coder@micro-workflow.com</email>
88+
<!-- <url></url> -->
89+
</developer>
90+
</developers>
91+
)
92+
93+
// Josh Suereth's step-by-step guide to publishing on sonatype
94+
// httpcom://www.scala-sbt.org/using_sonatype.html
95+
96+
/* assembly plugin */
97+
mainClass in AssemblyKeys.assembly := Some("com.micro-workflow.json-scala-perftest.Main")
98+
99+
assemblySettings
100+
101+
test in AssemblyKeys.assembly := {}

project/build.properties

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sbt.version=0.12.1

project/build.scala

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import sbt._
2+
import Keys._
3+
4+
object build extends Build {
5+
6+
val gcsettings = Defaults.defaultSettings
7+
8+
val gc = TaskKey[Unit]("gc", "runs garbage collector")
9+
val gcTask = gc := {
10+
println("requesting garbage collection")
11+
System gc()
12+
}
13+
14+
lazy val project = Project (
15+
"project",
16+
file("."),
17+
settings = gcsettings ++ Seq(gcTask)
18+
)
19+
}

project/plugins.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.4")

0 commit comments

Comments
 (0)