Skip to content

Instantly share code, notes, and snippets.

➜ wasmi git:(rf-experiment-remove-inline) ✗ cargo bench --bench benches execute -- --baseline master
Compiling wasmi v0.32.0-beta.7 (/Users/gorskimateusz/projects/aleph/wasmi/crates/wasmi)
Finished bench [optimized] target(s) in 35.65s
Running benches/benches.rs (target/release/deps/benches-c2deff865b25ac6c)
execute/tiny_keccak time: [236.24 µs 239.55 µs 243.54 µs]
change: [+3.0244% +4.4601% +6.3946%] (p = 0.00 < 0.05)
Performance has regressed.
Found 2 outliers among 10 measurements (20.00%)
2 (20.00%) high mild
FROM docker.io/bitnami/minideb:bullseye
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
RUST_VERSION=1.70.0
ARG TOOLCHAIN=stable \
COMPILER_TAG=v2.1.0 \
NIGHTLY=nightly-x86_64-unknown-linux-gnu
@deuszx
deuszx / airdrop.rs
Last active July 12, 2023 09:24
Airdropping - super duper PoC (not even an MVP!!!).
#[ink::contract]
mod airdrop {
#[ink(storage)]
pub struct Contract {
participants: Mapping<u64, AccountId>,
last_added: u64,
last_ditributed: u64,
ready_to_distribute: bool,
aidrop_amount: u64,
@deuszx
deuszx / shielder.json
Created March 31, 2023 13:36
Shielder contract metadata
{
"source": {
"hash": "0x95b804b6077bd5a865dd6d8b322d4f8fb636795bb508daa14266cb89ee73ffb4",
"language": "ink! 4.0.1",
"compiler": "rustc 1.67.0-nightly",
"build_info": {
"build_mode": "Release",
"cargo_contract_version": "2.0.0",
"rust_toolchain": "nightly-x86_64-unknown-linux-gnu",
"wasm_opt_settings": {
@deuszx
deuszx / blender-metadata.json
Created November 23, 2022 11:35
ink! metadata for the blender contract deployed under 5ExdeNmh3c7kXpx9uE4M9T63z19KZNAPSyGMfE5zPXeBUryj on Aleph Zero Smartnet.
{
"source": {
"hash": "0x95f94206c32dde536c2fab06b55730fd0ae0c64437c00db3d993079f7b54d549",
"language": "ink! 3.4.0",
"compiler": "rustc 1.67.0-nightly"
},
"contract": {
"name": "blender",
"version": "0.1.0",
"authors": [