Skip to content

Instantly share code, notes, and snippets.

Avatar
😣
Cleaning up Swift Benchmarking Suite

Pavol Vaskovic palimondo

😣
Cleaning up Swift Benchmarking Suite
View GitHub Profile
@palimondo
palimondo / UniversalDeclaration.swift
Created Dec 13, 2018
String Benchmarking Corpus UDHR
View UniversalDeclaration.swift
/// Text Corpus in various scripts and languages.
///
/// Uses the Article 1 of Universal Declaration of Human Rights.
/// Individual entries are documented in format:
/// Language[, Variant] - Script
///
/// Statistics on language use are from Ethnologue (2018), as cited on
/// https://en.wikipedia.org/wiki/List_of_languages_by_total_number_of_speakers
/// * T - Estimated Total Speakers (not reliable)
/// * L1 - First Language Speakers
@palimondo
palimondo / check.log
Last active Aug 21, 2018
Benchmark_Driver check --verbose -f [A-Z].* > check.log
View check.log
DEBUG Checking tests: Ackermann, AngryPhonebook, AnyHashableWithAClass, Array2D, ArrayAppend, ArrayAppendArrayOfInt, ArrayAppendAscii, ArrayAppendAsciiSubstring, ArrayAppendFromGeneric, ArrayAppendGenericStructs, ArrayAppendLatin1, ArrayAppendLatin1Substring, ArrayAppendLazyMap, ArrayAppendOptionals, ArrayAppendRepeatCol, ArrayAppendReserved, ArrayAppendSequence, ArrayAppendStrings, ArrayAppendToFromGeneric, ArrayAppendToGeneric, ArrayAppendUTF16, ArrayAppendUTF16Substring, ArrayInClass, ArrayLiteral, ArrayOfGenericPOD2, ArrayOfGenericRef, ArrayOfPOD, ArrayOfRef, ArrayPlusEqualArrayOfInt, ArrayPlusEqualFiveElementCollection, ArrayPlusEqualSingleElementCollection, ArrayPlusEqualThreeElements, ArraySetElement, ArraySubscript, ArrayValueProp, ArrayValueProp2, ArrayValueProp3, ArrayValueProp4, BinaryFloatingPointPropertiesBinade, BinaryFloatingPointPropertiesNextUp, BinaryFloatingPointPropertiesUlp, BitCount, ByteSwap, COWArrayGuaranteedParameterOverhead, COWTree, CSVParsing2, CSVParsingAlt2, CSVParsingAltIndices
@palimondo
palimondo / main.swift
Created Apr 27, 2018
FuncVsImperative
View main.swift
//
// main.swift
// FuncVsImperative
//
// Created by Pavol Vaskovic on 17.12.2014.
// Copyright (c) 2014 Pavol Vaskovic. All rights reserved.
//
import Cocoa
@palimondo
palimondo / gist:ffec7c42dbc97261d9ca9fdecc8a0614
Created Mar 14, 2017
Additions to dump the memory layout of indirect enums.
View gist:ffec7c42dbc97261d9ca9fdecc8a0614
enum List<Element> {
case End
indirect case Node(Element, List<Element>)
}
struct ManyListEnumHolder<Element> {
var a: List<Element>
var b: List<Element>
var c: List<Element>
var d: List<Element>
var e: List<Element>
@palimondo
palimondo / gist:5998280
Last active Dec 19, 2015
Concise Auto Layout macros
View gist:5998280
#define Left NSLayoutAttributeLeft
#define Right NSLayoutAttributeRight
#define Top NSLayoutAttributeTop
#define Bottom NSLayoutAttributeBottom
#define Leading NSLayoutAttributeLeading
#define Trailing NSLayoutAttributeTrailing
#define Width NSLayoutAttributeWidth
#define Height NSLayoutAttributeHeight
#define CenterX NSLayoutAttributeCenterX
#define CenterY NSLayoutAttributeCenterY
View brew upgrade nginx --devel (nginx-1.1.18) failed
==> Upgrading nginx
==> Downloading http://nginx.org/download/nginx-1.1.18.tar.gz
Already downloaded: /Library/Caches/Homebrew/nginx-1.1.18.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/nginx-1.1.18.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file auto/lib/pcre/conf
Hunk #1 succeeded at 162 with fuzz 2 (offset 7 lines).
patching file conf/nginx.conf
==> ./configure --prefix=/usr/local/Cellar/nginx/1.1.18 --with-http_ssl_module --with-pcre --conf-path=/usr/local/etc/nginx/nginx.conf --pid-path=/usr/local/var/run/nginx.pid --lock-path=/usr/local/var/nginx/nginx.lock