Skip to content

Commit 7fc8932

Browse files
committed
Add jcenter
1 parent 6e08ae5 commit 7fc8932

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ sortable property of the ID.
3838

3939
## Usage
4040

41-
Install:
41+
#### Install
4242

4343
In your `build.sbt` add
4444
```scala
45-
resolvers += Resolver.bintrayRepo("kolotaev", "maven")
45+
resolvers += Resolver.jcenterRepo
4646
libraryDependencies += "com.github.kolotaev" %% "ride" % "1.0.0"
4747
```
4848

49-
Generating IDs:
49+
#### Generating IDs
5050

5151
```scala
5252
import com.github.kolotaev.ride.Id
@@ -64,7 +64,7 @@ val ids = Array.fill[Id](3) { Id() }
6464
// Array(b8ui8kioith721fvvvj0, b8ui8kioith721fvvvjg, b8ui8kioith721fvvvk0)
6565
```
6666

67-
Reproducing IDs:
67+
#### Reproducing IDs
6868

6969
```scala
7070
val guid2 = Id("b8uhqvioith6uqnvvvq0")
@@ -76,7 +76,7 @@ println(s"$guid" == s"$guid2")
7676
val guid3 = Id("bad-string")
7777
```
7878

79-
Obtaining embedded info:
79+
#### Obtaining embedded info
8080

8181
```scala
8282
guid.time
@@ -95,6 +95,8 @@ guid.counter
9595
// Int = 56
9696
```
9797

98+
#### Other
99+
98100
Ride implements `Serializable` and `Ordered[T]`.
99101

100102

@@ -116,11 +118,13 @@ is required so it can be used directly in server's code.
116118

117119
## Benchmarks
118120

121+
Approximate relative performance metrics.
122+
119123
| Name | x10 | x100 | x1000 | x100,000 | x1,000,000 | x10,000,000
120124
|---------------------|--------|---------|---------|----------|------------|--------------
121-
| _java.util UUID v4_ | 6 msec | 6 msec | 10 msec | 212 msec | 1910 msec | 20410 msec
122-
| _java.util UUID v3_ | 1 msec | 3 msec | 15 msec | 92 msec | 439 msec | 4074 msec
123-
| _Ride_ | 9 msec | 10 msec | 15 msec | 36 msec | 107 msec | 859 msec
125+
| _java.util UUID v4_ | 6 msec | 6 msec | 10 msec | 212 msec | 1910 msec | 20 sec
126+
| _java.util UUID v3_ | 1 msec | 3 msec | 15 msec | 92 msec | 439 msec | 4 sec
127+
| _Ride_ | 9 msec | 10 msec | 15 msec | 36 msec | 107 msec | 0.86 sec
124128

125129

126130
## License

0 commit comments

Comments
 (0)