-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from artichoke/boba-rebrand
Rebrand crate to boba
- Loading branch information
Showing
8 changed files
with
59 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
[package] | ||
name = "bubblebabble" | ||
name = "boba" | ||
version = "2.0.0" # remember to set `html_root_url` in `src/lib.rs`. | ||
authors = ["Ryan Lopopolo <[email protected]>"] | ||
license = "MIT" | ||
edition = "2018" | ||
readme = "README.md" | ||
repository = "https://github.com/artichoke/bubblebabble" | ||
homepage = "https://github.com/artichoke/bubblebabble" | ||
repository = "https://github.com/artichoke/boba" | ||
documentation = "https://docs.rs/boba" | ||
homepage = "https://github.com/artichoke/boba" | ||
description = "Encoder and decoder for the Bubble Babble binary data encoding" | ||
keywords = ["encode", "decode", "utf8", "bubblebabble"] | ||
categories = ["encoding"] | ||
exclude = [ | ||
".github", | ||
".gitignore", | ||
"deny.toml", | ||
"fuzz", | ||
] | ||
|
||
[features] | ||
default = ["std"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,37 @@ | ||
#![feature(test)] | ||
|
||
extern crate test; | ||
|
||
mod encode { | ||
#[bench] | ||
fn benchmark_encode_empty(b: &mut ::test::Bencher) { | ||
b.iter(|| bubblebabble::encode([])) | ||
b.iter(|| boba::encode([])) | ||
} | ||
|
||
#[bench] | ||
fn benchmark_encode_vector_1234567890(b: &mut ::test::Bencher) { | ||
b.iter(|| bubblebabble::encode("1234567890")) | ||
b.iter(|| boba::encode("1234567890")) | ||
} | ||
|
||
#[bench] | ||
fn benchmark_encode_vector_pineapple(b: &mut ::test::Bencher) { | ||
b.iter(|| bubblebabble::encode("Pineapple")) | ||
b.iter(|| boba::encode("Pineapple")) | ||
} | ||
} | ||
|
||
mod decode { | ||
#[bench] | ||
fn benchmark_decode_empty(b: &mut ::test::Bencher) { | ||
b.iter(|| bubblebabble::decode("xexax")) | ||
b.iter(|| boba::decode("xexax")) | ||
} | ||
|
||
#[bench] | ||
fn benchmark_decode_vector_1234567890(b: &mut ::test::Bencher) { | ||
b.iter(|| bubblebabble::decode("xesef-disof-gytuf-katof-movif-baxux")) | ||
b.iter(|| boba::decode("xesef-disof-gytuf-katof-movif-baxux")) | ||
} | ||
|
||
#[bench] | ||
fn benchmark_decode_vector_pineapple(b: &mut ::test::Bencher) { | ||
b.iter(|| bubblebabble::decode("xigak-nyryk-humil-bosek-sonax")) | ||
b.iter(|| boba::decode("xigak-nyryk-humil-bosek-sonax")) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters