[metrics] Isolate binary size metrics

Will give us a better view of what changed and by how much. Otherwise
the test stops at the first failure.
This commit is contained in:
Thiago Marcos P. Santos
2019-11-27 23:33:49 +02:00
parent 09b724ea33
commit d13562252d
24 changed files with 231 additions and 106 deletions

View File

Before

Width:  |  Height:  |  Size: 225 B

After

Width:  |  Height:  |  Size: 225 B

View File

@@ -0,0 +1,9 @@
{
"file-size": [
[
"android-arm64-v8a",
"/src/workspace/next-android-arm64-v8a-release/lib/libmapbox-gl.so",
6496584
]
]
}

View File

@@ -0,0 +1,22 @@
{
"version": 8,
"metadata": {
"test": {
"operations": [
["probeFileSize", "android-arm64-v8a", "/src/workspace/next-android-arm64-v8a-release/lib/libmapbox-gl.so", 0.01]
],
"width": 64,
"height": 64
}
},
"sources": {},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "green"
}
}
]
}

View File

Before

Width:  |  Height:  |  Size: 225 B

After

Width:  |  Height:  |  Size: 225 B

View File

@@ -0,0 +1,9 @@
{
"file-size": [
[
"android-armeabi-v7a",
"/src/workspace/next-android-armeabi-v7a-release/lib/libmapbox-gl.so",
3072756
]
]
}

View File

@@ -0,0 +1,22 @@
{
"version": 8,
"metadata": {
"test": {
"operations": [
["probeFileSize", "android-armeabi-v7a", "/src/workspace/next-android-armeabi-v7a-release/lib/libmapbox-gl.so", 0.01]
],
"width": 64,
"height": 64
}
},
"sources": {},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "green"
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

View File

@@ -0,0 +1,9 @@
{
"file-size": [
[
"android-x86",
"/src/workspace/next-android-x86-release/lib/libmapbox-gl.so",
6988568
]
]
}

View File

@@ -0,0 +1,22 @@
{
"version": 8,
"metadata": {
"test": {
"operations": [
["probeFileSize", "android-x86", "/src/workspace/next-android-x86-release/lib/libmapbox-gl.so", 0.01]
],
"width": 64,
"height": 64
}
},
"sources": {},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "green"
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

View File

@@ -0,0 +1,9 @@
{
"file-size": [
[
"android-x86_64",
"/src/workspace/next-android-x86_64-release/lib/libmapbox-gl.so",
7106920
]
]
}

View File

@@ -3,9 +3,6 @@
"metadata": {
"test": {
"operations": [
["probeFileSize", "android-arm64-v8a", "/src/workspace/next-android-arm64-v8a-release/lib/libmapbox-gl.so", 0.01],
["probeFileSize", "android-armeabi-v7a", "/src/workspace/next-android-armeabi-v7a-release/lib/libmapbox-gl.so", 0.01],
["probeFileSize", "android-x86-release", "/src/workspace/next-android-x86-release/lib/libmapbox-gl.so", 0.01],
["probeFileSize", "android-x86_64", "/src/workspace/next-android-x86_64-release/lib/libmapbox-gl.so", 0.01]
],
"width": 64,

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

View File

@@ -0,0 +1,19 @@
{
"file-size": [
[
"mbgl-glfw",
"/src/workspace/next-linux-clang8-release/bin/mbgl-glfw",
6225032
],
[
"mbgl-offline",
"/src/workspace/next-linux-clang8-release/bin/mbgl-offline",
5532376
],
[
"mbgl-render",
"/src/workspace/next-linux-clang8-release/bin/mbgl-render",
6151096
]
]
}

View File

@@ -0,0 +1,24 @@
{
"version": 8,
"metadata": {
"test": {
"operations": [
["probeFileSize", "mbgl-glfw", "/src/workspace/next-linux-clang8-release/bin/mbgl-glfw", 0.01],
["probeFileSize", "mbgl-offline", "/src/workspace/next-linux-clang8-release/bin/mbgl-offline", 0.01],
["probeFileSize", "mbgl-render", "/src/workspace/next-linux-clang8-release/bin/mbgl-render", 0.01]
],
"width": 64,
"height": 64
}
},
"sources": {},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "green"
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

View File

@@ -0,0 +1,19 @@
{
"file-size": [
[
"mbgl-glfw",
"/src/workspace/next-linux-gcc8-release/bin/mbgl-glfw",
7205192
],
[
"mbgl-offline",
"/src/workspace/next-linux-gcc8-release/bin/mbgl-offline",
6357224
],
[
"mbgl-render",
"/src/workspace/next-linux-gcc8-release/bin/mbgl-render",
7143752
]
]
}

View File

@@ -0,0 +1,24 @@
{
"version": 8,
"metadata": {
"test": {
"operations": [
["probeFileSize", "mbgl-glfw", "/src/workspace/next-linux-gcc8-release/bin/mbgl-glfw", 0.01],
["probeFileSize", "mbgl-offline", "/src/workspace/next-linux-gcc8-release/bin/mbgl-offline", 0.01],
["probeFileSize", "mbgl-render", "/src/workspace/next-linux-gcc8-release/bin/mbgl-render", 0.01]
],
"width": 64,
"height": 64
}
},
"sources": {},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "green"
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

View File

@@ -0,0 +1,19 @@
{
"file-size": [
[
"mbgl-glfw",
"/src/workspace/next-macos-xcode11-release/bin/mbgl-glfw",
5439932
],
[
"mbgl-offline",
"/src/workspace/next-macos-xcode11-release/bin/mbgl-offline",
5334136
],
[
"mbgl-render",
"/src/workspace/next-macos-xcode11-release/bin/mbgl-render",
5384420
]
]
}

View File

@@ -0,0 +1,24 @@
{
"version": 8,
"metadata": {
"test": {
"operations": [
["probeFileSize", "mbgl-glfw", "/src/workspace/next-macos-xcode11-release/bin/mbgl-glfw", 0.01],
["probeFileSize", "mbgl-offline", "/src/workspace/next-macos-xcode11-release/bin/mbgl-offline", 0.01],
["probeFileSize", "mbgl-render", "/src/workspace/next-macos-xcode11-release/bin/mbgl-render", 0.01]
],
"width": 64,
"height": 64
}
},
"sources": {},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "green"
}
}
]
}

View File

@@ -1,24 +0,0 @@
{
"file-size": [
[
"android-arm64-v8a",
"/src/workspace/next-android-arm64-v8a-release/lib/libmapbox-gl.so",
6496584
],
[
"android-armeabi-v7a",
"/src/workspace/next-android-armeabi-v7a-release/lib/libmapbox-gl.so",
3072756
],
[
"android-x86-release",
"/src/workspace/next-android-x86-release/lib/libmapbox-gl.so",
6988568
],
[
"android-x86_64",
"/src/workspace/next-android-x86_64-release/lib/libmapbox-gl.so",
7106920
]
]
}

View File

@@ -1,49 +0,0 @@
{
"file-size": [
[
"linux-clang8-mbgl-glfw",
"/src/workspace/next-linux-clang8-release/bin/mbgl-glfw",
6225032
],
[
"linux-clang8-mbgl-offline",
"/src/workspace/next-linux-clang8-release/bin/mbgl-offline",
5532376
],
[
"linux-clang8-mbgl-render",
"/src/workspace/next-linux-clang8-release/bin/mbgl-render",
6151096
],
[
"linux-gcc8-mbgl-glfw",
"/src/workspace/next-linux-gcc8-release/bin/mbgl-glfw",
7205192
],
[
"linux-gcc8-mbgl-offline",
"/src/workspace/next-linux-gcc8-release/bin/mbgl-offline",
6357224
],
[
"linux-gcc8-mbgl-render",
"/src/workspace/next-linux-gcc8-release/bin/mbgl-render",
7143752
],
[
"macos-xcode11-mbgl-glfw",
"/src/workspace/next-macos-xcode11-release/bin/mbgl-glfw",
5439932
],
[
"macos-xcode11-mbgl-offline",
"/src/workspace/next-macos-xcode11-release/bin/mbgl-offline",
5334136
],
[
"macos-xcode11-mbgl-render",
"/src/workspace/next-macos-xcode11-release/bin/mbgl-render",
5384420
]
]
}

View File

@@ -1,30 +0,0 @@
{
"version": 8,
"metadata": {
"test": {
"operations": [
["probeFileSize", "linux-clang8-mbgl-glfw", "/src/workspace/next-linux-clang8-release/bin/mbgl-glfw", 0.01],
["probeFileSize", "linux-clang8-mbgl-offline", "/src/workspace/next-linux-clang8-release/bin/mbgl-offline", 0.01],
["probeFileSize", "linux-clang8-mbgl-render", "/src/workspace/next-linux-clang8-release/bin/mbgl-render", 0.01],
["probeFileSize", "linux-gcc8-mbgl-glfw", "/src/workspace/next-linux-gcc8-release/bin/mbgl-glfw", 0.01],
["probeFileSize", "linux-gcc8-mbgl-offline", "/src/workspace/next-linux-gcc8-release/bin/mbgl-offline", 0.01],
["probeFileSize", "linux-gcc8-mbgl-render", "/src/workspace/next-linux-gcc8-release/bin/mbgl-render", 0.01],
["probeFileSize", "macos-xcode11-mbgl-glfw", "/src/workspace/next-macos-xcode11-release/bin/mbgl-glfw", 0.01],
["probeFileSize", "macos-xcode11-mbgl-offline", "/src/workspace/next-macos-xcode11-release/bin/mbgl-offline", 0.01],
["probeFileSize", "macos-xcode11-mbgl-render", "/src/workspace/next-macos-xcode11-release/bin/mbgl-render", 0.01]
],
"width": 64,
"height": 64
}
},
"sources": {},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "green"
}
}
]
}