Skip to content

Commit 95d68dc

Browse files
Update readme
1 parent e88c4da commit 95d68dc

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,19 @@ The author has explained how it was doing in an article called ["The Mystery of
4848

4949
I just tried to do the same but with php.
5050

51-
Due to the algorithm itself, it might be more resource-intensive than other solutions, but I didn't do any benchmark.
51+
## Perfs
52+
53+
Due to the algorithm itself, it might be more resource-intensive than other solutions.
54+
55+
Here are some benchmarks:
56+
57+
`CharlieEtienne\PaletteGenerator::generatePalette('#ad70e5')`
58+
- Execution time: ~0.00033 seconds per run
59+
- Benchmark speed: ~3,030 ops/sec
60+
61+
Tests were done on a MB Air M2, inside a Laravel app.
62+
63+
To improve performance, you might want to cache the results.
5264

5365
## Contribute
5466

0 commit comments

Comments
 (0)