Skip to content

Commit

Permalink
Merge branch 'release-1.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
tsolomko committed Dec 12, 2018
2 parents 2ad7644 + 52ac29f commit 94b2f1a
Show file tree
Hide file tree
Showing 26 changed files with 1,289 additions and 340 deletions.
4 changes: 2 additions & 2 deletions .jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ sourcekitten_sourcefile: docs.json
clean: true
author: Timofey Solomko
module: BitByteData
module_version: 1.3.1
module_version: 1.4.0
copyright: '© 2018 Timofey Solomko'
readme: README.md
github_url: https://github.com/tsolomko/BitByteData
github_file_prefix: https://github.com/tsolomko/BitByteData/tree/1.3.1
github_file_prefix: https://github.com/tsolomko/BitByteData/tree/1.4.0
theme: fullwidth

custom_categories:
Expand Down
23 changes: 10 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- swift build -c release # Check Release build just in case.
- language: generic
os: linux
dist: trusty
dist: xenial
install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
script:
Expand All @@ -23,33 +23,30 @@ jobs:
os: osx
osx_image: xcode10.1
script:
# On macOS swift test (i.e. XCTest) outputs to stderr so we need to redirect pipes.
- swift test -c release --filter BitByteDataBenchmarks 2>&1 | ./ppbenchmarks.py
- ./benchmarks.py run
- stage: benchmark
if: NOT (tag IS present)
language: generic
os: linux
dist: trusty
dist: xenial
install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
script:
# On Linux swift test outputs to stdout so we don't need to do anything.
- swift test -c release --filter BitByteDataBenchmarks | ./ppbenchmarks.py
- ./benchmarks.py run
- stage: deploy
if: tag IS present
language: generic
os: osx
osx_image: xcode10.1
env:
secure: fmKQgrPRx2iisNPzxDhOTfXPsnQMJxDgIMItVNjl1AKByraOpiDAGVESySvy+vwQqITCB/BfvdkW7smAPcvFJxIPRx1v4J0VY9kGHdnafMw35XY0Vj9soYkzNS4zrUebxY2gWkGM6Q6dgLOGT/9MSEyWqXBTtVz9sLwA7yr3ZI72yZDbcSz3XGa1fFZRVfwv3I+bmuozG7dq7tyqcSKgRZnHg1VvaRdxcaGqSGSUsNu0YLzmNedujNcU+gTXcxMdrXA1eaheHc2pwNA0TDf3KkefJpaVMXrA/Un8e9MaJ1lMnPlIiEI3dPTuogtQY7p59vgulBNBPEJovTHI0jCaNyLUkTkHgGcUuOwHqwUIKZCEiiqM1j12sdLo4O2tAdNaNHDtd8D3bCakrdJxXlUWVfjrCwvBB555gd0drRirQgYX+5gGFwnTQE8tOcjK4qUvJaOAouHsnm/DmW+fLJPX76KoU6QOtGJt6PQ92yBgKRhaSg/sQ28WPuCmF2p7BuUSuULxcM2LU5eA5aFxayoZvR2E9uvfFxnFh01iV6clcZo25U03AuxJmuI7Mhl83amj8bm5CRBbuRw5sIljXfBujFUel+kz/HXalS7lStqH9iPyiQvh24WkPzHKNQdjRI7v3kyrVSXJ3Xl6+fopXqr/25MwqD4bt57QgglJ2IQtnLM=
before_install:
- brew update
addons:
homebrew:
packages:
- carthage
- sourcekitten
update: true
install:
# Update Carthage.
# `brew outdated` is necessary to prevent build error when there is no updates for Carthage.
- brew outdated carthage || brew upgrade carthage
# Install SourceKitten and Jazzy.
- brew install sourcekitten
- gem install -N jazzy
- gem update -N cocoapods
before_deploy:
Expand Down
295 changes: 295 additions & 0 deletions BenchmarksResults/base-swift-4.1.3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,295 @@
{
"swift_ver": "Apple Swift version 4.1.3 (swift-4.1.3-RELEASE)\nTarget: x86_64-apple-darwin17.7.0\n",
"BitByteDataBenchmarks": [
{
"group_name": "ByteReaderBenchmarks",
"results": [
{
"name": "testByte",
"avg": "0.020",
"rel_std_dev": "10.798"
},
{
"name": "testBytes",
"avg": "0.172",
"rel_std_dev": "2.967"
},
{
"name": "testIntFromBytes",
"avg": "0.029",
"rel_std_dev": "10.454"
},
{
"name": "testUint16",
"avg": "0.015",
"rel_std_dev": "15.435"
},
{
"name": "testUint16FromBytes",
"avg": "0.016",
"rel_std_dev": "10.137"
},
{
"name": "testUint32",
"avg": "0.013",
"rel_std_dev": "12.346"
},
{
"name": "testUint32FromBytes",
"avg": "0.011",
"rel_std_dev": "17.181"
},
{
"name": "testUint64",
"avg": "0.007",
"rel_std_dev": "27.161"
},
{
"name": "testUint64FromBytes",
"avg": "0.027",
"rel_std_dev": "13.575"
}
]
},
{
"group_name": "LsbBitReaderBenchmarks",
"results": [
{
"name": "testAdvance",
"avg": "0.160",
"rel_std_dev": "3.512"
},
{
"name": "testBit",
"avg": "0.190",
"rel_std_dev": "3.742"
},
{
"name": "testBits",
"avg": "2.027",
"rel_std_dev": "1.306"
},
{
"name": "testByteFromBits",
"avg": "0.200",
"rel_std_dev": "4.410"
},
{
"name": "testIntFromBits",
"avg": "0.153",
"rel_std_dev": "3.759"
},
{
"name": "testUint16FromBits",
"avg": "0.177",
"rel_std_dev": "2.796"
},
{
"name": "testUint32FromBits",
"avg": "0.213",
"rel_std_dev": "3.028"
},
{
"name": "testUint64FromBits",
"avg": "0.173",
"rel_std_dev": "3.489"
}
]
},
{
"group_name": "LsbBitReaderByteBenchmarks",
"results": [
{
"name": "testByte",
"avg": "0.019",
"rel_std_dev": "16.043"
},
{
"name": "testBytes",
"avg": "0.183",
"rel_std_dev": "3.890"
},
{
"name": "testIntFromBytes",
"avg": "0.030",
"rel_std_dev": "8.351"
},
{
"name": "testUint16",
"avg": "0.015",
"rel_std_dev": "14.180"
},
{
"name": "testUint16FromBytes",
"avg": "0.018",
"rel_std_dev": "8.858"
},
{
"name": "testUint32",
"avg": "0.014",
"rel_std_dev": "15.104"
},
{
"name": "testUint32FromBytes",
"avg": "0.011",
"rel_std_dev": "15.009"
},
{
"name": "testUint64",
"avg": "0.008",
"rel_std_dev": "42.475"
},
{
"name": "testUint64FromBytes",
"avg": "0.029",
"rel_std_dev": "7.458"
}
]
},
{
"group_name": "LsbBitWriterBenchmarks",
"results": [
{
"name": "testAppendByte",
"avg": "0.703",
"rel_std_dev": "2.665"
},
{
"name": "testWriteBit",
"avg": "0.673",
"rel_std_dev": "3.559"
},
{
"name": "testWriteNumberBitsCount",
"avg": "0.587",
"rel_std_dev": "2.907"
},
{
"name": "testWriteUnsignedNumberBitsCount",
"avg": "0.617",
"rel_std_dev": "2.001"
}
]
},
{
"group_name": "MsbBitReaderBenchmarks",
"results": [
{
"name": "testAdvance",
"avg": "0.159",
"rel_std_dev": "3.072"
},
{
"name": "testBit",
"avg": "0.168",
"rel_std_dev": "1.859"
},
{
"name": "testBits",
"avg": "2.062",
"rel_std_dev": "2.149"
},
{
"name": "testByteFromBits",
"avg": "0.242",
"rel_std_dev": "1.734"
},
{
"name": "testIntFromBits",
"avg": "0.203",
"rel_std_dev": "3.889"
},
{
"name": "testUint16FromBits",
"avg": "0.246",
"rel_std_dev": "2.753"
},
{
"name": "testUint32FromBits",
"avg": "0.310",
"rel_std_dev": "3.584"
},
{
"name": "testUint64FromBits",
"avg": "0.226",
"rel_std_dev": "2.616"
}
]
},
{
"group_name": "MsbBitReaderByteBenchmarks",
"results": [
{
"name": "testByte",
"avg": "0.019",
"rel_std_dev": "10.418"
},
{
"name": "testBytes",
"avg": "0.186",
"rel_std_dev": "4.590"
},
{
"name": "testIntFromBytes",
"avg": "0.029",
"rel_std_dev": "6.986"
},
{
"name": "testUint16",
"avg": "0.014",
"rel_std_dev": "13.903"
},
{
"name": "testUint16FromBytes",
"avg": "0.019",
"rel_std_dev": "11.110"
},
{
"name": "testUint32",
"avg": "0.013",
"rel_std_dev": "18.223"
},
{
"name": "testUint32FromBytes",
"avg": "0.011",
"rel_std_dev": "13.786"
},
{
"name": "testUint64",
"avg": "0.008",
"rel_std_dev": "27.430"
},
{
"name": "testUint64FromBytes",
"avg": "0.028",
"rel_std_dev": "8.320"
}
]
},
{
"group_name": "MsbBitWriterBenchmarks",
"results": [
{
"name": "testAppendByte",
"avg": "0.678",
"rel_std_dev": "3.517"
},
{
"name": "testWriteBit",
"avg": "0.736",
"rel_std_dev": "2.885"
},
{
"name": "testWriteNumberBitsCount",
"avg": "0.598",
"rel_std_dev": "2.220"
},
{
"name": "testWriteUnsignedNumberBitsCount",
"avg": "0.605",
"rel_std_dev": "3.958"
}
]
}
]
}
Loading

0 comments on commit 94b2f1a

Please sign in to comment.