From a3f5513f64fe4307f2c71ea06b25f6154eb9dc5f Mon Sep 17 00:00:00 2001 From: gobwas Date: Fri, 26 Feb 2016 00:41:17 +0300 Subject: [PATCH] remove number of operations --- readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index a9071ee..f58144e 100644 --- a/readme.md +++ b/readme.md @@ -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 @@ -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