Skip to content

Instantly share code, notes, and snippets.

View pablogsal's full-sized avatar

Pablo Galindo Salgado pablogsal

View GitHub Profile
Iconr

Keybase proof

I hereby claim:

  • I am pablogsal on github.
  • I am pablogsal (https://keybase.io/pablogsal) on keybase.
  • I have a public key whose fingerprint is A035 C8C1 9219 BA82 1ECE A86B 64E6 28F8 D684 696D

To claim this, I am signing this object:

#include <execinfo.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
static volatile int party = 1;
static void full_write(int fd, const char *buf, size_t len)
{
single_input::= NEWLINE | simple_stmt | compound_stmt NEWLINE
file_input::= (NEWLINE | stmt)* ENDMARKER
eval_input::= testlist NEWLINE* ENDMARKER
decorator::= '@' dotted_name ( '(' (arglist)? ')' )? NEWLINE
decorators::= decorator+
decorated::= decorators (classdef | funcdef | async_funcdef)
async_funcdef::= ASYNC funcdef
funcdef::= 'def' NAME parameters ('->' test)? ':' (TYPE_COMMENT)? func_body_suite
{
"version": "0.2.0",
"configurations": [
// Open any Cpython test case in cpython/Lib/test
{
"name": "Cpython test",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/python.exe",
"args": ["-m", "test", "-v", "${file}"],
{
"python.pythonPath": "${workspaceFolder}/python",
"python.testing.pytestEnabled": false,
"python.testing.nosetestsEnabled": false,
"python.testing.unittestEnabled": true,
"C_Cpp.default.intelliSenseMode": "gcc-x64",
"C_Cpp.default.cppStandard": "c++11",
"C_Cpp.default.cStandard": "c99",
"files.associations": {
"pycore_object.h": "c",
+------------------------+--------------------------------------+-------------------------------------------+
| Benchmark | 2020-10-21_20-34-master-f8b1ccd63c94 | 2020-10-27_01-07-load_method-4554b7a8a9a8 |
+========================+======================================+===========================================+
| pidigits | 263 ms | 233 ms: 1.13x faster (-12%) |
+------------------------+--------------------------------------+-------------------------------------------+
| go | 296 ms | 279 ms: 1.06x faster (-6%) |
+------------------------+--------------------------------------+-------------------------------------------+
| deltablue | 9.20 ms | 8.72 ms: 1.05x faster (-5%) |
+------------------------+--------------------------------------+-------------------------------------------+
| logging_simple | 9.84 us
Tune the system configuration to run benchmarks
Actions
=======
Perf event: Max sample rate set to 1 per second
CPU Frequency: Minimum frequency of CPU 17,35 set to the maximum frequency
Turbo Boost (MSR): Turbo Boost disabled on CPU 17: MSR 0x1a0 set to 0x4000850089
IRQ affinity: Set default affinity to CPU 0-16,18-34
IRQ affinity: Set affinity of IRQ 1,3-16,21,25-31,56-59,68-85,87,89-90,92-93,95-104 to CPU 0-16,18-34
#!/usr/bin/env python3
import pytz
from zoneinfo import ZoneInfo
from datetime import datetime, timedelta, timezone
from dateutil import tz
from zoneinfo import ZoneInfo
### Keybase proof
I hereby claim:
* I am pablogsal on github.
* I am pablogsal (https://keybase.io/pablogsal) on keybase.
* I have a public key ASAcTBbuHO2Jvb_lkBKHfQqtCDCvPmKj6H-vVTRysLcdMgo
To claim this, I am signing this object: