We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e88c4da commit 95d68dcCopy full SHA for 95d68dc
README.md
@@ -48,7 +48,19 @@ The author has explained how it was doing in an article called ["The Mystery of
48
49
I just tried to do the same but with php.
50
51
-Due to the algorithm itself, it might be more resource-intensive than other solutions, but I didn't do any benchmark.
+## 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.
64
65
## Contribute
66
0 commit comments