Skip to main content

Developed in PACS Lab to ease the process of deployment and testing of our benchmarking workload to AWS Lambda. To see how you can use pacsltk, check out the github repository.

Installation

pip install pacsltk

Examples

You can use the package as simple as the short code snippet below:

from pacsltk import perfmodel

arrival_rate = 100
warm_service_time = 2
cold_service_time = 25
idle_time_before_kill = 10*60

print("arrival_rate:", arrival_rate)
print("warm_service_time:", warm_service_time)
print("cold_service_time:", cold_service_time)
print("idle_time_before_kill:", idle_time_before_kill)

props1, props2 = perfmodel.get_sls_warm_count_dist(arrival_rate, warm_service_time, cold_service_time, idle_time_before_kill)
perfmodel.print_props(props1)

which produces an output similar to the following:

arrival_rate: 100
warm_service_time: 2
cold_service_time: 25
idle_time_before_kill: 600

Properties:
------------------
avg_server_count: 251.043927
avg_running_count: 200.148828
avg_running_warm_count: 199.987058
avg_idle_count: 51.056869
cold_prob: 0.000065
avg_utilization: 0.796622
avg_resp_time: 2.001488
rejection_prob: 0.000000
rejection_rate: 0.000000
------------------

Updating README in RST file

pandoc -s README.md -o README.rst

Release files for pacsltk 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pacsltk 0.2.0
File Size Uploaded
pacsltk-0.2.0.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pacsltk 0.2.0
File Interpreter ABI Platform
pacsltk-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.0 kB

Release files / pacsltk-0.2.0.tar.gz

Download URL pacsltk-0.2.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d722a15ae0c4389b7d3374918752e643df3ac3e9547825c43235628ae62ae9b0
BLAKE2b-256 checksum
How to use checksums
f8be88184eebbb3326a3170874075fc70e53906ed9b82ac654aa3df06fc5814c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.7

Release files / pacsltk-0.2.0-py3-none-any.whl

Download URL pacsltk-0.2.0-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de147e9ca0557ced1e9104bfa285e5832531e22a59a6721b91de6a7ba1c7d531
BLAKE2b-256 checksum
How to use checksums
fb940c9dad78ee26878eb6cffe62a0d564615721bd5fb0fc0162ddeaa8d81dce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page