camelcase speed methods
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
var properties = ["-webkit-animation-iteration-count", "-webkit-animation-name", "-webkit-animation-play-state", "-webkit-animation-timing-function", "-webkit-appearance", "-webkit-backface-visibility", "-webkit-background-clip", "-webkit-background-composite", "-webkit-box-flex", "-webkit-box-flex-group", "-webkit-box-lines", "-webkit-box-ordinal-group", "-webkit-box-orient", "-webkit-box-pack", "-webkit-box-reflect", "-webkit-box-shadow", "-webkit-color-correction", "-webkit-column-break-after", "-webkit-column-break-before", "-webkit-column-break-inside", "-webkit-column-count", "-webkit-column-gap", "-webkit-column-rule-color", "-webkit-column-rule-style", "-webkit-column-rule-width", "-webkit-column-span", "-webkit-column-width", "-webkit-dashboard-region", "-webkit-font-smoothing", "-webkit-highlight", "-webkit-line-break", "-webkit-line-clamp", "-webkit-margin-before-collapse"];
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
by RegExp (MooTools) |
|
pending… |
by Array.split |
|
pending… |
by String.indexOf |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments