This assumes it is running in the root of https://github.com/richvdh/json_benchmark
Run as python3 benchmark_encode.py.
| import pyperf | |
| import time | |
| import jsonschema | |
| from jsonschema.exceptions import best_match | |
| SCHEMA = { | |
| "type": "object", | |
| "properties": { | |
| "displayname": {"oneOf": [{"type": "string"}, {"type": "null"}]}, |
This assumes it is running in the root of https://github.com/richvdh/json_benchmark
Run as python3 benchmark_encode.py.
| """ | |
| Get all HTTP or HTTPS links from a Slack account. | |
| Fill in the Slack token, username to query and whether to query for http or https links. | |
| First install slackclient: | |
| pip install slackclient | |
| """ |
| # Copyright (c) 2016, Patrick Cloke | |
| # | |
| # Permission to use, copy, modify, and/or distribute this software for any | |
| # purpose with or without fee is hereby granted, provided that the above | |
| # copyright notice and this permission notice appear in all copies. | |
| # | |
| # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
| # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
| # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
| # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
Copyright (c) 2015 Patrick Cloke clokep@instantbird.org
Unlimited redistribution and modification of this document is allowed provided that the above copyright notice and this permission notice remains intact.