remove number of operations

This commit is contained in:
gobwas 2016-02-26 00:41:17 +03:00
parent dfccc6a326
commit a3f5513f64
1 changed files with 4 additions and 4 deletions

View File

@ -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: 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 cat has very bright eyes` | `true` | 432
`[a-z][!a-x]*cat*[h][!b]*eyes*` | `my dog has very bright eyes` | `false` | 199 `[a-z][!a-x]*cat*[h][!b]*eyes*` | `my dog has very bright eyes` | `false` | 199
`https://*.google.*` | `https://account.google.com` | `true` | 96 `https://*.google.*` | `https://account.google.com` | `true` | 96
@ -120,8 +120,8 @@ Pattern | Fixture | Match | Operations | Speed (ns/op)
The same things with `regexp` package: 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 cat has very bright eyes` | `true` | 2553
`^[a-z][^a-x].*cat.*[h][^b].*eyes.*$` | `my dog has very bright eyes` | `false` | 1383 `^[a-z][^a-x].*cat.*[h][^b].*eyes.*$` | `my dog has very bright eyes` | `false` | 1383
`^https:\/\/.*\.google\..*$` | `https://account.google.com` | `true` | 1205 `^https:\/\/.*\.google\..*$` | `https://account.google.com` | `true` | 1205