Skip to content

Instantly share code, notes, and snippets.

@TheSnoozer
TheSnoozer / measure_performance.py
Last active August 6, 2020 19:53
Simple script to measure the execution time of git-commit-id/maven-git-commit-id-plugin
# python3.6 -m pip install GitPython
import os
import re
import git
import time
import tempfile
import subprocess
from git import RemoteProgress
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.philipphauer.blog</groupId>
<artifactId>versioning-continuous-delivery</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>