Skip to content

Commit

Permalink
remove number of operations
Browse files Browse the repository at this point in the history
  • Loading branch information
gobwas committed Feb 25, 2016
1 parent dfccc6a commit a3f5513
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ If you will not use compiled `glob.Glob` object, and do `g := glob.MustCompile(p

Run `go test -bench=.` from source root to see the benchmarks:

Pattern | Fixture | Match | Operations | Speed (ns/op)
--------|---------|-------|------------|--------------
Pattern | Fixture | Match | Speed (ns/op)
--------|---------|-------|--------------
`[a-z][!a-x]*cat*[h][!b]*eyes*` | `my cat has very bright eyes` | `true` | 432
`[a-z][!a-x]*cat*[h][!b]*eyes*` | `my dog has very bright eyes` | `false` | 199
`https://*.google.*` | `https://account.google.com` | `true` | 96
Expand All @@ -120,8 +120,8 @@ Pattern | Fixture | Match | Operations | Speed (ns/op)

The same things with `regexp` package:

Pattern | Fixture | Match | Operations | Speed (ns/op)
--------|---------|-------|------------|--------------
Pattern | Fixture | Match | Speed (ns/op)
--------|---------|-------|--------------
`^[a-z][^a-x].*cat.*[h][^b].*eyes.*$` | `my cat has very bright eyes` | `true` | 2553
`^[a-z][^a-x].*cat.*[h][^b].*eyes.*$` | `my dog has very bright eyes` | `false` | 1383
`^https:\/\/.*\.google\..*$` | `https://account.google.com` | `true` | 1205
Expand Down

0 comments on commit a3f5513

Please sign in to comment.