Skip to content

Commit da0a6ff

Browse files
committed
Add IPv6 parsing benchmark
1 parent 0f29fd2 commit da0a6ff

File tree

6 files changed

+454
-4
lines changed

6 files changed

+454
-4
lines changed

benchmarks.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#!/usr/bin/env bash
22

33
SCALA_URI_VERS=$1
4+
BENCHMARK_CLASS=$2
45

56
if [ -z SCALA_URI_VERS ]; then
67
echo "Which versions of scala-uri would you like benchmark? (space separated)"
78
read -r SCALA_URI_VERS
89
fi
910

1011
for SCALA_URI_VER in $SCALA_URI_VERS; do
11-
sbt -DscalaUri.ver=$SCALA_URI_VER "jmh:run -rf json -rff jmh-$SCALA_URI_VER.json"
12+
sbt -DscalaUri.ver=$SCALA_URI_VER "jmh:run -rf json -rff jmh-$SCALA_URI_VER.json $BENCHMARK_CLASS"
1213

1314
VER_FILE=jmh-scala-uri-versions.json
1415

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resolvers += "Sonatype OSS Releases" at "https://oss.sonatype.org/content/reposi
1313
enablePlugins(JmhPlugin)
1414

1515
libraryDependencies ++= Seq(
16-
"io.lemonlabs" %% "scala-uri" % sys.props.getOrElse("scalaUri.ver", "2.2.2"),
16+
"io.lemonlabs" %% "scala-uri" % sys.props.getOrElse("scalaUri.ver", "3.0.0"),
1717
"io.spray" %% "spray-json" % "1.3.5" // For scala-uri 1.5.1 support only
1818
)
1919

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
const possibleXAxes = [
6969
'publicSuffixLength',
7070
'uriPartLength',
71-
'uriParts'
71+
'uriParts',
72+
'pieceLength'
7273
];
7374

7475
const checkedByDefault = [

0 commit comments

Comments
 (0)