Skip to content

Commit

Permalink
Prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
kristerkari committed Feb 27, 2024
1 parent 860e4be commit 17d4c0e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
4 changes: 1 addition & 3 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
[
"@babel/preset-env",
{
"exclude": [
"transform-typeof-symbol"
]
"exclude": ["transform-typeof-symbol"]
}
]
]
Expand Down
18 changes: 9 additions & 9 deletions benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,34 @@ var transform = require("./dist/index").transform;
console.log("-----------------------------------------");

once
.add("1 call", function() {
.add("1 call", function () {
transform(styles, dimensions);
})
.on("cycle", function(event) {
.on("cycle", function (event) {
console.log(String(event.target));
})
.on("complete", function() {
.on("complete", function () {
console.log("-----------------------------------------");
})
.run({ async: false });

fourTimes
.add("4 calls", function() {
.add("4 calls", function () {
transform(styles, dimensions);
transform(styles, dimensions);
transform(styles, dimensions);
transform(styles, dimensions);
})
.on("cycle", function(event) {
.on("cycle", function (event) {
console.log(String(event.target));
})
.on("complete", function() {
.on("complete", function () {
console.log("-----------------------------------------");
})
.run({ async: false });

eightTimesTheSame
.add("8 calls", function() {
.add("8 calls", function () {
transform(styles, dimensions);
transform(styles, dimensions);
transform(styles, dimensions);
Expand All @@ -61,10 +61,10 @@ eightTimesTheSame
transform(styles, dimensions);
transform(styles, dimensions);
})
.on("cycle", function(event) {
.on("cycle", function (event) {
console.log(String(event.target));
})
.on("complete", function() {
.on("complete", function () {
console.log("-----------------------------------------");
})
.run({ async: false });

0 comments on commit 17d4c0e

Please sign in to comment.