Skip to content

Instantly share code, notes, and snippets.

View mdboom's full-sized avatar

Michael Droettboom mdboom

View GitHub Profile
Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for details
> Configure project :glean
Requires glean_parser==1.28.5
WARNING: Support for ANDROID_NDK_HOME is deprecated and will be removed in the future. Use android.ndkVersion in build.gradle instead.
Support for ANDROID_NDK_HOME is deprecated and will be removed in the future. Use android.ndkVersion in build.gradle instead.
> Configure project :glean-sample-app
Requires glean_parser==1.28.5
WARNING: API 'variantOutput.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.
@mdboom
mdboom / build.log
Created September 24, 2020 13:18
build.log (with --warning-mode all)
> Configure project :glean
The Project.libsDir property has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use the libsDirectory property instead. See https://docs.gradle.org/6.5.1/dsl/org.gradle.api.Project.html#org.gradle.api.Project:libsDir for more details.
at publish_bjcp7aokk3w1k3s96wcho0tjh.run(/home/mdboom/Work/builds/glean/glean.rs/publish.gradle:5)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
The Project.distsDir property has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use the distsDirectory property instead. See https://docs.gradle.org/6.5.1/dsl/org.gradle.api.Project.html#org.gradle.api.Project:distsDir for more details.
at publish_bjcp7aokk3w1k3s96wcho0tjh.run(/home/mdboom/Work/builds/glean/glean.rs/publish.gradle:5)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
The BasePluginConvention.getProject() method has been deprecated. This is scheduled to be removed in Gradle 7.0
@mdboom
mdboom / android-components.csv
Last active January 8, 2021 22:00
Glean testing coverage
category name tested
basic os none
bookmarks_sync failure_reason none
bookmarks_sync finished_at probably
bookmarks_sync incoming none
bookmarks_sync outgoing none
bookmarks_sync outgoing_batches probably
bookmarks_sync remote_tree_problems none
bookmarks_sync started_at probably
bookmarks_sync uid probably
@mdboom
mdboom / pahole-analysis.py
Last active April 7, 2022 16:04
Analyse struct sizes using pahole
#!/usr/bin/env python3
"""
Compare struct sizes and holes between two checkouts of Python, using pahole.
pahole: https://github.com/acmel/dwarves
Outputs a list of structs that have changed absolute size, in descending order.
Then outputs any structs that have new holes that did not exist in the baseline
version.
@mdboom
mdboom / gist:4a8cb81b9c42620bd46c8a3ac6f6e007
Last active April 7, 2022 18:24
cpython main vs. 3.10
======================================================================
SIZE ANALYSIS
struct arena_map_mid in Objects/obmalloc.o grew by 253952 bytes.
struct arena_map_top in Objects/obmalloc.o grew by 253952 bytes.
struct pyruntimestate in Python/deepfreeze/deepfreeze.o grew by 165688 bytes.
struct arena_map_bot in Objects/obmalloc.o grew by 129024 bytes.
struct _ts in Python/deepfreeze/deepfreeze.o grew by 80 bytes.
struct assembler in Python/compile.o grew by 56 bytes.
struct s_MergeState in Objects/listobject.o grew by 32 bytes.
struct PyConfig in Python/deepfreeze/deepfreeze.o grew by 24 bytes.
#!/bin/sh
gcc -c -fPIC test.c
gcc -shared -o liba.so test.o
@mdboom
mdboom / compare.txt
Last active May 20, 2022 13:21
11th Gen Intel i7-1165G7 (8) @ 2.800GHz -- Python 3.10.4 vs. 3.11.0b1
2022-03-23_20-12-master-9d38120e3353.json.gz
============================================
Performance version: 1.0.5
Report on Linux-5.17.5-300.fc36.x86_64-x86_64-with-glibc2.35
Number of logical CPUs: 8
Start date: 2022-05-19 14:48:38.228349
End date: 2022-05-19 15:09:22.992741
2022-05-06_22-56-master-8d32a5c8c4e9.json.gz
@mdboom
mdboom / compare.txt
Last active May 20, 2022 13:21
Intel Celeron J3455 (4) @ 2.300GHz -- Python 3.10.4 vs. 3.11.0b1
2022-03-23_20-12-master-9d38120e3353.json.gz
============================================
Performance version: 1.0.5
Report on Linux-5.16.0-6-amd64-x86_64-with-glibc2.33
Number of logical CPUs: 4
Start date: 2022-05-19 19:14:00.011800
End date: 2022-05-19 20:23:23.198171
2022-05-06_22-56-master-8d32a5c8c4e9.json.gz
@mdboom
mdboom / celeron.txt
Last active May 20, 2022 14:06
Comparing 3.10.4 - 3.11.0a7
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 92
model name : Intel(R) Celeron(R) CPU J3455 @ 1.50GHz
stepping : 9
microcode : 0x3c
cpu MHz : 800.000
cache size : 1024 KB
physical id : 0
@mdboom
mdboom / features.txt
Last active June 2, 2022 19:16
stdlib and built-in usage for pyperformance benchmarks
chameleon.profile:
<method 'append' of 'list' objects> (~): 5.72%
<built-in method builtins.getattr> (~): 5.39%
<method 'get' of 'dict' objects> (~): 4.04%
<method 'search' of 're.Pattern' objects> (~): 3.20%
chaos.profile:
_randbelow_with_getrandbits (random.py:239): 2.81%
randrange (random.py:292): 2.73%
<built-in method builtins.len> (~): 1.27%