Performance Testing
- Added import and export to the testing. As an extension mechanism, it needs to perform well.
This commit is contained in:
1
performance/.gitignore
vendored
1
performance/.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
*.data
|
*.data
|
||||||
*.rc
|
*.rc
|
||||||
|
export.json
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
echo 'Performance: setup'
|
echo 'Performance: setup'
|
||||||
echo ' - This step will take several minutes'
|
echo ' - This step will take several minutes'
|
||||||
rm -f ./pending.data ./completed.data ./undo.data perf.rc
|
rm -f ./pending.data ./completed.data ./undo.data ./backlog.data perf.rc
|
||||||
./load
|
./load
|
||||||
|
|
||||||
# Run benchmarks.
|
# Run benchmarks.
|
||||||
@@ -26,6 +26,14 @@ echo ' - task add...'
|
|||||||
../src/task rc.debug:1 rc:perf.rc add >/dev/null 2>&1
|
../src/task rc.debug:1 rc:perf.rc add >/dev/null 2>&1
|
||||||
../src/task rc.debug:1 rc:perf.rc add This is a task with an average sized description length project:P priority:H +tag1 +tag2 2>&1 | grep "Perf task"
|
../src/task rc.debug:1 rc:perf.rc add This is a task with an average sized description length project:P priority:H +tag1 +tag2 2>&1 | grep "Perf task"
|
||||||
|
|
||||||
|
echo ' - task export...'
|
||||||
|
../src/task rc.debug:1 rc:perf.rc export >/dev/null 2>&1
|
||||||
|
../src/task rc.debug:1 rc:perf.rc export 2>&1 >export.json | grep "Perf task"
|
||||||
|
|
||||||
|
echo ' - task import...'
|
||||||
|
rm -f ./pending.data ./completed.data ./undo.data ./backlog.data
|
||||||
|
../src/task rc.debug:1 rc:perf.rc import export.json 2>&1 | grep "Perf task"
|
||||||
|
|
||||||
echo 'End'
|
echo 'End'
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user