Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add first proper benchmarks #17

Merged
merged 1 commit into from Mar 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
586 changes: 573 additions & 13 deletions README.md

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions benchJoern/build.sbt

This file was deleted.

8 changes: 0 additions & 8 deletions benchOdb2/build.sbt

This file was deleted.

127 changes: 0 additions & 127 deletions benchOdb2/src/main/scala/io/joern/odb2Bench/bench.scala

This file was deleted.

14 changes: 14 additions & 0 deletions benchStuff/build.sbt
@@ -0,0 +1,14 @@
name := "benchStuff"
enablePlugins(JavaAppPackaging)
enablePlugins(JmhPlugin)

//Jmh / compile := (Jmh / compile)
//Jmh / run := (Jmh / run).dependsOn(Jmh / compile).evaluated
libraryDependencies ++= Seq(
"io.joern" %% "semanticcpg" % "1.1.1483",
"com.jerolba" % "jmnemohistosyne" % "0.2.3",
"org.openjdk.jol" % "jol-core" % "0.17",
"org.slf4j" % "slf4j-simple" % "2.0.6" % Optional,
"org.openjdk.jmh" % "jmh-generator-annprocess" % "1.36",
"org.openjdk.jmh" % "jmh-core" % "1.36"
)
12 changes: 12 additions & 0 deletions benchStuff/src/main/scala/io/joern/joernBench/EntryPoint.scala
@@ -0,0 +1,12 @@
package io.joern.joernBench

object EntryPoint {
def main(args: Array[String]): Unit = {
args(0) match {
case "jmh" => JmhMain.jmhMain()
case "odb" => Bench.benchJoern()
case "odb2" => Bench.benchOdb2()
}
}

}