Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • asm asm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • asmasm
  • asmasm
  • Merge requests
  • !176

Remove unnecessary allocations in Type

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Eric Bruneton requested to merge 317828-remove-to-char-array into master May 19, 2018
  • Overview 3
  • Commits 2
  • Pipelines 1
  • Changes 2

Results of the benchmark on my machine:

CURRENT CODE (3 runs)

getArgumentsAndReturnSizeFromDescriptor                thrpt   10  7841,639 ± 202,570  ops/s
getArgumentsAndReturnTypesFromDescriptor               thrpt   10  1444,529 ±  41,936  ops/s
getTypeFromDescriptor                                  thrpt   10  4586,855 ± 109,614  ops/s

getArgumentsAndReturnSizeFromDescriptor                thrpt   10  7884,111 ± 187,510  ops/s
getArgumentsAndReturnTypesFromDescriptor               thrpt   10  1448,835 ±  37,332  ops/s
getTypeFromDescriptor                                  thrpt   10  4578,097 ± 115,033  ops/s

getArgumentsAndReturnSizeFromDescriptor                thrpt   10  7868,005 ± 165,286  ops/s
getArgumentsAndReturnTypesFromDescriptor               thrpt   10  1453,131 ±  32,611  ops/s
getTypeFromDescriptor                                  thrpt   10  4537,437 ± 111,732  ops/s

NEW CODE (3 runs)

getArgumentsAndReturnSizeFromDescriptor                thrpt   10   7868,311 ± 205,813  ops/s
getArgumentsAndReturnTypesFromDescriptor               thrpt   10   1400,616 ±  47,122  ops/s
getTypeFromDescriptor                                  thrpt   10  10447,278 ± 285,315  ops/s

getArgumentsAndReturnSizeFromDescriptor                thrpt   10   7822,970 ± 180,999  ops/s
getArgumentsAndReturnTypesFromDescriptor               thrpt   10   1430,244 ±  39,596  ops/s
getTypeFromDescriptor                                  thrpt   10  10371,893 ± 308,044  ops/s

getArgumentsAndReturnSizeFromDescriptor                thrpt   10  7709,202 ± 168,070  ops/s
getArgumentsAndReturnTypesFromDescriptor               thrpt   10  1402,382 ±  34,459  ops/s
getTypeFromDescriptor                                  thrpt   10  8851,335 ± 259,663  ops/s
Edited May 19, 2018 by Eric Bruneton
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 317828-remove-to-char-array