-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(best-compare): Fix comparer recursivity (#65)
* Fix comparison recursivity * Prettify
- Loading branch information
Showing
17 changed files
with
113 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
module.exports = { | ||
"projectName": "perf-best-examples", | ||
projects: [ | ||
'<rootDir>/examples/simple_benchmark', | ||
'<rootDir>/examples/simple_lwc_benchmark', | ||
] | ||
projectName: 'perf-best-examples', | ||
projects: ['<rootDir>/examples/simple_benchmark', '<rootDir>/examples/simple_lwc_benchmark'], | ||
}; |
93 changes: 44 additions & 49 deletions
93
examples/simple_benchmark/src/__benchmarks__/deep_merge.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 20 additions & 20 deletions
40
examples/simple_benchmark/src/__benchmarks__/mock_data.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
export const MOCK_DATA_SMALL = { | ||
"id": "0001", | ||
"type": "donut", | ||
"name": "Cake", | ||
"ppu": 0.55, | ||
"batters": { | ||
"batter":[ | ||
{ "id": "1001", "type": "Regular" }, | ||
{ "id": "1002", "type": "Chocolate" }, | ||
{ "id": "1003", "type": "Blueberry" }, | ||
{ "id": "1004", "type": "Devil's Food" } | ||
] | ||
id: '0001', | ||
type: 'donut', | ||
name: 'Cake', | ||
ppu: 0.55, | ||
batters: { | ||
batter: [ | ||
{ id: '1001', type: 'Regular' }, | ||
{ id: '1002', type: 'Chocolate' }, | ||
{ id: '1003', type: 'Blueberry' }, | ||
{ id: '1004', type: "Devil's Food" }, | ||
], | ||
}, | ||
"topping": [ | ||
{ "id": "5001", "type": "None" }, | ||
{ "id": "5002", "type": "Glazed" }, | ||
{ "id": "5005", "type": "Sugar" }, | ||
{ "id": "5007", "type": "Powdered Sugar" }, | ||
{ "id": "5006", "type": "Chocolate with Sprinkles" }, | ||
{ "id": "5003", "type": "Chocolate" }, | ||
{ "id": "5004", "type": "Maple" } | ||
] | ||
topping: [ | ||
{ id: '5001', type: 'None' }, | ||
{ id: '5002', type: 'Glazed' }, | ||
{ id: '5005', type: 'Sugar' }, | ||
{ id: '5007', type: 'Powdered Sugar' }, | ||
{ id: '5006', type: 'Chocolate with Sprinkles' }, | ||
{ id: '5003', type: 'Chocolate' }, | ||
{ id: '5004', type: 'Maple' }, | ||
], | ||
}; |
4 changes: 2 additions & 2 deletions
4
examples/simple_benchmark/src/__benchmarks__/object_keys.benchmark.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.