TypeEvalPy: A Micro-benchmarking Framework for Python Type Inference Tools

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Venkatesh, Ashwin Prasad Shivarpatna, Sabu, Samkutty, Wang, Jiawei, Mir, Amir M., Li, Li, Bodden, Eric
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913182766858240
author Venkatesh, Ashwin Prasad Shivarpatna
Sabu, Samkutty
Wang, Jiawei
Mir, Amir M.
Li, Li
Bodden, Eric
author_facet Venkatesh, Ashwin Prasad Shivarpatna
Sabu, Samkutty
Wang, Jiawei
Mir, Amir M.
Li, Li
Bodden, Eric
contents In light of the growing interest in type inference research for Python, both researchers and practitioners require a standardized process to assess the performance of various type inference techniques. This paper introduces TypeEvalPy, a comprehensive micro-benchmarking framework for evaluating type inference tools. TypeEvalPy contains 154 code snippets with 845 type annotations across 18 categories that target various Python features. The framework manages the execution of containerized tools, transforms inferred types into a standardized format, and produces meaningful metrics for assessment. Through our analysis, we compare the performance of six type inference tools, highlighting their strengths and limitations. Our findings provide a foundation for further research and optimization in the domain of Python type inference.
format Preprint
id arxiv_https___arxiv_org_abs_2312_16882
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle TypeEvalPy: A Micro-benchmarking Framework for Python Type Inference Tools
Venkatesh, Ashwin Prasad Shivarpatna
Sabu, Samkutty
Wang, Jiawei
Mir, Amir M.
Li, Li
Bodden, Eric
Software Engineering
In light of the growing interest in type inference research for Python, both researchers and practitioners require a standardized process to assess the performance of various type inference techniques. This paper introduces TypeEvalPy, a comprehensive micro-benchmarking framework for evaluating type inference tools. TypeEvalPy contains 154 code snippets with 845 type annotations across 18 categories that target various Python features. The framework manages the execution of containerized tools, transforms inferred types into a standardized format, and produces meaningful metrics for assessment. Through our analysis, we compare the performance of six type inference tools, highlighting their strengths and limitations. Our findings provide a foundation for further research and optimization in the domain of Python type inference.
title TypeEvalPy: A Micro-benchmarking Framework for Python Type Inference Tools
topic Software Engineering
url https://arxiv.org/abs/2312.16882