{ "kind": "group", "title": "Set Benchmarks", "directory": "Set", "contents": [ { "kind": "group", "title": "Operations", "directory": "operations", "contents": [ { "kind": "chart", "title": "operations", "tasks": [ "Set init from range", "Set init from unsafe buffer", "Set sequential iteration", "Set successful contains", "Set unsuccessful contains", "Set insert", "Set insert, reserving capacity", "Set remove" ] }, { "kind": "variants", "charts": [ { "kind": "chart", "title": "union with Self", "tasks": [ "Set union with Self (0% overlap)", "Set union with Self (25% overlap)", "Set union with Self (50% overlap)", "Set union with Self (75% overlap)", "Set union with Self (100% overlap)" ] }, { "kind": "chart", "title": "union with Array", "tasks": [ "Set union with Array (0% overlap)", "Set union with Array (25% overlap)", "Set union with Array (50% overlap)", "Set union with Array (75% overlap)", "Set union with Array (100% overlap)", ] }, { "kind": "chart", "title": "formUnion with Self", "tasks": [ "Set formUnion with Self (0% overlap)", "Set formUnion with Self (25% overlap)", "Set formUnion with Self (50% overlap)", "Set formUnion with Self (75% overlap)", "Set formUnion with Self (100% overlap)", ] }, { "kind": "chart", "title": "formUnion with Array", "tasks": [ "Set formUnion with Array (0% overlap)", "Set formUnion with Array (25% overlap)", "Set formUnion with Array (50% overlap)", "Set formUnion with Array (75% overlap)", "Set formUnion with Array (100% overlap)", ] }, ] }, { "kind": "variants", "charts": [ { "kind": "chart", "title": "intersection with Self", "tasks": [ "Set intersection with Self (0% overlap)", "Set intersection with Self (25% overlap)", "Set intersection with Self (50% overlap)", "Set intersection with Self (75% overlap)", "Set intersection with Self (100% overlap)", ] }, { "kind": "chart", "title": "intersection with Array", "tasks": [ "Set intersection with Array (0% overlap)", "Set intersection with Array (25% overlap)", "Set intersection with Array (50% overlap)", "Set intersection with Array (75% overlap)", "Set intersection with Array (100% overlap)", ] }, { "kind": "chart", "title": "formIntersection with Self", "tasks": [ "Set formIntersection with Self (0% overlap)", "Set formIntersection with Self (25% overlap)", "Set formIntersection with Self (50% overlap)", "Set formIntersection with Self (75% overlap)", "Set formIntersection with Self (100% overlap)", ] }, { "kind": "chart", "title": "formIntersection with Array", "tasks": [ "Set formIntersection with Array (0% overlap)", "Set formIntersection with Array (25% overlap)", "Set formIntersection with Array (50% overlap)", "Set formIntersection with Array (75% overlap)", "Set formIntersection with Array (100% overlap)", ] }, ] }, { "kind": "variants", "charts": [ { "kind": "chart", "title": "symmetricDifference with Self", "tasks": [ "Set symmetricDifference with Self (0% overlap)", "Set symmetricDifference with Self (25% overlap)", "Set symmetricDifference with Self (50% overlap)", "Set symmetricDifference with Self (75% overlap)", "Set symmetricDifference with Self (100% overlap)", ] }, { "kind": "chart", "title": "symmetricDifference with Array", "tasks": [ "Set symmetricDifference with Array (0% overlap)", "Set symmetricDifference with Array (25% overlap)", "Set symmetricDifference with Array (50% overlap)", "Set symmetricDifference with Array (75% overlap)", "Set symmetricDifference with Array (100% overlap)", ] }, { "kind": "chart", "title": "formSymmetricDifference with Self", "tasks": [ "Set formSymmetricDifference with Self (0% overlap)", "Set formSymmetricDifference with Self (25% overlap)", "Set formSymmetricDifference with Self (50% overlap)", "Set formSymmetricDifference with Self (75% overlap)", "Set formSymmetricDifference with Self (100% overlap)", ] }, { "kind": "chart", "title": "formSymmetricDifference with Array", "tasks": [ "Set formSymmetricDifference with Array (0% overlap)", "Set formSymmetricDifference with Array (25% overlap)", "Set formSymmetricDifference with Array (50% overlap)", "Set formSymmetricDifference with Array (75% overlap)", "Set formSymmetricDifference with Array (100% overlap)", ] }, ] }, { "kind": "variants", "charts": [ { "kind": "chart", "title": "subtracting Self", "tasks": [ "Set subtracting Self (0% overlap)", "Set subtracting Self (25% overlap)", "Set subtracting Self (50% overlap)", "Set subtracting Self (75% overlap)", "Set subtracting Self (100% overlap)", ] }, { "kind": "chart", "title": "subtracting Array", "tasks": [ "Set subtracting Array (0% overlap)", "Set subtracting Array (25% overlap)", "Set subtracting Array (50% overlap)", "Set subtracting Array (75% overlap)", "Set subtracting Array (100% overlap)", ] }, { "kind": "chart", "title": "subtract Self", "tasks": [ "Set subtract Self (0% overlap)", "Set subtract Self (25% overlap)", "Set subtract Self (50% overlap)", "Set subtract Self (75% overlap)", "Set subtract Self (100% overlap)", ] }, { "kind": "chart", "title": "subtract with Array", "tasks": [ "Set subtract Array (0% overlap)", "Set subtract Array (25% overlap)", "Set subtract Array (50% overlap)", "Set subtract Array (75% overlap)", "Set subtract Array (100% overlap)", ] }, ] }, ] }, { "kind": "group", "title": "Set vs std::unordered_set", "directory": "versus STL unordered_set", "contents": [ { "kind": "chart", "title": "Hashing", "tasks": [ "std::hash", "custom_intptr_hash (using Swift.Hasher)", "Hasher.combine on a single buffer of integers", "Int.hashValue on each value", ] }, { "kind": "chart", "title": "init from integer range", "tasks": [ "std::unordered_set insert from integer range", "Set init from range", ] }, { "kind": "chart", "title": "init from buffer of integers", "tasks": [ "std::unordered_set constructor from buffer", "Set init from unsafe buffer", ] }, { "kind": "chart", "title": "sequential iteration", "tasks": [ "std::unordered_set sequential iteration", "Set sequential iteration", ] }, { "kind": "chart", "title": "successful lookups", "tasks": [ "std::unordered_set successful find", "Set successful contains", ] }, { "kind": "chart", "title": "unsuccessful lookups", "tasks": [ "std::unordered_set unsuccessful find", "Set unsuccessful contains", ] }, { "kind": "chart", "title": "random insertions", "tasks": [ "std::unordered_set insert", "std::unordered_set insert, reserving capacity", "Set insert", "Set insert, reserving capacity", ] }, { "kind": "chart", "title": "random removals", "tasks": [ "std::unordered_set erase", "Set remove", ] }, ] } ] }