Skip to content

Commit

Permalink
docs(benchmark): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
m03geek committed Jun 5, 2019
1 parent 93ac2da commit 6cfa76d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/BENCHMARK.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ So as you can see `fast-rbac` in "simple" (or you may call it "sync") mode is al
In "async" mode with promises it's a bit slower, however that result is 20 times faster than other libs that support wildcard rules and 10 times faster than `rbac` which doesn't support it.

This test demonstrates general picture. Adding tests with roles that extend each other will not change it.
`fast-rbac` will remain at the same performance, because it compiles roles and time complexity remains the same: O(n).
`fast-rbac` will remain at the same performance, because it compiles roles and time complexity remains the same: O(1).
But other libs don't do such trick, so their results may be even worse.

0 comments on commit 6cfa76d

Please sign in to comment.