Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
P parabix-devel
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 9
    • Issues 9
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cameron
  • parabix-devel
  • Wiki
  • Performance Testing Script

Performance Testing Script · Changes

Page history
Update Performance Testing Script authored Feb 24, 2025 by cameron's avatar cameron
Show whitespace changes
Inline Side-by-side
Showing with 33 additions and 1 deletion
+33 -1
  • Performance-Testing-Script.md Performance-Testing-Script.md +33 -1
  • No files found.
Performance-Testing-Script.md
View page @ 55f94796
...@@ -27,3 +27,35 @@ if __name__ == '__main__': ...@@ -27,3 +27,35 @@ if __name__ == '__main__':
It produces performance results in the ```nfd-stats.csv``` file, with It produces performance results in the ```nfd-stats.csv``` file, with
one row for each of difference performance keys and columns for instructions, cycle counts and branch data. one row for each of difference performance keys and columns for instructions, cycle counts and branch data.
Here is another for testing UTF compiler options with the ```ucount``` program.
```
# UTF_perf.py
from perf_stat_runner import *
if __name__ == '__main__':
tester = PerformanceTester("../build16/bin/ucount", ["-c"])
tester.addPositionalParameter("RE",
[
"\\p{Greek}",
"[\\u{1234}]",
"\\p{Han}",
"\\p{Old_Uyghur}",
"\\p{letter}",
"\\p{lu}",
"\\p{unassigned}",
"\\p{Arabic}",
"[\\u{12}-\\u{10FF85}]",
"\\p{digit}",
"虫"
])
tester.addPositionalParameter("input", ["/home/cameron/Wikibooks/wiki-books-all.xml"])
tester.addPerformanceKey("--lookahead", ["0", "1"])
tester.addPerformanceKey("--InitialTest", ["PrefixCC", "RangeCC", "NonASCII"])
tester.addPerformanceKey("--PartitioningFactor", ["2", "3", "4", "5"])
tester.addPerformanceKey("--CCmode", ["BixNumCCs", "SyntheticBasis", "TruncatedBasis"])
tester.addPerformanceKey("--u21", ["1"])
tester.addPerformanceKey("--thread-num", ["1"])
tester.run_tests("ucount-stats.csv")
```
\ No newline at end of file
Clone repository
  • Bracket Matching
  • CSV Validation
  • CSVediting
  • CSVparsing
  • Character Code Compilers
  • KernelLibrary
  • Pablo
  • ParabixTransform
  • Parallel Deletion
  • Parallel Hashing
  • Performance Testing Script
  • Shuffle Pattern Library
  • StaticCCC
  • String Insertion
  • UCD: Unicode Property Database and Compilers
View All Pages