Skip to content

Commit

Permalink
todo
Browse files Browse the repository at this point in the history
  • Loading branch information
canonic-epicure committed Jun 9, 2020
1 parent 2b7b52e commit 7264dad
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

# misc local files
/misc
/tests/chrono2/todo/**/*

# Libre Office lock files
.~lock*
3 changes: 2 additions & 1 deletion src/chrono2/Quark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { Node } from "./Node.js"


//---------------------------------------------------------------------------------------------------------------------
// TODO benchmark if numbers are faster
// Benchmarking showed that there's no difference when using numbers
// v8 optimizes comparison of immutable strings to pointer comparison I guess
export enum AtomState {
UpToDate = 'UpToDate',
PossiblyStale = 'PossiblyStale',
Expand Down
2 changes: 1 addition & 1 deletion tests/benchmark/deep_changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export const deepChangesGenBigShared = DeepChangesChronoGraph.new({
export const runAllDeepChanges = async () => {
const runInfo = await deepChangesGenSmall.measureTillMaxTime()

await deepChangesSyncSmall.measureFixed(runInfo.cyclesCount, runInfo.samples.length)
// await deepChangesSyncSmall.measureFixed(runInfo.cyclesCount, runInfo.samples.length)
await deepChangesMobxSmall.measureFixed(runInfo.cyclesCount, runInfo.samples.length)
await deepChangesChrono2Small.measureFixed(runInfo.cyclesCount, runInfo.samples.length)

Expand Down
2 changes: 1 addition & 1 deletion tests/benchmark/shallow_changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const shallowChangesGenBig = ShallowChangesChronoGraph.new({
export const runAllShallowChanges = async () => {
const runInfo = await shallowChangesGen.measureTillMaxTime()

await shallowChangesSync.measureFixed(runInfo.cyclesCount, runInfo.samples.length)
// await shallowChangesSync.measureFixed(runInfo.cyclesCount, runInfo.samples.length)
await shallowChangesMobx.measureFixed(runInfo.cyclesCount, runInfo.samples.length)
await shallowChangesChrono2.measureFixed(runInfo.cyclesCount, runInfo.samples.length)

Expand Down
2 changes: 1 addition & 1 deletion tests/benchmark/suite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { runAllDeepChanges } from "./deep_changes.js"
import { runAllShallowChanges } from "./shallow_changes.js"

export const runAll = async () => {
// await runAllDeepChanges()
await runAllDeepChanges()
await runAllShallowChanges()
// await runAllGraphPopulation()

Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
],

"exclude" : [
"tests/chrono2/todo/**/*.ts"
]
}

0 comments on commit 7264dad

Please sign in to comment.